#E8E172

Closest named color: Dull Yellow (#EEDC5B). oklch(89.3% 0.133 105.5), rgb(232, 225, 114).

Aa

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

About this color

#E8E172 is a light, moderately saturated yellow. In OKLCH its lightness is 89%, its chroma 0.133 and its hue 106°. Its hue sits on the warm side of the wheel. The nearest named color is Dull Yellow (#EEDC5B), ΔE 0.020 away. Black text reads best on it, at 15.44:1.

Hue familyYellows
Lightnesslight (89%)
Chromamoderately saturated (0.133)
Temperaturewarm
Nearest nameDull Yellow (#EEDC5B)
Black text15.44:1
White text1.35:1

Values

HEX#E8E172
RGBrgb(232, 225, 114)
HSLhsl(56, 72%, 68%)
OKLCHoklch(89.3% 0.133 105.5)

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 #E8E172 1.35:1 Fails Lc -20.1 Dividers and decoration only
Black text on #E8E172 15.44:1 AAA Lc 86.1 Fine for body text
#E8E172 text on white 1.35:1 Fails Lc 17.6 Dividers and decoration only
#E8E172 text on black 15.44:1 AAA Lc -86.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

    #F7F7E5

    oklch(97.1% 0.024 106.8)

  2. Step 100

    100

    #EEECC7

    oklch(93.5% 0.048 104.8)

  3. Step 200

    200 (this color)

    #E8E172

    oklch(89.3% 0.133 105.5)

  4. Step 300

    300

    #D1C604

    oklch(81% 0.172 105.6)

  5. Step 400

    400

    #AEA500

    oklch(70.7% 0.151 105.7)

  6. Step 500

    500

    #958D00

    oklch(63% 0.134 105.6)

  7. Step 600

    600

    #7D7600

    oklch(55.4% 0.118 105.5)

  8. Step 700

    700

    #696300

    oklch(49% 0.104 105.5)

  9. Step 800

    800

    #565100

    oklch(42.6% 0.091 105.5)

  10. Step 900

    900

    #484400

    oklch(37.8% 0.081 105.9)

  11. Step 950

    950

    #2B2800

    oklch(27.1% 0.058 105.3)

Export this scale for Tailwind in the Tailwind colors tool

#E8E172 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)#F1DA680.019
Deuteranopia (no green cones)#F4DF770.019
Tritanopia (no blue cones)#F6D5C80.120
Achromatopsia (no color)#DDDDDD0.133

Harmonies

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

Complementary

The opposite hue (180°).

  • #E8E172

    #E8E172

    oklch(89.3% 0.133 105.5)

  • #D8D7FF

    #D8D7FF

    oklch(89.3% 0.055 286.4)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #E8E172

    #E8E172

    oklch(89.3% 0.133 105.5)

  • #FFD498

    #FFD498

    oklch(89.3% 0.09 75.4)

  • #B4F095

    #B4F095

    oklch(89.3% 0.134 135.5)

Open the analogous palette in the generator

Split complementary

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

  • #E8E172

    #E8E172

    oklch(89.3% 0.133 105.5)

  • #C5DEFF

    #C5DEFF

    oklch(89.3% 0.053 255.4)

  • #F0CDFF

    #F0CDFF

    oklch(89.3% 0.077 315.7)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #E8E172

    #E8E172

    oklch(89.3% 0.133 105.5)

  • #AAE6FF

    #AAE6FF

    oklch(89.3% 0.07 225.6)

  • #FFCAE6

    #FFCAE6

    oklch(89.3% 0.07 345.6)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #E8E172

    #E8E172

    oklch(89.3% 0.133 105.5)

  • #51F7F8

    #51F7F8

    oklch(89.3% 0.134 195.6)

  • #D8D7FF

    #D8D7FF

    oklch(89.3% 0.055 286.4)

  • #FFCDCF

    #FFCDCF

    oklch(89.2% 0.057 15.6)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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