#7F8A33

Closest named color: Khaki Green (#728639). oklch(60.6% 0.112 115.9), rgb(127, 138, 51).

Aa

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

About this color

#7F8A33 is a medium-dark, moderately saturated yellow. In OKLCH its lightness is 61%, its chroma 0.112 and its hue 116°. Its hue sits between the warm and cool halves of the wheel. The nearest named color is Khaki Green (#728639), ΔE 0.023 away. Black text reads best on it, at 5.58:1.

Hue familyYellows
Lightnessmedium-dark (61%)
Chromamoderately saturated (0.112)
Temperaturein between
Nearest nameKhaki Green (#728639)
Black text5.58:1
White text3.75:1

Values

HEX#7F8A33
RGBrgb(127, 138, 51)
HSLhsl(68, 46%, 37%)
OKLCHoklch(60.6% 0.112 115.9)

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 #7F8A33 3.75:1 AA large text Lc -70.6 Content text, not long reading
Black text on #7F8A33 5.58:1 AA Lc 39.0 Non-text elements, placeholder text
#7F8A33 text on white 3.75:1 AA large text Lc 65.1 Content text, not long reading
#7F8A33 text on black 5.58:1 AA Lc -36.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

    #F5F6F1

    oklch(97.1% 0.007 115.7)

  2. Step 100

    100

    #E9EBE0

    oklch(93.6% 0.015 115)

  3. Step 200

    200

    #D8DCC6

    oklch(88.5% 0.03 115.4)

  4. Step 300

    300

    #BEC69E

    oklch(81% 0.055 116.8)

  5. Step 400

    400

    #9EA867

    oklch(70.8% 0.088 115.8)

  6. Step 500

    500 (this color)

    #7F8A33

    oklch(60.6% 0.112 115.9)

  7. Step 600

    600

    #707B11

    oklch(55.5% 0.121 116)

  8. Step 700

    700

    #5E6800

    oklch(49.2% 0.113 116.2)

  9. Step 800

    800

    #4D5508

    oklch(42.8% 0.094 116)

  10. Step 900

    900

    #404612

    oklch(37.7% 0.073 115.6)

  11. Step 950

    950

    #25290D

    oklch(26.9% 0.046 116.3)

Export this scale for Tailwind in the Tailwind colors tool

#7F8A33 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)#9383290.033
Deuteranopia (no green cones)#9284390.035
Tritanopia (no blue cones)#8782780.098
Achromatopsia (no color)#8484840.112

Harmonies

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

Complementary

The opposite hue (180°).

  • #7F8A33

    #7F8A33

    oklch(60.6% 0.112 115.9)

  • #8873BD

    #8873BD

    oklch(60.6% 0.112 296)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #7F8A33

    #7F8A33

    oklch(60.6% 0.112 115.9)

  • #A07C22

    #A07C22

    oklch(60.6% 0.112 85.5)

  • #529458

    #529458

    oklch(60.7% 0.112 146)

Open the analogous palette in the generator

Split complementary

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

  • #7F8A33

    #7F8A33

    oklch(60.6% 0.112 115.9)

  • #627FC5

    #627FC5

    oklch(60.5% 0.112 266.1)

  • #A469A6

    #A469A6

    oklch(60.6% 0.112 325.7)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #7F8A33

    #7F8A33

    oklch(60.6% 0.112 115.9)

  • #2F8CBC

    #2F8CBC

    oklch(60.8% 0.112 235.8)

  • #B66484

    #B66484

    oklch(60.6% 0.112 356.1)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #7F8A33

    #7F8A33

    oklch(60.6% 0.112 115.9)

  • #0093A0

    #0093A0

    oklch(60.6% 0.104 205.8)

  • #8873BD

    #8873BD

    oklch(60.6% 0.112 296)

  • #BC665E

    #BC665E

    oklch(60.7% 0.112 26.4)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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