#7F8A04

Closest named color: Dark Yellow Green (#728F02). oklch(60.4% 0.136 115.3), rgb(127, 138, 4).

Aa

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

About this color

#7F8A04 is a medium-dark, moderately saturated yellow. In OKLCH its lightness is 60%, its chroma 0.136 and its hue 115°. Its hue sits between the warm and cool halves of the wheel. The nearest named color is Dark Yellow Green (#728F02), ΔE 0.022 away. Black text reads best on it, at 5.53:1.

Hue familyYellows
Lightnessmedium-dark (60%)
Chromamoderately saturated (0.136)
Temperaturein between
Nearest nameDark Yellow Green (#728F02)
Black text5.53:1
White text3.79:1

Values

HEX#7F8A04
RGBrgb(127, 138, 4)
HSLhsl(65, 94%, 28%)
OKLCHoklch(60.4% 0.136 115.3)

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 #7F8A04 3.79:1 AA large text Lc -70.8 Content text, not long reading
Black text on #7F8A04 5.53:1 AA Lc 38.8 Non-text elements, placeholder text
#7F8A04 text on white 3.79:1 AA large text Lc 65.3 Content text, not long reading
#7F8A04 text on black 5.53:1 AA Lc -36.4 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

    #F5F6F0

    oklch(97.1% 0.008 114.2)

  2. Step 100

    100

    #E9ECDD

    oklch(93.7% 0.02 116)

  3. Step 200

    200

    #D8DCC1

    oklch(88.4% 0.036 114)

  4. Step 300

    300

    #BEC695

    oklch(80.8% 0.066 115.4)

  5. Step 400

    400

    #9EA957

    oklch(70.8% 0.107 115.5)

  6. Step 500

    500 (this color)

    #7F8A04

    oklch(60.4% 0.136 115.3)

  7. Step 600

    600

    #717B00

    oklch(55.5% 0.126 115.3)

  8. Step 700

    700

    #5F6700

    oklch(49% 0.111 115)

  9. Step 800

    800

    #4D5500

    oklch(42.8% 0.098 115.9)

  10. Step 900

    900

    #404600

    oklch(37.6% 0.085 115.2)

  11. Step 950

    950

    #262904

    oklch(26.9% 0.055 114.1)

Export this scale for Tailwind in the Tailwind colors tool

#7F8A04 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)#9582000.039
Deuteranopia (no green cones)#9484190.038
Tritanopia (no blue cones)#8881750.120
Achromatopsia (no color)#8383830.136

Harmonies

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

Complementary

The opposite hue (180°).

  • #7F8A04

    #7F8A04

    oklch(60.4% 0.136 115.3)

  • #886EC9

    #886EC9

    oklch(60.3% 0.136 295.2)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #7F8A04

    #7F8A04

    oklch(60.4% 0.136 115.3)

  • #A37A00

    #A37A00

    oklch(60.3% 0.124 84.9)

  • #44964B

    #44964B

    oklch(60.4% 0.136 145.3)

Open the analogous palette in the generator

Split complementary

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

  • #7F8A04

    #7F8A04

    oklch(60.4% 0.136 115.3)

  • #597DD2

    #597DD2

    oklch(60.3% 0.136 265.3)

  • #AA62AD

    #AA62AD

    oklch(60.4% 0.136 325.6)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #7F8A04

    #7F8A04

    oklch(60.4% 0.136 115.3)

  • #008CC3

    #008CC3

    oklch(60.4% 0.129 235.2)

  • #BE5B85

    #BE5B85

    oklch(60.4% 0.135 355.2)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #7F8A04

    #7F8A04

    oklch(60.4% 0.136 115.3)

  • #00929F

    #00929F

    oklch(60.3% 0.103 205.9)

  • #886EC9

    #886EC9

    oklch(60.3% 0.136 295.2)

  • #C65C56

    #C65C56

    oklch(60.4% 0.137 25.3)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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