#5B7918#5B7918
#5B7918 is a mid, vivid yellow-green. Relative luminance 0.160; OKLCH L 53.4% C 0.125 H 125.9°. Best body text is #FFFFFF at 5.01:1 contrast (WCAG AA passes).
Color values
| HEX | #5B7918 |
|---|---|
| RGB | rgb(91, 121, 24) |
| HSL | hsl(79, 67%, 28%) |
| HSV | hsv(79, 80%, 47%) |
| CMYK | cmyk(24.8%, 0%, 80.2%, 52.5%) |
| CIE-LAB | lab(46.93, -25.26, 45.83) |
| CIE-LCH | lch(46.93, 52.33, 118.86°) |
| OKLab | oklab(53.39% -0.0732 0.1011) |
| OKLCH | oklch(53.39% 0.125 125.9) |
| XYZ | xyz(11.3167, 15.9647, 3.3492) |
| Luminance | 0.1596 (WCAG relative) |
| Temperature | warm |
| Family | yellow-green |
Closest named colors
Dirty Green
#667E2C
ΔE00 3.17
Olive Green
#677A04
ΔE00 3.85
Avocado
#568203
ΔE00 3.91
Murky Green
#6C7A0E
ΔE00 4.73
Muddy Green
#657432
ΔE00 5.05
Swamp
#698339
ΔE00 5.47
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5B7918 #361879
analogous
#796618 #5B7918 #2A7918
triadic
#5B7918 #185B79 #79185B
tetradic
#5B7918 #187966 #361879 #79182A
square
#5B7918 #187966 #361879 #79182A
split-complementary
#5B7918 #182A79 #661879
monochromatic
#131A05 #35460E #5B7918 #81AC22 #A5D735
Accessibility & contrast
On white
5.01
#5B7918 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.19
#5B7918 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #5B7918
5.01:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5B7918 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##5B7918 | 1.00 | 5.01 | 4.19 | 5.01 |
| #FFFFFF | 5.01 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.19 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.01 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#807000
Deuteranopia (green-blind)
#7C6F22
Tritanopia (blue-blind)
#5F7367
Achromatopsia (no color)
#6F6F6F
Design tokens & code
CSS
--color: #5b7918; /* rgb */ color: rgb(91, 121, 24); /* oklch */ color: oklch(53.4% 0.125 125.9);
Tailwind
colors: {
custom: {
50: '#8d9f5e',
500: '#5b7918',
950: '#000000',
},
}SCSS
$custom: #5b7918; $custom-light: #8d9f5e; $custom-dark: #000000;
JSON
{
"hex": "#5b7918",
"rgb": {
"r": 91,
"g": 121,
"b": 24
},
"hsl": {
"h": 78.557,
"s": 66.897,
"l": 28.431
},
"oklch": {
"l": 0.53393,
"c": 0.12485,
"h": 125.9
},
"luminance": 0.15965
}Semantic roles & 50–950 ramp
primary
#5B7918
secondary
#613FAE
accent
#3EEA73
background
#F8F9F5
surface
#F0F2E9
border
#CBCCC5
text
#0C0E05
muted
#7D7E79