#FEF08A — Tints, Shades & Color Values
#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.
Color Values
| Hex | #FEF08A |
|---|---|
| RGB | rgb(254, 240, 138) |
| HSL | hsl(53, 98%, 77%) |
| HSV / HSB | 53°, 46%, 100% |
| Nearest named | khaki (#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.
-
10% tint
#fef296 -
20% tint
#fef3a1 -
30% tint
#fef5ad -
40% tint
#fef6b9 -
50% tint
#fff8c5 -
60% tint
#fff9d0 -
70% tint
#fffbdc -
80% tint
#fffce8 -
90% tint
#fffef3
Shades of #FEF08A (Mixed with Black)
Each step blends the base color toward black using new = old × (1 − factor).
-
10% shade
#e5d87c -
20% shade
#cbc06e -
30% shade
#b2a861 -
40% shade
#989053 -
50% shade
#7f7845 -
60% shade
#666037 -
70% shade
#4c4829 -
80% shade
#33301c -
90% shade
#19180e
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
-
What color is #FEF08A?
#FEF08A is a light, vivid yellow —
rgb(254, 240, 138). Its nearest CSS named color iskhaki. In Tailwind CSS it isyellow-200. -
How do I make tints and shades of #FEF08A?
Mix #FEF08A with white for tints and with black for shades. A 20% tint of #FEF08A is
#fef3a1and a 20% shade is#cbc06e— the full 10%–90% ramps are precomputed on this page, or open #FEF08A in the generator for finer steps. -
What text color is readable on #FEF08A?
Black text gives the strongest contrast on a #FEF08A background at 18.05:1, which passes WCAG AA and AAA for normal text.
-
What is the Tailwind CSS class for #FEF08A?
yellow-200— use it asbg-yellow-200,text-yellow-200, orborder-yellow-200. The full yellow 50–950 ramp is linked above.
Browse more colors in the color library, or start from any hex code on the HexTints homepage.
#FEF08A? Put it on a free link-in-bio page →