#5B7E20#5B7E20
#5B7E20 is a mid, vivid yellow-green. Relative luminance 0.172; OKLCH L 54.7% C 0.127 H 128.0°. Best body text is #FFFFFF at 4.72:1 contrast (WCAG AA passes).
Color values
| HEX | #5B7E20 |
|---|---|
| RGB | rgb(91, 126, 32) |
| HSL | hsl(82, 59%, 31%) |
| HSV | hsv(82, 75%, 49%) |
| CMYK | cmyk(27.8%, 0%, 74.6%, 50.6%) |
| CIE-LAB | lab(48.57, -27.25, 44.51) |
| CIE-LCH | lch(48.57, 52.19, 121.48°) |
| OKLab | oklab(54.74% -0.078 0.0997) |
| OKLCH | oklch(54.74% 0.127 128) |
| XYZ | xyz(12.0360, 17.2499, 4.0617) |
| Luminance | 0.1725 (WCAG relative) |
| Temperature | warm |
| Family | yellow-green |
Closest named colors
Dirty Green
#667E2C
ΔE00 2.62
Avocado
#568203
ΔE00 2.88
Swamp
#698339
ΔE00 4.14
Mossy Green
#638B27
ΔE00 4.77
Olive Green
#677A04
ΔE00 4.99
Sap Green
#5C8B15
ΔE00 5.00
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5B7E20 #43207E
analogous
#7E7220 #5B7E20 #2C7E20
triadic
#5B7E20 #205B7E #7E205B
tetradic
#5B7E20 #207E72 #43207E #7E202C
square
#5B7E20 #207E72 #43207E #7E202C
split-complementary
#5B7E20 #202C7E #72207E
monochromatic
#151C07 #384D14 #5B7E20 #7EAF2C #9ED048
Accessibility & contrast
On white
4.72
#5B7E20 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.45
#5B7E20 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #5B7E20
4.72:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5B7E20 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##5B7E20 | 1.00 | 4.72 | 4.45 | 4.72 |
| #FFFFFF | 4.72 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.45 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 4.72 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#84750F
Deuteranopia (green-blind)
#807329
Tritanopia (blue-blind)
#5E786C
Achromatopsia (no color)
#737373
Design tokens & code
CSS
--color: #5b7e20; /* rgb */ color: rgb(91, 126, 32); /* oklch */ color: oklch(54.7% 0.127 128.0);
Tailwind
colors: {
custom: {
50: '#8da362',
500: '#5b7e20',
950: '#000000',
},
}SCSS
$custom: #5b7e20; $custom-light: #8da362; $custom-dark: #000000;
JSON
{
"hex": "#5b7e20",
"rgb": {
"r": 91,
"g": 126,
"b": 32
},
"hsl": {
"h": 82.34,
"s": 59.494,
"l": 30.98
},
"oklch": {
"l": 0.54744,
"c": 0.12657,
"h": 128
},
"luminance": 0.1725
}Semantic roles & 50–950 ramp
primary
#5B7E20
secondary
#7049B1
accent
#45E380
background
#F8FAF6
surface
#F0F4EB
border
#CBCEC6
text
#0C0F05
muted
#7D7F7A