#7F8022

Closest named color: Olive (#808000). oklch(58.1% 0.113 110.1), rgb(127, 128, 34).

Aa

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

About this color

#7F8022 is a medium-dark, moderately saturated yellow. In OKLCH its lightness is 58%, its chroma 0.113 and its hue 110°. Its hue sits between the warm and cool halves of the wheel. The nearest named color is Olive (#808000), ΔE 0.014 away. Black text reads best on it, at 5.01:1.

Hue familyYellows
Lightnessmedium-dark (58%)
Chromamoderately saturated (0.113)
Temperaturein between
Nearest nameOlive (#808000)
Black text5.01:1
White text4.18:1

Values

HEX#7F8022
RGBrgb(127, 128, 34)
HSLhsl(61, 58%, 32%)
OKLCHoklch(58.1% 0.113 110.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 #7F8022 4.18:1 AA large text Lc -74.3 Content text, not long reading
Black text on #7F8022 5.01:1 AA Lc 35.3 Non-text elements, placeholder text
#7F8022 text on white 4.18:1 AA large text Lc 68.8 Content text, not long reading
#7F8022 text on black 5.01:1 AA Lc -32.9 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 600.

  1. Step 50

    50

    #F5F6F1

    oklch(97.1% 0.007 115.7)

  2. Step 100

    100

    #EAEBE0

    oklch(93.6% 0.015 110.9)

  3. Step 200

    200

    #DADBC6

    oklch(88.5% 0.028 109.2)

  4. Step 300

    300

    #C2C49E

    oklch(80.9% 0.051 110)

  5. Step 400

    400

    #A3A569

    oklch(70.6% 0.081 109.9)

  6. Step 500

    500

    #8D8F3E

    oklch(63.1% 0.104 110.3)

  7. Step 600

    600 (this color)

    #7F8022

    oklch(58.1% 0.113 110.1)

  8. Step 700

    700

    #656505

    oklch(49.1% 0.105 109.7)

  9. Step 800

    800

    #52530C

    oklch(42.8% 0.088 110.4)

  10. Step 900

    900

    #444514

    oklch(37.8% 0.069 110.4)

  11. Step 950

    950

    #28280E

    oklch(27% 0.042 108.9)

Export this scale for Tailwind in the Tailwind colors tool

#7F8022 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)#8B7A110.022
Deuteranopia (no green cones)#8B7D290.022
Tritanopia (no blue cones)#88786E0.101
Achromatopsia (no color)#7C7C7C0.113

Harmonies

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

Complementary

The opposite hue (180°).

  • #7F8022

    #7F8022

    oklch(58.1% 0.113 110.1)

  • #7A6EB9

    #7A6EB9

    oklch(58.2% 0.113 289.7)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #7F8022

    #7F8022

    oklch(58.1% 0.113 110.1)

  • #9D7217

    #9D7217

    oklch(58.1% 0.113 80.3)

  • #548B48

    #548B48

    oklch(58.2% 0.114 140.1)

Open the analogous palette in the generator

Split complementary

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

  • #7F8022

    #7F8022

    oklch(58.1% 0.113 110.1)

  • #527ABD

    #527ABD

    oklch(58.1% 0.113 260.2)

  • #9863A4

    #9863A4

    oklch(58.1% 0.113 320)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #7F8022

    #7F8022

    oklch(58.1% 0.113 110.1)

  • #0E86B0

    #0E86B0

    oklch(58.1% 0.113 229.8)

  • #AC5D84

    #AC5D84

    oklch(58.2% 0.113 350.2)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #7F8022

    #7F8022

    oklch(58.1% 0.113 110.1)

  • #008C92

    #008C92

    oklch(58.2% 0.099 200.1)

  • #7A6EB9

    #7A6EB9

    oklch(58.2% 0.113 289.7)

  • #B45D5E

    #B45D5E

    oklch(58.2% 0.113 20.4)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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