Skip to main content

bg-neutral-900

Tailwind Neutral 900

#171717·Neutral family·Shade 900

Color Values

HEX
#171717
RGB
rgb(23, 23, 23)
HSL
hsl(0, 0%, 9%)
OKLCH
oklch(0.205 0.000 0)
CMYK
cmyk(0%, 0%, 0%, 91%)
CSS Variable
var(--color-neutral-900)
Tailwind Class
bg-neutral-900

Accessibility Score

60/100

Good

Based on WCAG 2.1 contrast ratios against white and black backgrounds.

On White

17.93:1

AAA

On Black

1.17:1

Fail
Test in Contrast Checker →

Tailwind Usage — All Utilities

Background

bg-neutral-900

Text

text-neutral-900

Border

border-neutral-900

Ring

ring-neutral-900

Outline

outline-neutral-900

Fill

fill-neutral-900

Stroke

stroke-neutral-900

From (gradient)

from-neutral-900

Via (gradient)

via-neutral-900

To (gradient)

to-neutral-900

Placeholder

placeholder-neutral-900

Caret

caret-neutral-900

Accent

accent-neutral-900

Decoration

decoration-neutral-900

Shadow Color

shadow-neutral-900

Tailwind v3 Config (extend custom color)

// tailwind.config.js module.exports = { theme: { extend: { colors: { 'neutral-900': '#171717', }, }, }, };

CSS Equivalent

/* Hex */
background-color: #171717;

/* RGB */
background-color: rgb(23, 23, 23);

/* HSL */
background-color: hsl(0, 0%, 9%);

/* OKLCH (CSS Color Level 4) */
background-color: oklch(0.205 0.000 0);

/* CSS Custom Property (Tailwind v4) */
background-color: var(--color-neutral-900);

/* Gradient example */
background: linear-gradient(135deg, #fafafa 0%, #0a0a0a 100%);

OKLCH — Modern Color Space

Lightness (L)

0.205

21% perceived brightness

Chroma (C)

0.000

Color intensity / saturation

Hue (H)

Angle on perceptual hue wheel

oklch(0.205 0.000 0)

OKLCH is a perceptually uniform color space in CSS Color Level 4. Unlike HSL, equal steps in L produce equal perceived lightness changes — making it ideal for building accessible, harmonious design system scales.

Design Recommendations

Strong dark tone

Shade 900 of the Neutral palette

Recommended Uses

  • Body text on white
  • Dark panel backgrounds
  • Near-dark UI elements
  • Footer backgrounds
  • High-contrast headings

Avoid

On dark backgrounds — contrast will be insufficient.

Preview

On White

Aa Bb Cc

On Black

Aa Bb Cc

As Background

Aa Bb Cc — #171717

Frequently Asked Questions

What is the hex code for Tailwind Neutral 900?
Tailwind Neutral 900 has the hex code #171717. Its RGB value is rgb(23, 23, 23) and its HSL value is hsl(0, 0%, 9%).
What Tailwind utility classes use Neutral 900?
Use bg-neutral-900 for backgrounds, text-neutral-900 for text color, border-neutral-900 for borders, and ring-neutral-900 for focus rings. In Tailwind v4 the CSS variable var(--color-neutral-900) is available natively.
Is Tailwind Neutral 900 WCAG accessible?
Tailwind Neutral 900 achieves a 17.93:1 contrast ratio on white (AAA) and 1.17:1 on black (Fail). Its overall accessibility score is 60/100 (Good).
What is the OKLCH value for Tailwind Neutral 900?
Tailwind Neutral 900 in OKLCH is oklch(0.205 0.000 0) — lightness 0.205, chroma 0.000, hue 0°. OKLCH is a perceptually uniform space supported natively in modern CSS via the `color()` function.
What is Tailwind Neutral 900 used for?
At shade 900, Tailwind Neutral 900 is best described as "Strong dark tone". Recommended uses: Body text on white, Dark panel backgrounds, Near-dark UI elements.