Skip to main content

bg-yellow-200

Tailwind Yellow 200

#FEF08A·Yellow family·Shade 200

Color Values

HEX
#FEF08A
RGB
rgb(254, 240, 138)
HSL
hsl(53, 98%, 77%)
OKLCH
oklch(0.945 0.124 102)
CMYK
cmyk(0%, 6%, 46%, 0%)
CSS Variable
var(--color-yellow-200)
Tailwind Class
bg-yellow-200

Accessibility Score

60/100

Good

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

On White

1.16:1

Fail

On Black

18.05:1

AAA
Test in Contrast Checker →

Tailwind Usage — All Utilities

Background

bg-yellow-200

Text

text-yellow-200

Border

border-yellow-200

Ring

ring-yellow-200

Outline

outline-yellow-200

Fill

fill-yellow-200

Stroke

stroke-yellow-200

From (gradient)

from-yellow-200

Via (gradient)

via-yellow-200

To (gradient)

to-yellow-200

Placeholder

placeholder-yellow-200

Caret

caret-yellow-200

Accent

accent-yellow-200

Decoration

decoration-yellow-200

Shadow Color

shadow-yellow-200

Tailwind v3 Config (extend custom color)

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

CSS Equivalent

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

/* RGB */
background-color: rgb(254, 240, 138);

/* HSL */
background-color: hsl(53, 98%, 77%);

/* OKLCH (CSS Color Level 4) */
background-color: oklch(0.945 0.124 102);

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

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

OKLCH — Modern Color Space

Lightness (L)

0.945

95% perceived brightness

Chroma (C)

0.124

Color intensity / saturation

Hue (H)

102°

Angle on perceptual hue wheel

oklch(0.945 0.124 102)

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

Soft accent & border

Shade 200 of the Yellow palette

Recommended Uses

  • Focus ring outlines
  • Divider lines
  • Soft tag borders
  • Progress track fills
  • Decorative underlines

Avoid

Small body text — borderline contrast, fails WCAG AA at small sizes.

Preview

On White

Aa Bb Cc

On Black

Aa Bb Cc

As Background

Aa Bb Cc — #FEF08A

Frequently Asked Questions

What is the hex code for Tailwind Yellow 200?
Tailwind Yellow 200 has the hex code #FEF08A. Its RGB value is rgb(254, 240, 138) and its HSL value is hsl(53, 98%, 77%).
What Tailwind utility classes use Yellow 200?
Use bg-yellow-200 for backgrounds, text-yellow-200 for text color, border-yellow-200 for borders, and ring-yellow-200 for focus rings. In Tailwind v4 the CSS variable var(--color-yellow-200) is available natively.
Is Tailwind Yellow 200 WCAG accessible?
Tailwind Yellow 200 achieves a 1.16:1 contrast ratio on white (Fail) and 18.05:1 on black (AAA). Its overall accessibility score is 60/100 (Good).
What is the OKLCH value for Tailwind Yellow 200?
Tailwind Yellow 200 in OKLCH is oklch(0.945 0.124 102) — lightness 0.945, chroma 0.124, hue 102°. OKLCH is a perceptually uniform space supported natively in modern CSS via the `color()` function.
What is Tailwind Yellow 200 used for?
At shade 200, Tailwind Yellow 200 is best described as "Soft accent & border". Recommended uses: Focus ring outlines, Divider lines, Soft tag borders.