#FEF08A — Tints, Shades & Color Values

#FEF08A

#FEF08A is a light, vivid yellow. In Tailwind CSS this exact color is the utility class yellow-200 (e.g. bg-yellow-200, text-yellow-200). Its nearest CSS named color is khaki (#f0e68c). For readable text on a #FEF08A background, black text gives the strongest contrast (18.05:1). Because it is so light, #FEF08A works best as a background or surface color paired with dark text, or as a high-percentage tint in an existing palette.

Want to fine-tune this color interactively? Open #FEF08A in the tint & shade generator to explore the full lightness, hue, and chroma scales and copy any step.

Color Values

Hex#FEF08A
RGBrgb(254, 240, 138)
HSLhsl(53, 98%, 77%)
HSV / HSB53°, 46%, 100%
Nearest namedkhaki (#f0e68c)

Need these in another format? Use our hex to RGB converter for quick two-way conversion.

#FEF08A in Tailwind CSS (yellow-200)

#FEF08A ships with Tailwind CSS as yellow-200 — use it as bg-yellow-200, text-yellow-200, or border-yellow-200. It sits at step 200 of the yellow ramp; every other step links to its own page:

Browse the full Tailwind palette in the color library, or generate in-between steps with the tint & shade generator.

Tints of #FEF08A (Mixed with White)

Each step blends the base color toward white using new = old + (255 − old) × factor. Click a swatch to open it in the generator.

Shades of #FEF08A (Mixed with Black)

Each step blends the base color toward black using new = old × (1 − factor).

WCAG Contrast & Accessibility

Contrast ratios for text placed on a #FEF08A background. WCAG requires 4.5:1 for normal text (AA), 3:1 for large text (AA), and 7:1 for normal text (AAA).

Text color White text 1.16:1 — AA normal: Fail · AA large: Fail · AAA: Fail
Black text 18.05:1 — AA normal: Pass · AA large: Pass · AAA: Pass

If neither pure white nor pure black reaches the level you need, pick a darker shade of #FEF08A from the ramps above as the background instead — small lightness moves change contrast quickly. Test any other pair with the free contrast checker.

More yellow colors in the library: #FDE68A (amber-200), #FEF3C7 (amber-100), #FCD34D (amber-300), #FFFBEB (amber-50), #FAFAF9 (stone-50), #F1C40F.

Frequently Asked Questions

Browse more colors in the color library, or start from any hex code on the HexTints homepage.

Building a brand around #FEF08A? Put it on a free link-in-bio page →