#797B51
Closest named color: Grey Brown (#7F7053). oklch(57% 0.06 110.5), rgb(121, 123, 81).
Aa
Black text reads best on this color (4.76:1).
About this color
#797B51 is a medium-dark, muted yellow. In OKLCH its lightness is 57%, its chroma 0.060 and its hue 110°. Its hue sits between the warm and cool halves of the wheel. The nearest named color is Grey Brown (#7F7053), ΔE 0.034 away. Black text reads best on it, at 4.76:1.
| Hue family | Yellows |
| Lightness | medium-dark (57%) |
| Chroma | muted (0.060) |
| Temperature | in between |
| Nearest name | Grey Brown (#7F7053) |
| Black text | 4.76:1 |
| White text | 4.40:1 |
Values
| HEX | #797B51 |
| RGB | rgb(121, 123, 81) |
| HSL | hsl(63, 21%, 40%) |
| OKLCH | oklch(57% 0.06 110.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 #797B51 | 4.40:1 | AA large text | Lc -76.0 | Fine for body text |
| Black text on #797B51 | 4.76:1 | AA | Lc 33.5 | Non-text elements, placeholder text |
| #797B51 text on white | 4.40:1 | AA large text | Lc 70.6 | Content text, not long reading |
| #797B51 text on black | 4.76:1 | AA | Lc -31.1 | 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
#EAEAE4
oklch(93.5% 0.008 106.6)
-
Step 200
200
#D9DACF
oklch(88.5% 0.015 110.9)
-
Step 300
300
#C1C2AF
oklch(80.8% 0.026 109.4)
-
Step 400
400
#A1A385
oklch(70.6% 0.042 110.6)
-
Step 500
500
#8B8D66
oklch(63.1% 0.055 110.3)
-
Step 600
600 (this color)
#797B51
oklch(57% 0.06 110.5)
-
Step 700
700
#62643E
oklch(49.1% 0.056 110.9)
-
Step 800
800
#505133
oklch(42.6% 0.046 109.8)
-
Step 900
900
#42432D
oklch(37.5% 0.035 110.2)
-
Step 950
950
#27281B
oklch(27.2% 0.023 111.5)
#797B51 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) | #81774E | 0.015 |
| Deuteranopia (no green cones) | #827953 | 0.016 |
| Tritanopia (no blue cones) | #7E7670 | 0.053 |
| Achromatopsia (no color) | #787878 | 0.060 |
Harmonies
Hue rotations in OKLCH that keep this color's lightness and chroma.
Complementary
The opposite hue (180°).
- #797B51
#797B51
oklch(57% 0.06 110.5)
- #777299
#777299
oklch(57.1% 0.06 290.2)
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 #797B51, closest first.
Similar named colors
The eight closest entries in our named color list, with their ΔE distance.
- Grey Brown #7F7053 ΔE 0.034
- Drab #828344 ΔE 0.035
- Dull Brown #876E4B ΔE 0.040
- Military Green #667C3E ΔE 0.040
- Dirt #8A6E45 ΔE 0.041
- Dark Sage #598556 ΔE 0.048
- Brown Grey #8D8468 ΔE 0.050
- Swamp #698339 ΔE 0.050
Use #797B51 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.