#F2E17C

Closest named color: Khaki (#F0E68C). oklch(90.3% 0.124 99.9), rgb(242, 225, 124).

Aa

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

About this color

#F2E17C is a very light, moderately saturated yellow. In OKLCH its lightness is 90%, its chroma 0.124 and its hue 100°. Its hue sits on the warm side of the wheel. The nearest named color is Khaki (#F0E68C), ΔE 0.017 away. Black text reads best on it, at 15.83:1.

Hue familyYellows
Lightnessvery light (90%)
Chromamoderately saturated (0.124)
Temperaturewarm
Nearest nameKhaki (#F0E68C)
Black text15.83:1
White text1.32:1

Values

HEX#F2E17C
RGBrgb(242, 225, 124)
HSLhsl(51, 82%, 72%)
OKLCHoklch(90.3% 0.124 99.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 #F2E17C 1.32:1 Fails Lc -18.4 Dividers and decoration only
Black text on #F2E17C 15.83:1 AAA Lc 87.6 Fine for body text
#F2E17C text on white 1.32:1 Fails Lc 16.0 Dividers and decoration only
#F2E17C text on black 15.83:1 AAA Lc -87.7 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

    #F8F6E6

    oklch(97% 0.021 101)

  2. Step 100

    100

    #F1EBC8

    oklch(93.6% 0.046 99.2)

  3. Step 200

    200 (this color)

    #F2E17C

    oklch(90.3% 0.124 99.9)

  4. Step 300

    300

    #D9C228

    oklch(80.9% 0.159 100)

  5. Step 400

    400

    #B6A100

    oklch(70.6% 0.147 99.9)

  6. Step 500

    500

    #9C8A00

    oklch(63% 0.131 100.1)

  7. Step 600

    600

    #837400

    oklch(55.6% 0.116 100.3)

  8. Step 700

    700

    #6F6100

    oklch(49.1% 0.102 99.4)

  9. Step 800

    800

    #5B4F00

    oklch(42.7% 0.088 99.2)

  10. Step 900

    900

    #4C4200

    oklch(37.8% 0.078 99.5)

  11. Step 950

    950

    #2D2700

    oklch(27.1% 0.056 100.5)

Export this scale for Tailwind in the Tailwind colors tool

#F2E17C 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)#F2DC730.013
Deuteranopia (no green cones)#F7E3800.010
Tritanopia (no blue cones)#FFD4C90.112
Achromatopsia (no color)#E0E0E00.124

Harmonies

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

Complementary

The opposite hue (180°).

  • #F2E17C

    #F2E17C

    oklch(90.3% 0.124 99.9)

  • #D8DCFF

    #D8DCFF

    oklch(90.2% 0.048 280.2)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #F2E17C

    #F2E17C

    oklch(90.3% 0.124 99.9)

  • #FFD7AA

    #FFD7AA

    oklch(90.2% 0.074 70)

  • #C4F097

    #C4F097

    oklch(90.4% 0.124 130)

Open the analogous palette in the generator

Split complementary

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

  • #F2E17C

    #F2E17C

    oklch(90.3% 0.124 99.9)

  • #C7E2FF

    #C7E2FF

    oklch(90.2% 0.049 250.2)

  • #ECD4FF

    #ECD4FF

    oklch(90.3% 0.063 310.1)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #F2E17C

    #F2E17C

    oklch(90.3% 0.124 99.9)

  • #ABEAFF

    #ABEAFF

    oklch(90.2% 0.07 220.5)

  • #FFCEED

    #FFCEED

    oklch(90.3% 0.068 340.3)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #F2E17C

    #F2E17C

    oklch(90.3% 0.124 99.9)

  • #6AF9F1

    #6AF9F1

    oklch(90.2% 0.124 190.1)

  • #D8DCFF

    #D8DCFF

    oklch(90.2% 0.048 280.2)

  • #FFD2D7

    #FFD2D7

    oklch(90.4% 0.051 10.6)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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