#797F4B
Closest named color: Drab (#828344). oklch(57.9% 0.073 114.1), rgb(121, 127, 75).
Aa
Black text reads best on this color (4.95:1).
About this color
#797F4B is a medium-dark, moderately saturated yellow. In OKLCH its lightness is 58%, its chroma 0.073 and its hue 114°. Its hue sits between the warm and cool halves of the wheel. The nearest named color is Drab (#828344), ΔE 0.021 away. Black text reads best on it, at 4.95:1.
| Hue family | Yellows |
| Lightness | medium-dark (58%) |
| Chroma | moderately saturated (0.073) |
| Temperature | in between |
| Nearest name | Drab (#828344) |
| Black text | 4.95:1 |
| White text | 4.24:1 |
Values
| HEX | #797F4B |
| RGB | rgb(121, 127, 75) |
| HSL | hsl(67, 26%, 40%) |
| OKLCH | oklch(57.9% 0.073 114.1) |
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 #797F4B | 4.24:1 | AA large text | Lc -74.8 | Content text, not long reading |
| Black text on #797F4B | 4.95:1 | AA | Lc 34.8 | Non-text elements, placeholder text |
| #797F4B text on white | 4.24:1 | AA large text | Lc 69.3 | Content text, not long reading |
| #797F4B text on black | 4.95:1 | AA | Lc -32.4 | 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
#F5F6F2
oklch(97.1% 0.005 117.9)
-
Step 100
100
#E9EBE3
oklch(93.6% 0.011 118)
-
Step 200
200
#D9DBCD
oklch(88.6% 0.019 113.4)
-
Step 300
300
#C0C3AB
oklch(80.8% 0.033 112.9)
-
Step 400
400
#A0A57F
oklch(70.8% 0.053 113.9)
-
Step 500
500
#888E5E
oklch(63% 0.068 114.2)
-
Step 600
600 (this color)
#797F4B
oklch(57.9% 0.073 114.1)
-
Step 700
700
#606536
oklch(49.1% 0.068 113.9)
-
Step 800
800
#4E532D
oklch(42.8% 0.058 115)
-
Step 900
900
#414429
oklch(37.6% 0.043 113.6)
-
Step 950
950
#262818
oklch(27% 0.028 114.1)
#797F4B 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) | #867A47 | 0.022 |
| Deuteranopia (no green cones) | #867B4D | 0.023 |
| Tritanopia (no blue cones) | #7F7A72 | 0.063 |
| Achromatopsia (no color) | #7B7B7B | 0.074 |
Harmonies
Hue rotations in OKLCH that keep this color's lightness and chroma.
Complementary
The opposite hue (180°).
- #797F4B
#797F4B
oklch(57.9% 0.073 114.1)
- #7C72A1
#7C72A1
oklch(57.9% 0.072 293.8)
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 #797F4B, closest first.
Similar named colors
The eight closest entries in our named color list, with their ΔE distance.
- Drab #828344 ΔE 0.021
- Military Green #667C3E ΔE 0.034
- Khaki Green #728639 ΔE 0.035
- Swamp #698339 ΔE 0.037
- Dark Sage #598556 ΔE 0.042
- Camo #7F8F4E ΔE 0.048
- Hazel #8E7618 ΔE 0.049
- Grey Brown #7F7053 ΔE 0.049
Use #797F4B 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.