Skip to main content

bg-yellow-950

Tailwind Yellow 950

#422006·Yellow family·Shade 950

Color Values

HEX
#422006
RGB
rgb(66, 32, 6)
HSL
hsl(26, 83%, 14%)
OKLCH
oklch(0.286 0.064 54)
CMYK
cmyk(0%, 52%, 91%, 74%)
CSS Variable
var(--color-yellow-950)
Tailwind Class
bg-yellow-950

Accessibility Score

60/100

Good

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

On White

14.57:1

AAA

On Black

1.44:1

Fail
Test in Contrast Checker →

Tailwind Usage — All Utilities

Background

bg-yellow-950

Text

text-yellow-950

Border

border-yellow-950

Ring

ring-yellow-950

Outline

outline-yellow-950

Fill

fill-yellow-950

Stroke

stroke-yellow-950

From (gradient)

from-yellow-950

Via (gradient)

via-yellow-950

To (gradient)

to-yellow-950

Placeholder

placeholder-yellow-950

Caret

caret-yellow-950

Accent

accent-yellow-950

Decoration

decoration-yellow-950

Shadow Color

shadow-yellow-950

Tailwind v3 Config (extend custom color)

// tailwind.config.js module.exports = { theme: { extend: { colors: { 'yellow-950': '#422006', }, }, }, };

CSS Equivalent

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

/* RGB */
background-color: rgb(66, 32, 6);

/* HSL */
background-color: hsl(26, 83%, 14%);

/* OKLCH (CSS Color Level 4) */
background-color: oklch(0.286 0.064 54);

/* CSS Custom Property (Tailwind v4) */
background-color: var(--color-yellow-950);

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

OKLCH — Modern Color Space

Lightness (L)

0.286

29% perceived brightness

Chroma (C)

0.064

Color intensity / saturation

Hue (H)

54°

Angle on perceptual hue wheel

oklch(0.286 0.064 54)

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

Ultra-dark near-black variant

Shade 950 of the Yellow palette

Recommended Uses

  • Maximum-contrast text on white
  • Rich dark card backgrounds
  • Dark theme page backgrounds
  • Tinted near-black UI surfaces

Avoid

On dark or dark-gray backgrounds — near-zero contrast.

Preview

On White

Aa Bb Cc

On Black

Aa Bb Cc

As Background

Aa Bb Cc — #422006

Frequently Asked Questions

What is the hex code for Tailwind Yellow 950?
Tailwind Yellow 950 has the hex code #422006. Its RGB value is rgb(66, 32, 6) and its HSL value is hsl(26, 83%, 14%).
What Tailwind utility classes use Yellow 950?
Use bg-yellow-950 for backgrounds, text-yellow-950 for text color, border-yellow-950 for borders, and ring-yellow-950 for focus rings. In Tailwind v4 the CSS variable var(--color-yellow-950) is available natively.
Is Tailwind Yellow 950 WCAG accessible?
Tailwind Yellow 950 achieves a 14.57:1 contrast ratio on white (AAA) and 1.44:1 on black (Fail). Its overall accessibility score is 60/100 (Good).
What is the OKLCH value for Tailwind Yellow 950?
Tailwind Yellow 950 in OKLCH is oklch(0.286 0.064 54) — lightness 0.286, chroma 0.064, hue 54°. OKLCH is a perceptually uniform space supported natively in modern CSS via the `color()` function.
What is Tailwind Yellow 950 used for?
At shade 950, Tailwind Yellow 950 is best described as "Ultra-dark near-black variant". Recommended uses: Maximum-contrast text on white, Rich dark card backgrounds, Dark theme page backgrounds.