#E7C152

Closest named color: Saffron (#E9C46A). oklch(82.4% 0.135 90.1), rgb(231, 193, 82).

Aa

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

About this color

#E7C152 is a light, moderately saturated yellow. In OKLCH its lightness is 82%, its chroma 0.135 and its hue 90°. Its hue sits on the warm side of the wheel. The nearest named color is Saffron (#E9C46A), ΔE 0.022 away. Black text reads best on it, at 12.14:1.

Hue familyYellows
Lightnesslight (82%)
Chromamoderately saturated (0.135)
Temperaturewarm
Nearest nameSaffron (#E9C46A)
Black text12.14:1
White text1.72:1

Values

HEX#E7C152
RGBrgb(231, 193, 82)
HSLhsl(45, 76%, 61%)
OKLCHoklch(82.4% 0.135 90.1)

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 #E7C152 1.72:1 Fails Lc -35.0 Non-text elements, placeholder text
Black text on #E7C152 12.14:1 AAA Lc 72.7 Content text, not long reading
#E7C152 text on white 1.72:1 Fails Lc 31.2 Non-text elements, placeholder text
#E7C152 text on black 12.14:1 AAA Lc -71.6 Content text, not long reading

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 300.

  1. Step 50

    50

    #FAF5E8

    oklch(97% 0.018 89.4)

  2. Step 100

    100

    #F4E9CD

    oklch(93.5% 0.039 89.1)

  3. Step 200

    200

    #ECD8A0

    oklch(88.5% 0.076 90.7)

  4. Step 300

    300 (this color)

    #E7C152

    oklch(82.4% 0.135 90.1)

  5. Step 400

    400

    #C39B00

    oklch(70.6% 0.144 90.2)

  6. Step 500

    500

    #A88500

    oklch(63.2% 0.129 90)

  7. Step 600

    600

    #8D6F00

    oklch(55.5% 0.113 89.9)

  8. Step 700

    700

    #775D00

    oklch(49.1% 0.1 89.6)

  9. Step 800

    800

    #614C00

    oklch(42.6% 0.087 90.4)

  10. Step 900

    900

    #513F00

    oklch(37.6% 0.077 90.4)

  11. Step 950

    950

    #312500

    oklch(27.1% 0.055 90.3)

Export this scale for Tailwind in the Tailwind colors tool

#E7C152 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)#D5BF450.031
Deuteranopia (no green cones)#DEC9570.022
Tritanopia (no blue cones)#F9B2A90.122
Achromatopsia (no color)#C5C5C50.135

Harmonies

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

Complementary

The opposite hue (180°).

  • #E7C152

    #E7C152

    oklch(82.4% 0.135 90.1)

  • #AFC3FF

    #AFC3FF

    oklch(82.3% 0.088 270.1)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #E7C152

    #E7C152

    oklch(82.4% 0.135 90.1)

  • #FFB271

    #FFB271

    oklch(82.4% 0.121 60.1)

  • #BAD268

    #BAD268

    oklch(82.3% 0.135 120)

Open the analogous palette in the generator

Split complementary

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

  • #E7C152

    #E7C152

    oklch(82.4% 0.135 90.1)

  • #88CEFF

    #88CEFF

    oklch(82.3% 0.099 240.1)

  • #D0B6FF

    #D0B6FF

    oklch(82.4% 0.104 300.5)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #E7C152

    #E7C152

    oklch(82.4% 0.135 90.1)

  • #2EDCF5

    #2EDCF5

    oklch(82.3% 0.135 210.1)

  • #F7A4EF

    #F7A4EF

    oklch(82.4% 0.136 330.1)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #E7C152

    #E7C152

    oklch(82.4% 0.135 90.1)

  • #40E1C9

    #40E1C9

    oklch(82.3% 0.134 180.5)

  • #AFC3FF

    #AFC3FF

    oklch(82.3% 0.088 270.1)

  • #FFA8C2

    #FFA8C2

    oklch(82.4% 0.107 0.3)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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