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
Good
Based on WCAG 2.1 contrast ratios against white and black backgrounds.
On White
1.16:1
On Black
18.05:1
Tailwind Usage — All Utilities
Background
bg-yellow-200Text
text-yellow-200Border
border-yellow-200Ring
ring-yellow-200Outline
outline-yellow-200Fill
fill-yellow-200Stroke
stroke-yellow-200From (gradient)
from-yellow-200Via (gradient)
via-yellow-200To (gradient)
to-yellow-200Placeholder
placeholder-yellow-200Caret
caret-yellow-200Accent
accent-yellow-200Decoration
decoration-yellow-200Shadow Color
shadow-yellow-200Tailwind 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
Preview
On White
Aa Bb Cc
On Black
Aa Bb Cc
As Background
Aa Bb Cc — #FEF08A
Similar Tailwind Colors
Perceptually close shades from other Tailwind color families.
Nearest Named Color
Tailwind Yellow 200
Nearest Tailwind equivalent — #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.