#7B8A20

Closest named color: Swamp Green (#748500). oklch(60.1% 0.127 117.6), rgb(123, 138, 32).

Aa

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

About this color

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

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

Values

HEX#7B8A20
RGBrgb(123, 138, 32)
HSLhsl(68, 62%, 33%)
OKLCHoklch(60.1% 0.127 117.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 #7B8A20 3.81:1 AA large text Lc -71.1 Content text, not long reading
Black text on #7B8A20 5.49:1 AA Lc 38.5 Non-text elements, placeholder text
#7B8A20 text on white 3.81:1 AA large text Lc 65.6 Content text, not long reading
#7B8A20 text on black 5.49:1 AA Lc -36.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

    #E9ECDE

    oklch(93.7% 0.019 116.6)

  3. Step 200

    200

    #D7DDC3

    oklch(88.6% 0.035 117.7)

  4. Step 300

    300

    #BDC699

    oklch(80.8% 0.062 117)

  5. Step 400

    400

    #9BA95F

    oklch(70.7% 0.1 117.8)

  6. Step 500

    500 (this color)

    #7B8A20

    oklch(60.1% 0.127 117.6)

  7. Step 600

    600

    #6E7C00

    oklch(55.5% 0.128 117.3)

  8. Step 700

    700

    #5C6800

    oklch(49% 0.113 117.4)

  9. Step 800

    800

    #4B5500

    oklch(42.6% 0.098 117.3)

  10. Step 900

    900

    #3E4707

    oklch(37.7% 0.083 117.9)

  11. Step 950

    950

    #242A08

    oklch(27.1% 0.053 118.7)

Export this scale for Tailwind in the Tailwind colors tool

#7B8A20 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)#9482070.040
Deuteranopia (no green cones)#9283290.041
Tritanopia (no blue cones)#8382760.110
Achromatopsia (no color)#8282820.127

Harmonies

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

Complementary

The opposite hue (180°).

  • #7B8A20

    #7B8A20

    oklch(60.1% 0.127 117.6)

  • #8A6EC2

    #8A6EC2

    oklch(60.1% 0.127 297.8)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #7B8A20

    #7B8A20

    oklch(60.1% 0.127 117.6)

  • #A07B00

    #A07B00

    oklch(60.2% 0.123 87.4)

  • #449552

    #449552

    oklch(60.2% 0.128 147.4)

Open the analogous palette in the generator

Split complementary

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

  • #7B8A20

    #7B8A20

    oklch(60.1% 0.127 117.6)

  • #5F7CCC

    #5F7CCC

    oklch(60.1% 0.127 267.5)

  • #A863A7

    #A863A7

    oklch(60.1% 0.127 327.5)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #7B8A20

    #7B8A20

    oklch(60.1% 0.127 117.6)

  • #168AC3

    #168AC3

    oklch(60.2% 0.127 237.7)

  • #BB5D81

    #BB5D81

    oklch(60.1% 0.127 357.4)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #7B8A20

    #7B8A20

    oklch(60.1% 0.127 117.6)

  • #0091A0

    #0091A0

    oklch(60% 0.103 207.6)

  • #8A6EC2

    #8A6EC2

    oklch(60.1% 0.127 297.8)

  • #C15F55

    #C15F55

    oklch(60.1% 0.128 27.5)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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