#7E8D52

Closest named color: Camo (#7F8F4E). oklch(61.7% 0.084 120.6), rgb(126, 141, 82).

Aa

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

About this color

#7E8D52 is a medium-dark, moderately saturated yellow. In OKLCH its lightness is 62%, its chroma 0.084 and its hue 121°. Its hue sits between the warm and cool halves of the wheel. The nearest named color is Camo (#7F8F4E), ΔE 0.009 away. Black text reads best on it, at 5.81:1.

Hue familyYellows
Lightnessmedium-dark (62%)
Chromamoderately saturated (0.084)
Temperaturein between
Nearest nameCamo (#7F8F4E)
Black text5.81:1
White text3.60:1

Values

HEX#7E8D52
RGBrgb(126, 141, 82)
HSLhsl(75, 26%, 44%)
OKLCHoklch(61.7% 0.084 120.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 #7E8D52 3.60:1 AA large text Lc -69.1 Content text, not long reading
Black text on #7E8D52 5.81:1 AA Lc 40.4 Non-text elements, placeholder text
#7E8D52 text on white 3.60:1 AA large text Lc 63.7 Content text, not long reading
#7E8D52 text on black 5.81:1 AA Lc -38.0 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

    #F5F6F2

    oklch(97.1% 0.005 117.9)

  2. Step 100

    100

    #E8EBE2

    oklch(93.5% 0.012 121.7)

  3. Step 200

    200

    #D7DCCB

    oklch(88.6% 0.023 120.2)

  4. Step 300

    300

    #BCC5A8

    oklch(80.9% 0.041 121.3)

  5. Step 400

    400

    #9BA779

    oklch(70.7% 0.065 120)

  6. Step 500

    500 (this color)

    #7E8D52

    oklch(61.7% 0.084 120.6)

  7. Step 600

    600

    #6C7B3B

    oklch(55.6% 0.09 120.3)

  8. Step 700

    700

    #5A682D

    oklch(49.2% 0.085 120.7)

  9. Step 800

    800

    #4A5526

    oklch(42.8% 0.071 120.4)

  10. Step 900

    900

    #3D4624

    oklch(37.7% 0.054 121.2)

  11. Step 950

    950

    #242915

    oklch(27% 0.035 120.3)

Export this scale for Tailwind in the Tailwind colors tool

#7E8D52 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)#94874D0.034
Deuteranopia (no green cones)#9287550.034
Tritanopia (no blue cones)#83877F0.071
Achromatopsia (no color)#8787870.084

Harmonies

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

Complementary

The opposite hue (180°).

  • #7E8D52

    #7E8D52

    oklch(61.7% 0.084 120.6)

  • #8D7AB0

    #8D7AB0

    oklch(61.7% 0.083 300.1)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #7E8D52

    #7E8D52

    oklch(61.7% 0.084 120.6)

  • #988347

    #988347

    oklch(61.6% 0.083 90.6)

  • #5F946B

    #5F946B

    oklch(61.8% 0.084 150.5)

Open the analogous palette in the generator

Split complementary

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

  • #7E8D52

    #7E8D52

    oklch(61.7% 0.084 120.6)

  • #7283B8

    #7283B8

    oklch(61.8% 0.083 270.2)

  • #A2739D

    #A2739D

    oklch(61.7% 0.083 330.2)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #7E8D52

    #7E8D52

    oklch(61.7% 0.084 120.6)

  • #548CB3

    #548CB3

    oklch(61.7% 0.084 240.4)

  • #AF7082

    #AF7082

    oklch(61.7% 0.083 1.2)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #7E8D52

    #7E8D52

    oklch(61.7% 0.084 120.6)

  • #3D93A2

    #3D93A2

    oklch(61.7% 0.084 210.8)

  • #8D7AB0

    #8D7AB0

    oklch(61.7% 0.083 300.1)

  • #B27266

    #B27266

    oklch(61.7% 0.084 31.2)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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