#7E9D02

Closest named color: Pea Soup (#929901). oklch(64.9% 0.158 122.6), rgb(126, 157, 2).

Aa

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

About this color

#7E9D02 is a medium-light, vivid yellow. In OKLCH its lightness is 65%, its chroma 0.158 and its hue 123°. Its hue sits between the warm and cool halves of the wheel. The nearest named color is Pea Soup (#929901), ΔE 0.029 away. Black text reads best on it, at 6.71:1.

Hue familyYellows
Lightnessmedium-light (65%)
Chromavivid (0.158)
Temperaturein between
Nearest namePea Soup (#929901)
Black text6.71:1
White text3.12:1

Values

HEX#7E9D02
RGBrgb(126, 157, 2)
HSLhsl(72, 97%, 31%)
OKLCHoklch(64.9% 0.158 122.6)

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 #7E9D02 3.12:1 AA large text Lc -63.5 Content text, not long reading
Black text on #7E9D02 6.71:1 AA Lc 45.9 Large or bold text, headings
#7E9D02 text on white 3.12:1 AA large text Lc 58.1 Large or bold text, headings
#7E9D02 text on black 6.71:1 AA Lc -43.6 Non-text elements, placeholder 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 500.

  1. Step 50

    50

    #F4F7EF

    oklch(97.2% 0.011 123.5)

  2. Step 100

    100

    #E7EDDC

    oklch(93.7% 0.023 122.7)

  3. Step 200

    200

    #D4DEBF

    oklch(88.5% 0.043 121.8)

  4. Step 300

    300

    #B7C992

    oklch(80.8% 0.077 122.8)

  5. Step 400

    400

    #93AD50

    oklch(70.8% 0.124 122.6)

  6. Step 500

    500 (this color)

    #7E9D02

    oklch(64.9% 0.158 122.6)

  7. Step 600

    600

    #657F00

    oklch(55.6% 0.136 122.8)

  8. Step 700

    700

    #556B00

    oklch(49.2% 0.12 122.6)

  9. Step 800

    800

    #455700

    oklch(42.6% 0.104 122.4)

  10. Step 900

    900

    #394900

    oklch(37.8% 0.092 122.7)

  11. Step 950

    950

    #212B00

    oklch(27% 0.066 122.2)

Export this scale for Tailwind in the Tailwind colors tool

#7E9D02 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)#A792000.065
Deuteranopia (no green cones)#A3911D0.064
Tritanopia (no blue cones)#8594850.133
Achromatopsia (no color)#9292920.158

Harmonies

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

Complementary

The opposite hue (180°).

  • #7E9D02

    #7E9D02

    oklch(64.9% 0.158 122.6)

  • #A274DD

    #A274DD

    oklch(64.9% 0.157 302.5)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #7E9D02

    #7E9D02

    oklch(64.9% 0.158 122.6)

  • #AB8B00

    #AB8B00

    oklch(64.8% 0.133 92.4)

  • #22A95D

    #22A95D

    oklch(64.8% 0.158 152.6)

Open the analogous palette in the generator

Split complementary

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

  • #7E9D02

    #7E9D02

    oklch(64.9% 0.158 122.6)

  • #6F85EE

    #6F85EE

    oklch(64.9% 0.158 272.4)

  • #C566B8

    #C566B8

    oklch(64.9% 0.157 332.6)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #7E9D02

    #7E9D02

    oklch(64.9% 0.158 122.6)

  • #0097E5

    #0097E5

    oklch(64.9% 0.156 242.6)

  • #DA5F86

    #DA5F86

    oklch(64.9% 0.158 2.7)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #7E9D02

    #7E9D02

    oklch(64.9% 0.158 122.6)

  • #00A0B7

    #00A0B7

    oklch(64.8% 0.113 212.5)

  • #A274DD

    #A274DD

    oklch(64.9% 0.157 302.5)

  • #DE644C

    #DE644C

    oklch(64.9% 0.158 32.8)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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