#7F8142

Closest named color: Drab (#828344). oklch(58.7% 0.086 110.4), rgb(127, 129, 66).

Aa

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

About this color

#7F8142 is a medium-dark, moderately saturated yellow. In OKLCH its lightness is 59%, its chroma 0.086 and its hue 110°. Its hue sits between the warm and cool halves of the wheel. The nearest named color is Drab (#828344), ΔE 0.008 away. Black text reads best on it, at 5.12:1.

Hue familyYellows
Lightnessmedium-dark (59%)
Chromamoderately saturated (0.086)
Temperaturein between
Nearest nameDrab (#828344)
Black text5.12:1
White text4.10:1

Values

HEX#7F8142
RGBrgb(127, 129, 66)
HSLhsl(62, 32%, 38%)
OKLCHoklch(58.7% 0.086 110.4)

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 #7F8142 4.10:1 AA large text Lc -73.6 Content text, not long reading
Black text on #7F8142 5.12:1 AA Lc 36.0 Non-text elements, placeholder text
#7F8142 text on white 4.10:1 AA large text Lc 68.1 Content text, not long reading
#7F8142 text on black 5.12:1 AA Lc -33.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 600.

  1. Step 50

    50

    #F5F6F2

    oklch(97.1% 0.005 117.9)

  2. Step 100

    100

    #EAEBE2

    oklch(93.7% 0.012 111.8)

  3. Step 200

    200

    #D9DBCB

    oklch(88.5% 0.022 112.6)

  4. Step 300

    300

    #C1C3A7

    oklch(80.8% 0.038 110.6)

  5. Step 400

    400

    #A2A578

    oklch(70.8% 0.062 111.1)

  6. Step 500

    500

    #8C8E55

    oklch(63.1% 0.078 110.2)

  7. Step 600

    600 (this color)

    #7F8142

    oklch(58.7% 0.086 110.4)

  8. Step 700

    700

    #63652B

    oklch(49.2% 0.08 110.8)

  9. Step 800

    800

    #515225

    oklch(42.7% 0.065 110)

  10. Step 900

    900

    #434423

    oklch(37.7% 0.051 110.1)

  11. Step 950

    950

    #272815

    oklch(27% 0.032 111)

Export this scale for Tailwind in the Tailwind colors tool

#7F8142 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)#8A7C3D0.020
Deuteranopia (no green cones)#8A7E450.020
Tritanopia (no blue cones)#867A720.076
Achromatopsia (no color)#7D7D7D0.086

Harmonies

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

Complementary

The opposite hue (180°).

  • #7F8142

    #7F8142

    oklch(58.7% 0.086 110.4)

  • #7C73AC

    #7C73AC

    oklch(58.6% 0.087 290.7)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #7F8142

    #7F8142

    oklch(58.7% 0.086 110.4)

  • #97773D

    #97773D

    oklch(58.8% 0.086 80.7)

  • #608958

    #608958

    oklch(58.7% 0.086 140.4)

Open the analogous palette in the generator

Split complementary

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

  • #7F8142

    #7F8142

    oklch(58.7% 0.086 110.4)

  • #5F7DAF

    #5F7DAF

    oklch(58.7% 0.085 260.3)

  • #936B9C

    #936B9C

    oklch(58.6% 0.086 320.1)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #7F8142

    #7F8142

    oklch(58.7% 0.086 110.4)

  • #4086A6

    #4086A6

    oklch(58.8% 0.085 230.4)

  • #A36783

    #A36783

    oklch(58.7% 0.085 350.6)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #7F8142

    #7F8142

    oklch(58.7% 0.086 110.4)

  • #2E8C91

    #2E8C91

    oklch(58.8% 0.086 200.2)

  • #7C73AC

    #7C73AC

    oklch(58.6% 0.087 290.7)

  • #A96767

    #A96767

    oklch(58.6% 0.085 20)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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