#7C871C

Closest named color: Swamp Green (#748500). oklch(59.5% 0.125 115.6), rgb(124, 135, 28).

Aa

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

About this color

#7C871C is a medium-dark, moderately saturated yellow. In OKLCH its lightness is 59%, its chroma 0.125 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.018 away. Black text reads best on it, at 5.33:1.

Hue familyYellows
Lightnessmedium-dark (59%)
Chromamoderately saturated (0.125)
Temperaturein between
Nearest nameSwamp Green (#748500)
Black text5.33:1
White text3.93:1

Values

HEX#7C871C
RGBrgb(124, 135, 28)
HSLhsl(66, 66%, 32%)
OKLCHoklch(59.5% 0.125 115.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 #7C871C 3.93:1 AA large text Lc -72.1 Content text, not long reading
Black text on #7C871C 5.33:1 AA Lc 37.5 Non-text elements, placeholder text
#7C871C text on white 3.93:1 AA large text Lc 66.6 Content text, not long reading
#7C871C text on black 5.33:1 AA Lc -35.1 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)

    #7C871C

    oklch(59.5% 0.125 115.6)

  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

#7C871C 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)#9180000.034
Deuteranopia (no green cones)#9081260.036
Tritanopia (no blue cones)#847F730.109
Achromatopsia (no color)#8080800.125

Harmonies

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

Complementary

The opposite hue (180°).

  • #7C871C

    #7C871C

    oklch(59.5% 0.125 115.6)

  • #856DC1

    #856DC1

    oklch(59.4% 0.127 295.4)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #7C871C

    #7C871C

    oklch(59.5% 0.125 115.6)

  • #9F7800

    #9F7800

    oklch(59.5% 0.122 85.7)

  • #47924E

    #47924E

    oklch(59.5% 0.126 145.7)

Open the analogous palette in the generator

Split complementary

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

  • #7C871C

    #7C871C

    oklch(59.5% 0.125 115.6)

  • #5B7BC9

    #5B7BC9

    oklch(59.5% 0.125 265.9)

  • #A462A7

    #A462A7

    oklch(59.4% 0.126 325.5)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #7C871C

    #7C871C

    oklch(59.5% 0.125 115.6)

  • #0989BE

    #0989BE

    oklch(59.5% 0.125 235.2)

  • #B75C82

    #B75C82

    oklch(59.5% 0.125 355.2)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #7C871C

    #7C871C

    oklch(59.5% 0.125 115.6)

  • #008F9C

    #008F9C

    oklch(59.4% 0.102 206.1)

  • #856DC1

    #856DC1

    oklch(59.4% 0.127 295.4)

  • #BE5D57

    #BE5D57

    oklch(59.4% 0.126 25.2)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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