#FEF8E1

Closest named color: Cornsilk (#FFF8DC). oklch(97.8% 0.031 94.9), rgb(254, 248, 225).

Aa

Black text reads best on this color (19.72:1).

About this color

#FEF8E1 is a very light, muted yellow. In OKLCH its lightness is 98%, its chroma 0.031 and its hue 95°. Its hue sits on the warm side of the wheel. The nearest named color is Cornsilk (#FFF8DC), ΔE 0.007 away. Black text reads best on it, at 19.72:1.

Hue familyYellows
Lightnessvery light (98%)
Chromamuted (0.031)
Temperaturewarm
Nearest nameCornsilk (#FFF8DC)
Black text19.72:1
White text1.06:1

Values

HEX#FEF8E1
RGBrgb(254, 248, 225)
HSLhsl(48, 94%, 94%)
OKLCHoklch(97.8% 0.031 94.9)

Contrast

WCAG 2 contrast ratios are the conformance target: AA needs 4.5:1 for body text and 3:1 for large text, AAA needs 7:1. APCA Lc values are supplementary guidance from the WCAG 3 drafts.

PairWCAG 2ResultAPCAAPCA guidance
White text on #FEF8E1 1.06:1 Fails Lc 0.0 Not readable
Black text on #FEF8E1 19.72:1 AAA Lc 101.7 Preferred for body text
#FEF8E1 text on white 1.06:1 Fails Lc 0.0 Not readable
#FEF8E1 text on black 19.72:1 AAA Lc -103.1 Preferred for body text

Tints and shades

A 50–950 scale built in OKLCH: the hue is held, lightness follows a Tailwind v4-like curve, and every step is kept inside the sRGB gamut. This color sits at step 50.

  1. Step 50

    50 (this color)

    #FEF8E1

    oklch(97.8% 0.031 94.9)

  2. Step 100

    100

    #ECEAE1

    oklch(93.6% 0.012 96.4)

  3. Step 200

    200

    #DDD9C9

    oklch(88.4% 0.022 95.3)

  4. Step 300

    300

    #C8C1A4

    oklch(80.9% 0.04 95.9)

  5. Step 400

    400

    #ADA173

    oklch(70.8% 0.064 95.2)

  6. Step 500

    500

    #99894E

    oklch(63.1% 0.081 94.6)

  7. Step 600

    600

    #847331

    oklch(55.8% 0.088 94.9)

  8. Step 700

    700

    #6F6023

    oklch(49.1% 0.082 95.3)

  9. Step 800

    800

    #5B4E1F

    oklch(42.6% 0.067 93.9)

  10. Step 900

    900

    #4A411F

    oklch(37.6% 0.052 94.9)

  11. Step 950

    950

    #2C2613

    oklch(27% 0.033 92.5)

Export this scale for Tailwind in the Tailwind colors tool

#FEF8E1 with color blindness

Simulated with the Machado et al. (2009) model. ΔE is how far the color moves: below about 0.02 you would not notice a change.

VisionSeen asShift (ΔE)
Protanopia (no red cones)#FDF7E00.003
Deuteranopia (no green cones)#FFF9E20.003
Tritanopia (no blue cones)#FFF4F10.027
Achromatopsia (no color)#F8F8F80.031

Harmonies

Hue rotations in OKLCH that keep this color's lightness and chroma.

Complementary

The opposite hue (180°).

  • #FEF8E1

    #FEF8E1

    oklch(97.8% 0.031 94.9)

  • #F5F7FF

    #F5F7FF

    oklch(97.7% 0.011 274.9)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #FEF8E1

    #FEF8E1

    oklch(97.8% 0.031 94.9)

  • #FFF6EE

    #FFF6EE

    oklch(97.8% 0.014 64.3)

  • #F3FCE5

    #F3FCE5

    oklch(97.8% 0.032 124.5)

Open the analogous palette in the generator

Split complementary

The two hues beside the complement (150° and 210°).

  • #FEF8E1

    #FEF8E1

    oklch(97.8% 0.031 94.9)

  • #F2F9FF

    #F2F9FF

    oklch(97.9% 0.011 243.6)

  • #FAF6FF

    #FAF6FF

    oklch(97.9% 0.013 306)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #FEF8E1

    #FEF8E1

    oklch(97.8% 0.031 94.9)

  • #EBFBFF

    #EBFBFF

    oklch(97.7% 0.018 214.4)

  • #FFF4FC

    #FFF4FC

    oklch(97.8% 0.016 335.1)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #FEF8E1

    #FEF8E1

    oklch(97.8% 0.031 94.9)

  • #E2FFFA

    #E2FFFA

    oklch(97.8% 0.031 184.2)

  • #F5F7FF

    #F5F7FF

    oklch(97.7% 0.011 274.9)

  • #FFF5F7

    #FFF5F7

    oklch(97.8% 0.011 3.5)

Open the square palette in the generator

Palettes with this color

Curated palettes that contain a color within ΔE 0.04 (OKLab) of #FEF8E1, closest first.

Similar named colors

The eight closest entries in our named color list, with their ΔE distance.

Use #FEF8E1 in your product

Turn it into light and dark UI roles checked for contrast, then export to Tailwind v4, shadcn/ui, CSS or design tokens.