#F8D97B

Closest named color: Sandy (#F1DA7A). oklch(89.2% 0.119 91.6), rgb(248, 217, 123).

Aa

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

About this color

#F8D97B is a light, moderately saturated yellow. In OKLCH its lightness is 89%, its chroma 0.119 and its hue 92°. Its hue sits on the warm side of the wheel. The nearest named color is Sandy (#F1DA7A), ΔE 0.011 away. Black text reads best on it, at 15.20:1.

Hue familyYellows
Lightnesslight (89%)
Chromamoderately saturated (0.119)
Temperaturewarm
Nearest nameSandy (#F1DA7A)
Black text15.20:1
White text1.38:1

Values

HEX#F8D97B
RGBrgb(248, 217, 123)
HSLhsl(45, 90%, 73%)
OKLCHoklch(89.2% 0.119 91.6)

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 #F8D97B 1.38:1 Fails Lc -21.1 Dividers and decoration only
Black text on #F8D97B 15.20:1 AAA Lc 85.2 Fine for body text
#F8D97B text on white 1.38:1 Fails Lc 18.5 Dividers and decoration only
#F8D97B text on black 15.20:1 AAA Lc -85.0 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

    #FAF5E6

    oklch(97% 0.02 91.6)

  2. Step 100

    100

    #F4EAC9

    oklch(93.6% 0.045 93.1)

  3. Step 200

    200 (this color)

    #F8D97B

    oklch(89.2% 0.119 91.6)

  4. Step 300

    300

    #E5BC30

    oklch(80.9% 0.153 91.3)

  5. Step 400

    400

    #C19C00

    oklch(70.6% 0.144 91.7)

  6. Step 500

    500

    #A68600

    oklch(63.2% 0.129 91.9)

  7. Step 600

    600

    #8C7000

    oklch(55.6% 0.114 91.4)

  8. Step 700

    700

    #755E00

    oklch(49.1% 0.1 92.1)

  9. Step 800

    800

    #604D00

    oklch(42.7% 0.087 92.5)

  10. Step 900

    900

    #514000

    oklch(37.9% 0.077 91.7)

  11. Step 950

    950

    #302500

    oklch(26.9% 0.055 91.9)

Export this scale for Tailwind in the Tailwind colors tool

#F8D97B 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)#EBD6730.023
Deuteranopia (no green cones)#F3DF7F0.015
Tritanopia (no blue cones)#FFCCC30.105
Achromatopsia (no color)#DBDBDB0.119

Harmonies

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

Complementary

The opposite hue (180°).

  • #F8D97B

    #F8D97B

    oklch(89.2% 0.119 91.6)

  • #CFDAFF

    #CFDAFF

    oklch(89.2% 0.052 272.3)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #F8D97B

    #F8D97B

    oklch(89.2% 0.119 91.6)

  • #FFD1AB

    #FFD1AB

    oklch(89.1% 0.072 61.2)

  • #CFE88D

    #CFE88D

    oklch(89.2% 0.119 121.4)

Open the analogous palette in the generator

Split complementary

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

  • #F8D97B

    #F8D97B

    oklch(89.2% 0.119 91.6)

  • #BAE1FF

    #BAE1FF

    oklch(89.2% 0.058 241.4)

  • #E2D2FF

    #E2D2FF

    oklch(89.1% 0.063 301.3)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #F8D97B

    #F8D97B

    oklch(89.2% 0.119 91.6)

  • #8EECFF

    #8EECFF

    oklch(89.1% 0.093 212)

  • #FFC6F6

    #FFC6F6

    oklch(89.2% 0.089 331.8)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #F8D97B

    #F8D97B

    oklch(89.2% 0.119 91.6)

  • #74F5E1

    #74F5E1

    oklch(89.1% 0.119 182)

  • #CFDAFF

    #CFDAFF

    oklch(89.2% 0.052 272.3)

  • #FFCBD8

    #FFCBD8

    oklch(89.1% 0.061 1.7)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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