#F0D997

Closest named color: Vanilla (#E9D8A6). oklch(88.9% 0.088 91.1), rgb(240, 217, 151).

Aa

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

About this color

#F0D997 is a light, moderately saturated yellow. In OKLCH its lightness is 89%, its chroma 0.088 and its hue 91°. Its hue sits on the warm side of the wheel. The nearest named color is Vanilla (#E9D8A6), ΔE 0.021 away. Black text reads best on it, at 15.07:1.

Hue familyYellows
Lightnesslight (89%)
Chromamoderately saturated (0.088)
Temperaturewarm
Nearest nameVanilla (#E9D8A6)
Black text15.07:1
White text1.39:1

Values

HEX#F0D997
RGBrgb(240, 217, 151)
HSLhsl(44, 75%, 77%)
OKLCHoklch(88.9% 0.088 91.1)

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 #F0D997 1.39:1 Fails Lc -21.7 Dividers and decoration only
Black text on #F0D997 15.07:1 AAA Lc 84.6 Fine for body text
#F0D997 text on white 1.39:1 Fails Lc 19.0 Dividers and decoration only
#F0D997 text on black 15.07:1 AAA Lc -84.4 Fine 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 200.

  1. Step 50

    50

    #F9F5EA

    oklch(97% 0.015 90.2)

  2. Step 100

    100

    #F2EAD2

    oklch(93.7% 0.033 91.7)

  3. Step 200

    200 (this color)

    #F0D997

    oklch(88.9% 0.088 91.1)

  4. Step 300

    300

    #DCBE66

    oklch(80.9% 0.113 90.9)

  5. Step 400

    400

    #C29C00

    oklch(70.7% 0.145 91.2)

  6. Step 500

    500

    #A78500

    oklch(63.1% 0.129 90.6)

  7. Step 600

    600

    #8C7000

    oklch(55.6% 0.114 91.4)

  8. Step 700

    700

    #765E00

    oklch(49.2% 0.101 91.4)

  9. Step 800

    800

    #614C00

    oklch(42.6% 0.087 90.4)

  10. Step 900

    900

    #513F00

    oklch(37.6% 0.077 90.4)

  11. Step 950

    950

    #302500

    oklch(26.9% 0.055 91.9)

Export this scale for Tailwind in the Tailwind colors tool

#F0D997 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)#E7D7920.016
Deuteranopia (no green cones)#EDDD990.010
Tritanopia (no blue cones)#FDCFC80.079
Achromatopsia (no color)#DADADA0.088

Harmonies

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

Complementary

The opposite hue (180°).

  • #F0D997

    #F0D997

    oklch(88.9% 0.088 91.1)

  • #CDD9FF

    #CDD9FF

    oklch(88.8% 0.054 271.5)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #F0D997

    #F0D997

    oklch(88.9% 0.088 91.1)

  • #FFD0AA

    #FFD0AA

    oklch(88.9% 0.073 60.6)

  • #D1E4A3

    #D1E4A3

    oklch(88.9% 0.087 121.4)

Open the analogous palette in the generator

Split complementary

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

  • #F0D997

    #F0D997

    oklch(88.9% 0.088 91.1)

  • #B8E0FF

    #B8E0FF

    oklch(88.8% 0.06 241.7)

  • #E1D1FF

    #E1D1FF

    oklch(88.8% 0.065 301)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #F0D997

    #F0D997

    oklch(88.9% 0.088 91.1)

  • #93EBFB

    #93EBFB

    oklch(89% 0.087 210.3)

  • #FDC6F5

    #FDC6F5

    oklch(88.9% 0.087 331.3)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #F0D997

    #F0D997

    oklch(88.9% 0.088 91.1)

  • #97EEDE

    #97EEDE

    oklch(88.9% 0.087 181.3)

  • #CDD9FF

    #CDD9FF

    oklch(88.8% 0.054 271.5)

  • #FFCAD8

    #FFCAD8

    oklch(88.9% 0.063 0.9)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

Use #F0D997 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.