#7F8A20

Closest named color: Swamp Green (#748500). oklch(60.5% 0.126 115.5), rgb(127, 138, 32).

Aa

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

About this color

#7F8A20 is a medium-dark, moderately saturated yellow. In OKLCH its lightness is 60%, its chroma 0.126 and its hue 116°. Its hue sits between the warm and cool halves of the wheel. The nearest named color is Swamp Green (#748500), ΔE 0.026 away. Black text reads best on it, at 5.55:1.

Hue familyYellows
Lightnessmedium-dark (60%)
Chromamoderately saturated (0.126)
Temperaturein between
Nearest nameSwamp Green (#748500)
Black text5.55:1
White text3.77:1

Values

HEX#7F8A20
RGBrgb(127, 138, 32)
HSLhsl(66, 62%, 33%)
OKLCHoklch(60.5% 0.126 115.5)

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 #7F8A20 3.77:1 AA large text Lc -70.7 Content text, not long reading
Black text on #7F8A20 5.55:1 AA Lc 38.9 Non-text elements, placeholder text
#7F8A20 text on white 3.77:1 AA large text Lc 65.2 Content text, not long reading
#7F8A20 text on black 5.55:1 AA Lc -36.5 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

    #E9EBDE

    oklch(93.5% 0.017 113.8)

  3. Step 200

    200

    #D8DCC3

    oklch(88.5% 0.034 114.5)

  4. Step 300

    300

    #BEC699

    oklch(80.9% 0.061 116)

  5. Step 400

    400

    #9EA85F

    oklch(70.7% 0.097 115.3)

  6. Step 500

    500 (this color)

    #7F8A20

    oklch(60.5% 0.126 115.5)

  7. Step 600

    600

    #717B00

    oklch(55.5% 0.126 115.3)

  8. Step 700

    700

    #5F6800

    oklch(49.3% 0.112 115.5)

  9. Step 800

    800

    #4D5500

    oklch(42.8% 0.098 115.9)

  10. Step 900

    900

    #404606

    oklch(37.6% 0.081 115.3)

  11. Step 950

    950

    #252908

    oklch(26.9% 0.051 115.8)

Export this scale for Tailwind in the Tailwind colors tool

#7F8A20 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)#9483070.034
Deuteranopia (no green cones)#9384290.036
Tritanopia (no blue cones)#8882760.110
Achromatopsia (no color)#8383830.126

Harmonies

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

Complementary

The opposite hue (180°).

  • #7F8A20

    #7F8A20

    oklch(60.5% 0.126 115.5)

  • #8870C4

    #8870C4

    oklch(60.4% 0.126 295.5)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #7F8A20

    #7F8A20

    oklch(60.5% 0.126 115.5)

  • #A37B00

    #A37B00

    oklch(60.6% 0.124 85.7)

  • #4B9551

    #4B9551

    oklch(60.5% 0.125 145.5)

Open the analogous palette in the generator

Split complementary

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

  • #7F8A20

    #7F8A20

    oklch(60.5% 0.126 115.5)

  • #5D7ECD

    #5D7ECD

    oklch(60.4% 0.126 265.6)

  • #A765AA

    #A765AA

    oklch(60.4% 0.125 325.4)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #7F8A20

    #7F8A20

    oklch(60.5% 0.126 115.5)

  • #118CC2

    #118CC2

    oklch(60.5% 0.126 235.5)

  • #BB5F85

    #BB5F85

    oklch(60.5% 0.126 355.4)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #7F8A20

    #7F8A20

    oklch(60.5% 0.126 115.5)

  • #00939F

    #00939F

    oklch(60.5% 0.103 205)

  • #8870C4

    #8870C4

    oklch(60.4% 0.126 295.5)

  • #C1605A

    #C1605A

    oklch(60.4% 0.126 25.1)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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