#797A40
Closest named color: Military Green (#667C3E). oklch(56.5% 0.08 109.6), rgb(121, 122, 64).
Aa
Black text reads best on this color (4.67:1).
About this color
#797A40 is a medium-dark, moderately saturated yellow. In OKLCH its lightness is 57%, its chroma 0.080 and its hue 110°. Its hue sits on the warm side of the wheel. The nearest named color is Military Green (#667C3E), ΔE 0.028 away. Black text reads best on it, at 4.67:1.
| Hue family | Yellows |
| Lightness | medium-dark (57%) |
| Chroma | moderately saturated (0.080) |
| Temperature | warm |
| Nearest name | Military Green (#667C3E) |
| Black text | 4.67:1 |
| White text | 4.49:1 |
Values
| HEX | #797A40 |
| RGB | rgb(121, 122, 64) |
| HSL | hsl(61, 31%, 36%) |
| OKLCH | oklch(56.5% 0.08 109.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.
| Pair | WCAG 2 | Result | APCA | APCA guidance |
|---|---|---|---|---|
| White text on #797A40 | 4.49:1 | AA large text | Lc -76.7 | Fine for body text |
| Black text on #797A40 | 4.67:1 | AA | Lc 32.9 | Non-text elements, placeholder text |
| #797A40 text on white | 4.49:1 | AA large text | Lc 71.2 | Content text, not long reading |
| #797A40 text on black | 4.67:1 | AA | Lc -30.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.
-
Step 50
50
#F5F6F2
oklch(97.1% 0.005 117.9)
-
Step 100
100
#EAEAE3
oklch(93.5% 0.009 106.6)
-
Step 200
200
#DADACC
oklch(88.5% 0.019 106.8)
-
Step 300
300
#C2C3A9
oklch(80.9% 0.035 109)
-
Step 400
400
#A3A47B
oklch(70.7% 0.057 108.9)
-
Step 500
500
#8C8E58
oklch(63.2% 0.075 110.2)
-
Step 600
600 (this color)
#797A40
oklch(56.5% 0.08 109.6)
-
Step 700
700
#64642F
oklch(49.1% 0.074 108.8)
-
Step 800
800
#515228
oklch(42.7% 0.062 110)
-
Step 900
900
#434425
oklch(37.7% 0.048 110.1)
-
Step 950
950
#272816
oklch(27% 0.031 111)
#797A40 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) | #82763B | 0.016 |
| Deuteranopia (no green cones) | #837843 | 0.018 |
| Tritanopia (no blue cones) | #80746C | 0.070 |
| Achromatopsia (no color) | #777777 | 0.080 |
Harmonies
Hue rotations in OKLCH that keep this color's lightness and chroma.
Complementary
The opposite hue (180°).
- #797A40
#797A40
oklch(56.5% 0.08 109.6)
- #756EA2
#756EA2
oklch(56.5% 0.08 289.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 #797A40, closest first.
Similar named colors
The eight closest entries in our named color list, with their ΔE distance.
- Military Green #667C3E ΔE 0.028
- Drab #828344 ΔE 0.030
- Swamp #698339 ΔE 0.037
- Khaki Green #728639 ΔE 0.039
- Muddy Green #657432 ΔE 0.039
- Hazel #8E7618 ΔE 0.040
- Dirt #8A6E45 ΔE 0.045
- Grey Brown #7F7053 ΔE 0.045
Use #797A40 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.