#E7E172

Closest named color: Dull Yellow (#EEDC5B). oklch(89.2% 0.133 106), rgb(231, 225, 114).

Aa

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

About this color

#E7E172 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.41:1.

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

Values

HEX#E7E172
RGBrgb(231, 225, 114)
HSLhsl(57, 71%, 68%)
OKLCHoklch(89.2% 0.133 106)

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 #E7E172 1.36:1 Fails Lc -20.2 Dividers and decoration only
Black text on #E7E172 15.41:1 AAA Lc 86.0 Fine for body text
#E7E172 text on white 1.36:1 Fails Lc 17.7 Dividers and decoration only
#E7E172 text on black 15.41:1 AAA Lc -85.9 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

    #EEEDC7

    oklch(93.7% 0.05 106.1)

  3. Step 200

    200 (this color)

    #E7E172

    oklch(89.2% 0.133 106)

  4. Step 300

    300

    #D0C607

    oklch(80.9% 0.171 105.9)

  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

    #7D7700

    oklch(55.7% 0.119 106.2)

  8. Step 700

    700

    #696400

    oklch(49.2% 0.105 106.3)

  9. Step 800

    800

    #565100

    oklch(42.6% 0.091 105.5)

  10. Step 900

    900

    #474400

    oklch(37.7% 0.081 106.8)

  11. Step 950

    950

    #2A2800

    oklch(27% 0.058 106.8)

Export this scale for Tailwind in the Tailwind colors tool

#E7E172 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.020
Deuteranopia (no green cones)#F4DF770.021
Tritanopia (no blue cones)#F5D5C80.120
Achromatopsia (no color)#DDDDDD0.134

Harmonies

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

Complementary

The opposite hue (180°).

  • #E7E172

    #E7E172

    oklch(89.2% 0.133 106)

  • #D8D7FF

    #D8D7FF

    oklch(89.3% 0.055 286.4)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #E7E172

    #E7E172

    oklch(89.2% 0.133 106)

  • #FFD496

    #FFD496

    oklch(89.3% 0.092 76.2)

  • #B3F096

    #B3F096

    oklch(89.3% 0.134 136.1)

Open the analogous palette in the generator

Split complementary

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

  • #E7E172

    #E7E172

    oklch(89.2% 0.133 106)

  • #C5DEFF

    #C5DEFF

    oklch(89.3% 0.053 255.4)

  • #F0CCFF

    #F0CCFF

    oklch(89.2% 0.079 315.9)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #E7E172

    #E7E172

    oklch(89.2% 0.133 106)

  • #AAE6FF

    #AAE6FF

    oklch(89.3% 0.07 225.6)

  • #FFC9E5

    #FFC9E5

    oklch(89.1% 0.071 346.1)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #E7E172

    #E7E172

    oklch(89.2% 0.133 106)

  • #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 #E7E172, closest first.

Similar named colors

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

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