#7B862A

Closest named color: Khaki Green (#728639). oklch(59.3% 0.115 115.9), rgb(123, 134, 42).

Aa

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

About this color

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

Hue familyYellows
Lightnessmedium-dark (59%)
Chromamoderately saturated (0.115)
Temperaturein between
Nearest nameKhaki Green (#728639)
Black text5.28:1
White text3.97:1

Values

HEX#7B862A
RGBrgb(123, 134, 42)
HSLhsl(67, 52%, 35%)
OKLCHoklch(59.3% 0.115 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 #7B862A 3.97:1 AA large text Lc -72.5 Content text, not long reading
Black text on #7B862A 5.28:1 AA Lc 37.1 Non-text elements, placeholder text
#7B862A text on white 3.97:1 AA large text Lc 67.0 Content text, not long reading
#7B862A text on black 5.28:1 AA Lc -34.7 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 600.

  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

    #D8DCC7

    oklch(88.6% 0.029 115.7)

  4. Step 300

    300

    #BEC59F

    oklch(80.8% 0.052 116.1)

  5. Step 400

    400

    #9EA76A

    oklch(70.6% 0.083 115.4)

  6. Step 500

    500

    #869140

    oklch(63% 0.107 116)

  7. Step 600

    600 (this color)

    #7B862A

    oklch(59.3% 0.115 115.9)

  8. Step 700

    700

    #5E680C

    oklch(49.2% 0.108 116.3)

  9. Step 800

    800

    #4D5410

    oklch(42.6% 0.088 115.4)

  10. Step 900

    900

    #404616

    oklch(37.7% 0.069 115.8)

  11. Step 950

    950

    #25290E

    oklch(27% 0.044 116.5)

Export this scale for Tailwind in the Tailwind colors tool

#7B862A 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)#8F7F1D0.033
Deuteranopia (no green cones)#8F80310.036
Tritanopia (no blue cones)#837E730.101
Achromatopsia (no color)#8080800.116

Harmonies

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

Complementary

The opposite hue (180°).

  • #7B862A

    #7B862A

    oklch(59.3% 0.115 115.9)

  • #846EBB

    #846EBB

    oklch(59.2% 0.117 295.8)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #7B862A

    #7B862A

    oklch(59.3% 0.115 115.9)

  • #9D7814

    #9D7814

    oklch(59.3% 0.116 85.7)

  • #4C9052

    #4C9052

    oklch(59.2% 0.116 145.8)

Open the analogous palette in the generator

Split complementary

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

  • #7B862A

    #7B862A

    oklch(59.3% 0.115 115.9)

  • #5D7BC3

    #5D7BC3

    oklch(59.2% 0.116 265.9)

  • #A164A3

    #A164A3

    oklch(59.2% 0.116 325.8)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #7B862A

    #7B862A

    oklch(59.3% 0.115 115.9)

  • #2388B9

    #2388B9

    oklch(59.4% 0.115 235.4)

  • #B35F80

    #B35F80

    oklch(59.3% 0.115 356.3)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #7B862A

    #7B862A

    oklch(59.3% 0.115 115.9)

  • #008F9B

    #008F9B

    oklch(59.3% 0.101 205.2)

  • #846EBB

    #846EBB

    oklch(59.2% 0.117 295.8)

  • #B96059

    #B96059

    oklch(59.2% 0.116 25.8)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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