#7B881C

Closest named color: Swamp Green (#748500). oklch(59.6% 0.127 116.6), rgb(123, 136, 28).

Aa

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

About this color

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

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

Values

HEX#7B881C
RGBrgb(123, 136, 28)
HSLhsl(67, 66%, 32%)
OKLCHoklch(59.6% 0.127 116.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 #7B881C 3.90:1 AA large text Lc -71.8 Content text, not long reading
Black text on #7B881C 5.38:1 AA Lc 37.7 Non-text elements, placeholder text
#7B881C text on white 3.90:1 AA large text Lc 66.3 Content text, not long reading
#7B881C text on black 5.38:1 AA Lc -35.3 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

    #E9ECDE

    oklch(93.7% 0.019 116.6)

  3. Step 200

    200

    #D7DCC3

    oklch(88.4% 0.034 116.3)

  4. Step 300

    300

    #BEC699

    oklch(80.9% 0.061 116)

  5. Step 400

    400

    #9DA95E

    oklch(70.8% 0.1 116.5)

  6. Step 500

    500 (this color)

    #7B881C

    oklch(59.6% 0.127 116.6)

  7. Step 600

    600

    #6F7C00

    oklch(55.6% 0.128 116.8)

  8. Step 700

    700

    #5D6800

    oklch(49.1% 0.113 116.8)

  9. Step 800

    800

    #4C5500

    oklch(42.7% 0.098 116.6)

  10. Step 900

    900

    #3F4706

    oklch(37.8% 0.083 117)

  11. Step 950

    950

    #252908

    oklch(26.9% 0.051 115.8)

Export this scale for Tailwind in the Tailwind colors tool

#7B881C 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)#9280000.038
Deuteranopia (no green cones)#9182260.039
Tritanopia (no blue cones)#8380740.110
Achromatopsia (no color)#8181810.127

Harmonies

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

Complementary

The opposite hue (180°).

  • #7B881C

    #7B881C

    oklch(59.6% 0.127 116.6)

  • #876DC1

    #876DC1

    oklch(59.6% 0.127 296.6)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #7B881C

    #7B881C

    oklch(59.6% 0.127 116.6)

  • #9F7900

    #9F7900

    oklch(59.7% 0.122 86.5)

  • #45934F

    #45934F

    oklch(59.7% 0.127 146.4)

Open the analogous palette in the generator

Split complementary

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

  • #7B881C

    #7B881C

    oklch(59.6% 0.127 116.6)

  • #5C7BCB

    #5C7BCB

    oklch(59.6% 0.128 266.6)

  • #A662A7

    #A662A7

    oklch(59.7% 0.127 326.5)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #7B881C

    #7B881C

    oklch(59.6% 0.127 116.6)

  • #0C89C0

    #0C89C0

    oklch(59.7% 0.126 236.3)

  • #B95C81

    #B95C81

    oklch(59.7% 0.127 356.5)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #7B881C

    #7B881C

    oklch(59.6% 0.127 116.6)

  • #00909D

    #00909D

    oklch(59.7% 0.102 206)

  • #876DC1

    #876DC1

    oklch(59.6% 0.127 296.6)

  • #BF5E55

    #BF5E55

    oklch(59.7% 0.126 27)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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