#5F7917#5F7917
#5F7917 is a mid, vivid yellow-green. Relative luminance 0.162; OKLCH L 53.7% C 0.123 H 124.0°. Best body text is #FFFFFF at 4.96:1 contrast (WCAG AA passes).
Color values
| HEX | #5F7917 |
|---|---|
| RGB | rgb(95, 121, 23) |
| HSL | hsl(76, 68%, 28%) |
| HSV | hsv(76, 81%, 47%) |
| CMYK | cmyk(21.5%, 0%, 81%, 52.5%) |
| CIE-LAB | lab(47.20, -23.59, 46.51) |
| CIE-LCH | lch(47.20, 52.15, 116.89°) |
| OKLab | oklab(53.68% -0.069 0.1023) |
| OKLCH | oklch(53.68% 0.123 124) |
| XYZ | xyz(11.7115, 16.1694, 3.3145) |
| Luminance | 0.1617 (WCAG relative) |
| Temperature | warm |
| Family | yellow-green |
Closest named colors
Olive Green
#677A04
ΔE00 2.89
Dirty Green
#667E2C
ΔE00 2.99
Murky Green
#6C7A0E
ΔE00 3.72
Avocado
#568203
ΔE00 4.26
Muddy Green
#657432
ΔE00 4.86
Poop Green
#6F7C00
ΔE00 4.90
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5F7917 #311779
analogous
#796217 #5F7917 #2E7917
triadic
#5F7917 #175F79 #79175F
tetradic
#5F7917 #177962 #311779 #79172E
square
#5F7917 #177962 #311779 #79172E
split-complementary
#5F7917 #172E79 #621779
monochromatic
#141A05 #37460D #5F7917 #87AC21 #ACD832
Accessibility & contrast
On white
4.96
#5F7917 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.23
#5F7917 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #5F7917
4.96:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5F7917 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##5F7917 | 1.00 | 4.96 | 4.23 | 4.96 |
| #FFFFFF | 4.96 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.23 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 4.96 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#807100
Deuteranopia (green-blind)
#7D7021
Tritanopia (blue-blind)
#647367
Achromatopsia (no color)
#707070
Design tokens & code
CSS
--color: #5f7917; /* rgb */ color: rgb(95, 121, 23); /* oklch */ color: oklch(53.7% 0.123 124.0);
Tailwind
colors: {
custom: {
50: '#909f5d',
500: '#5f7917',
950: '#000000',
},
}SCSS
$custom: #5f7917; $custom-light: #909f5d; $custom-dark: #000000;
JSON
{
"hex": "#5f7917",
"rgb": {
"r": 95,
"g": 121,
"b": 23
},
"hsl": {
"h": 75.918,
"s": 68.056,
"l": 28.235
},
"oklch": {
"l": 0.53679,
"c": 0.12335,
"h": 124
},
"luminance": 0.1617
}Semantic roles & 50–950 ramp
primary
#5F7917
secondary
#5C3EAE
accent
#3DEB6B
background
#F9F9F5
surface
#F1F2E9
border
#CBCCC5
text
#0D0E05
muted
#7E7E79