Skip to main content

bg-yellow-900

Tailwind Yellow 900

#713F12·Yellow family·Shade 900

Color Values

HEX
#713F12
RGB
rgb(113, 63, 18)
HSL
hsl(28, 73%, 26%)
OKLCH
oklch(0.421 0.090 58)
CMYK
cmyk(0%, 44%, 84%, 56%)
CSS Variable
var(--color-yellow-900)
Tailwind Class
bg-yellow-900

Accessibility Score

60/100

Good

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

On White

8.67:1

AAA

On Black

2.42:1

Fail
Test in Contrast Checker →

Tailwind Usage — All Utilities

Background

bg-yellow-900

Text

text-yellow-900

Border

border-yellow-900

Ring

ring-yellow-900

Outline

outline-yellow-900

Fill

fill-yellow-900

Stroke

stroke-yellow-900

From (gradient)

from-yellow-900

Via (gradient)

via-yellow-900

To (gradient)

to-yellow-900

Placeholder

placeholder-yellow-900

Caret

caret-yellow-900

Accent

accent-yellow-900

Decoration

decoration-yellow-900

Shadow Color

shadow-yellow-900

Tailwind v3 Config (extend custom color)

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

CSS Equivalent

/* Hex */
background-color: #713F12;

/* RGB */
background-color: rgb(113, 63, 18);

/* HSL */
background-color: hsl(28, 73%, 26%);

/* OKLCH (CSS Color Level 4) */
background-color: oklch(0.421 0.090 58);

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

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

OKLCH — Modern Color Space

Lightness (L)

0.421

42% perceived brightness

Chroma (C)

0.090

Color intensity / saturation

Hue (H)

58°

Angle on perceptual hue wheel

oklch(0.421 0.090 58)

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 Yellow 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 — #713F12

Frequently Asked Questions

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