#F7EC97

Closest named color: Khaki (#F0E68C). oklch(93.3% 0.106 101.8), rgb(247, 236, 151).

Aa

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

About this color

#F7EC97 is a very light, moderately saturated yellow. In OKLCH its lightness is 93%, its chroma 0.106 and its hue 102°. Its hue sits on the warm side of the wheel. The nearest named color is Khaki (#F0E68C), ΔE 0.021 away. Black text reads best on it, at 17.39:1.

Hue familyYellows
Lightnessvery light (93%)
Chromamoderately saturated (0.106)
Temperaturewarm
Nearest nameKhaki (#F0E68C)
Black text17.39:1
White text1.20:1

Values

HEX#F7EC97
RGBrgb(247, 236, 151)
HSLhsl(53, 86%, 78%)
OKLCHoklch(93.3% 0.106 101.8)

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 #F7EC97 1.20:1 Fails Lc -11.8 Not readable
Black text on #F7EC97 17.39:1 AAA Lc 93.4 Preferred for body text
#F7EC97 text on white 1.20:1 Fails Lc 10.1 Not readable
#F7EC97 text on black 17.39:1 AAA Lc -94.0 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 100.

  1. Step 50

    50

    #F8F6E8

    oklch(97.1% 0.019 100.1)

  2. Step 100

    100 (this color)

    #F7EC97

    oklch(93.3% 0.106 101.8)

  3. Step 200

    200

    #E3DCA1

    oklch(88.6% 0.077 102.1)

  4. Step 300

    300

    #D3C34F

    oklch(80.9% 0.136 101.5)

  5. Step 400

    400

    #B4A300

    oklch(70.8% 0.148 101.9)

  6. Step 500

    500

    #9A8B00

    oklch(63% 0.132 101.8)

  7. Step 600

    600

    #827500

    oklch(55.7% 0.116 101.7)

  8. Step 700

    700

    #6D6200

    oklch(49.1% 0.103 101.8)

  9. Step 800

    800

    #595000

    oklch(42.7% 0.089 102)

  10. Step 900

    900

    #4A4200

    oklch(37.6% 0.079 101.6)

  11. Step 950

    950

    #2C2700

    oklch(27% 0.057 102.1)

Export this scale for Tailwind in the Tailwind colors tool

#F7EC97 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)#FBE7910.012
Deuteranopia (no green cones)#FEEC9A0.011
Tritanopia (no blue cones)#FFE1D70.095
Achromatopsia (no color)#EAEAEA0.106

Harmonies

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

Complementary

The opposite hue (180°).

  • #F7EC97

    #F7EC97

    oklch(93.3% 0.106 101.8)

  • #E5E7FF

    #E5E7FF

    oklch(93.4% 0.032 282)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #F7EC97

    #F7EC97

    oklch(93.3% 0.106 101.8)

  • #FFE4C4

    #FFE4C4

    oklch(93.3% 0.051 71.8)

  • #CFF8AE

    #CFF8AE

    oklch(93.2% 0.106 131.7)

Open the analogous palette in the generator

Split complementary

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

  • #F7EC97

    #F7EC97

    oklch(93.3% 0.106 101.8)

  • #DAEBFF

    #DAEBFF

    oklch(93.4% 0.033 252.5)

  • #F3E1FF

    #F3E1FF

    oklch(93.3% 0.044 312)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #F7EC97

    #F7EC97

    oklch(93.3% 0.106 101.8)

  • #C9F1FF

    #C9F1FF

    oklch(93.4% 0.045 221)

  • #FFDEF1

    #FFDEF1

    oklch(93.3% 0.044 342.4)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #F7EC97

    #F7EC97

    oklch(93.3% 0.106 101.8)

  • #91FFFA

    #91FFFA

    oklch(93.3% 0.102 191.7)

  • #E5E7FF

    #E5E7FF

    oklch(93.4% 0.032 282)

  • #FFE0E3

    #FFE0E3

    oklch(93.3% 0.034 11.1)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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