#F2E17B

Closest named color: Khaki (#F0E68C). oklch(90.3% 0.125 100), rgb(242, 225, 123).

Aa

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

About this color

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

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

Values

HEX#F2E17B
RGBrgb(242, 225, 123)
HSLhsl(51, 82%, 72%)
OKLCHoklch(90.3% 0.125 100)

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 #F2E17B 1.32:1 Fails Lc -18.4 Dividers and decoration only
Black text on #F2E17B 15.83:1 AAA Lc 87.6 Fine for body text
#F2E17B text on white 1.32:1 Fails Lc 16.0 Dividers and decoration only
#F2E17B 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)

    #F2E17B

    oklch(90.3% 0.125 100)

  4. Step 300

    300

    #D9C225

    oklch(80.9% 0.16 100.1)

  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

    #6E6100

    oklch(49% 0.102 100.2)

  9. Step 800

    800

    #5B4F00

    oklch(42.7% 0.088 99.2)

  10. Step 900

    900

    #4B4200

    oklch(37.7% 0.078 100.6)

  11. Step 950

    950

    #2D2700

    oklch(27.1% 0.056 100.5)

Export this scale for Tailwind in the Tailwind colors tool

#F2E17B 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)#F2DC720.013
Deuteranopia (no green cones)#F7E37F0.010
Tritanopia (no blue cones)#FFD4C90.113
Achromatopsia (no color)#DFDFDF0.125

Harmonies

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

Complementary

The opposite hue (180°).

  • #F2E17B

    #F2E17B

    oklch(90.3% 0.125 100)

  • #D8DCFF

    #D8DCFF

    oklch(90.2% 0.048 280.2)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #F2E17B

    #F2E17B

    oklch(90.3% 0.125 100)

  • #FFD7AA

    #FFD7AA

    oklch(90.2% 0.074 70)

  • #C4F096

    #C4F096

    oklch(90.3% 0.125 129.8)

Open the analogous palette in the generator

Split complementary

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

  • #F2E17B

    #F2E17B

    oklch(90.3% 0.125 100)

  • #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.

  • #F2E17B

    #F2E17B

    oklch(90.3% 0.125 100)

  • #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.

  • #F2E17B

    #F2E17B

    oklch(90.3% 0.125 100)

  • #69F9F1

    #69F9F1

    oklch(90.2% 0.124 190.1)

  • #D8DCFF

    #D8DCFF

    oklch(90.2% 0.048 280.2)

  • #FFD1D7

    #FFD1D7

    oklch(90.2% 0.052 9.4)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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