#798B15
Closest named color: Dark Yellow Green (#728F02). oklch(60.2% 0.134 118.7), rgb(121, 139, 21).
Aa
Black text reads best on this color (5.51:1).
About this color
#798B15 is a medium-dark, moderately saturated yellow. In OKLCH its lightness is 60%, its chroma 0.134 and its hue 119°. Its hue sits between the warm and cool halves of the wheel. The nearest named color is Dark Yellow Green (#728F02), ΔE 0.017 away. Black text reads best on it, at 5.51:1.
| Hue family | Yellows |
| Lightness | medium-dark (60%) |
| Chroma | moderately saturated (0.134) |
| Temperature | in between |
| Nearest name | Dark Yellow Green (#728F02) |
| Black text | 5.51:1 |
| White text | 3.80:1 |
Values
| HEX | #798B15 |
| RGB | rgb(121, 139, 21) |
| HSL | hsl(69, 74%, 31%) |
| OKLCH | oklch(60.2% 0.134 118.7) |
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 #798B15 | 3.80:1 | AA large text | Lc -70.9 | Content text, not long reading |
| Black text on #798B15 | 5.51:1 | AA | Lc 38.6 | Non-text elements, placeholder text |
| #798B15 text on white | 3.80:1 | AA large text | Lc 65.4 | Content text, not long reading |
| #798B15 text on black | 5.51:1 | AA | Lc -36.2 | 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
#F5F6F0
oklch(97.1% 0.008 114.2)
-
Step 100
100
#E8ECDE
oklch(93.6% 0.019 119.8)
-
Step 200
200
#D6DDC2
oklch(88.5% 0.037 119)
-
Step 300
300
#BCC797
oklch(80.9% 0.066 118.4)
-
Step 400
400
#9AAA5B
oklch(70.8% 0.106 118.6)
-
Step 500
500 (this color)
#798B15
oklch(60.2% 0.134 118.7)
-
Step 600
600
#6C7D00
oklch(55.6% 0.13 118.8)
-
Step 700
700
#5A6900
oklch(49.1% 0.115 119)
-
Step 800
800
#4A5600
oklch(42.8% 0.1 118.6)
-
Step 900
900
#3D4701
oklch(37.6% 0.087 118.5)
-
Step 950
950
#242A06
oklch(27% 0.055 118.4)
#798B15 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) | #958300 | 0.044 |
| Deuteranopia (no green cones) | #938322 | 0.047 |
| Tritanopia (no blue cones) | #818376 | 0.115 |
| Achromatopsia (no color) | #838383 | 0.135 |
Harmonies
Hue rotations in OKLCH that keep this color's lightness and chroma.
Complementary
The opposite hue (180°).
- #798B15
#798B15
oklch(60.2% 0.134 118.7)
- #8C6CC5
#8C6CC5
oklch(60.1% 0.135 298.9)
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 #798B15, closest first.
Similar named colors
The eight closest entries in our named color list, with their ΔE distance.
- Dark Yellow Green #728F02 ΔE 0.017
- Olive Drab #6B8E23 ΔE 0.018
- Swamp Green #748500 ΔE 0.019
- Mossy Green #638B27 ΔE 0.028
- Olive #808000 ΔE 0.030
- Moss Green #658B38 ΔE 0.031
- Khaki Green #728639 ΔE 0.033
- Sap Green #5C8B15 ΔE 0.038
Use #798B15 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.