#7E8157
Closest named color: Drab (#828344). oklch(59% 0.06 111.5), rgb(126, 129, 87).
Aa
Black text reads best on this color (5.16:1).
About this color
#7E8157 is a medium-dark, muted yellow. In OKLCH its lightness is 59%, its chroma 0.060 and its hue 112°. Its hue sits between the warm and cool halves of the wheel. The nearest named color is Drab (#828344), ΔE 0.026 away. Black text reads best on it, at 5.16:1.
| Hue family | Yellows |
| Lightness | medium-dark (59%) |
| Chroma | muted (0.060) |
| Temperature | in between |
| Nearest name | Drab (#828344) |
| Black text | 5.16:1 |
| White text | 4.06:1 |
Values
| HEX | #7E8157 |
| RGB | rgb(126, 129, 87) |
| HSL | hsl(64, 19%, 42%) |
| OKLCH | oklch(59% 0.06 111.5) |
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.
| Pair | WCAG 2 | Result | APCA | APCA guidance |
|---|---|---|---|---|
| White text on #7E8157 | 4.06:1 | AA large text | Lc -73.4 | Content text, not long reading |
| Black text on #7E8157 | 5.16:1 | AA | Lc 36.2 | Non-text elements, placeholder text |
| #7E8157 text on white | 4.06:1 | AA large text | Lc 67.9 | Content text, not long reading |
| #7E8157 text on black | 5.16:1 | AA | Lc -33.8 | 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.
-
Step 50
50
#F5F6F3
oklch(97.2% 0.004 121.6)
-
Step 100
100
#EAEAE5
oklch(93.6% 0.007 106.5)
-
Step 200
200
#D9DACF
oklch(88.5% 0.015 110.9)
-
Step 300
300
#C1C3AF
oklch(81% 0.027 111.6)
-
Step 400
400
#A1A485
oklch(70.8% 0.044 112)
-
Step 500
500
#8A8D66
oklch(63.1% 0.055 111.6)
-
Step 600
600 (this color)
#7E8157
oklch(59% 0.06 111.5)
-
Step 700
700
#61643E
oklch(49.1% 0.056 112.1)
-
Step 800
800
#505234
oklch(42.8% 0.046 111.4)
-
Step 900
900
#42442D
oklch(37.8% 0.037 112.2)
-
Step 950
950
#27281B
oklch(27.2% 0.023 111.5)
#7E8157 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.
| Vision | Seen as | Shift (ΔE) |
|---|---|---|
| Protanopia (no red cones) | #877D54 | 0.016 |
| Deuteranopia (no green cones) | #877F59 | 0.015 |
| Tritanopia (no blue cones) | #837C76 | 0.053 |
| Achromatopsia (no color) | #7E7E7E | 0.060 |
Harmonies
Hue rotations in OKLCH that keep this color's lightness and chroma.
Complementary
The opposite hue (180°).
- #7E8157
#7E8157
oklch(59% 0.06 111.5)
- #7D779F
#7D779F
oklch(59% 0.061 291.3)
Analogous
Neighbouring hues, 30° either side.
Split complementary
The two hues beside the complement (150° and 210°).
Triadic
Three hues spaced 120° apart.
Palettes with this color
Curated palettes that contain a color within ΔE 0.04 (OKLab) of #7E8157, closest first.
Similar named colors
The eight closest entries in our named color list, with their ΔE distance.
- Drab #828344 ΔE 0.026
- Brown Grey #8D8468 ΔE 0.034
- Slate Green #658D6D ΔE 0.044
- Camo #7F8F4E ΔE 0.046
- Khaki Green #728639 ΔE 0.048
- Grey Brown #7F7053 ΔE 0.048
- Green Grey #77926F ΔE 0.048
- Dark Sage #598556 ΔE 0.050
Use #7E8157 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.