#798F40
Closest named color: Camo (#7F8F4E). oklch(61.5% 0.109 122.6), rgb(121, 143, 64).
Aa
Black text reads best on this color (5.81:1).
About this color
#798F40 is a medium-dark, moderately saturated yellow. In OKLCH its lightness is 62%, its chroma 0.109 and its hue 123°. Its hue sits between the warm and cool halves of the wheel. The nearest named color is Camo (#7F8F4E), ΔE 0.019 away. Black text reads best on it, at 5.81:1.
| Hue family | Yellows |
| Lightness | medium-dark (62%) |
| Chroma | moderately saturated (0.109) |
| Temperature | in between |
| Nearest name | Camo (#7F8F4E) |
| Black text | 5.81:1 |
| White text | 3.61:1 |
Values
| HEX | #798F40 |
| RGB | rgb(121, 143, 64) |
| HSL | hsl(77, 38%, 41%) |
| OKLCH | oklch(61.5% 0.109 122.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 #798F40 | 3.61:1 | AA large text | Lc -69.1 | Content text, not long reading |
| Black text on #798F40 | 5.81:1 | AA | Lc 40.4 | Non-text elements, placeholder text |
| #798F40 text on white | 3.61:1 | AA large text | Lc 63.6 | Content text, not long reading |
| #798F40 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.
-
Step 50
50
#F4F6F1
oklch(97% 0.007 124.4)
-
Step 100
100
#E8ECE1
oklch(93.7% 0.015 123)
-
Step 200
200
#D5DDC7
oklch(88.5% 0.031 123.3)
-
Step 300
300
#BAC7A1
oklch(81% 0.054 122.9)
-
Step 400
400
#97A96D
oklch(70.6% 0.085 122.2)
-
Step 500
500 (this color)
#798F40
oklch(61.5% 0.109 122.6)
-
Step 600
600
#677E23
oklch(55.6% 0.118 122.7)
-
Step 700
700
#566A15
oklch(49.1% 0.11 122.4)
-
Step 800
800
#465715
oklch(42.8% 0.092 122.9)
-
Step 900
900
#3B4719
oklch(37.6% 0.07 122.1)
-
Step 950
950
#222A10
oklch(27% 0.045 123.5)
#798F40 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) | #978738 | 0.046 |
| Deuteranopia (no green cones) | #948745 | 0.046 |
| Tritanopia (no blue cones) | #7E897D | 0.088 |
| Achromatopsia (no color) | #878787 | 0.109 |
Harmonies
Hue rotations in OKLCH that keep this color's lightness and chroma.
Complementary
The opposite hue (180°).
- #798F40
#798F40
oklch(61.5% 0.109 122.6)
- #9174BB
#9174BB
oklch(61.5% 0.109 302.1)
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 #798F40, closest first.
Similar named colors
The eight closest entries in our named color list, with their ΔE distance.
- Camo #7F8F4E ΔE 0.019
- Drab Green #749551 ΔE 0.020
- Khaki Green #728639 ΔE 0.028
- Moss Green #658B38 ΔE 0.031
- Moss #769958 ΔE 0.032
- Olive Drab #6B8E23 ΔE 0.034
- Drab #828344 ΔE 0.038
- Flat Green #699D4C ΔE 0.040
Use #798F40 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.