#5B7E22#5B7E22
#5B7E22 is a mid, vivid yellow-green. Relative luminance 0.173; OKLCH L 54.8% C 0.125 H 128.2°. Best body text is #FFFFFF at 4.72:1 contrast (WCAG AA passes).
Color values
| HEX | #5B7E22 |
|---|---|
| RGB | rgb(91, 126, 34) |
| HSL | hsl(83, 58%, 31%) |
| HSV | hsv(83, 73%, 49%) |
| CMYK | cmyk(27.8%, 0%, 73%, 50.6%) |
| CIE-LAB | lab(48.59, -27.12, 43.73) |
| CIE-LCH | lch(48.59, 51.46, 121.80°) |
| OKLab | oklab(54.76% -0.0774 0.0984) |
| OKLCH | oklch(54.76% 0.125 128.2) |
| XYZ | xyz(12.0640, 17.2611, 4.2092) |
| Luminance | 0.1726 (WCAG relative) |
| Temperature | warm |
| Family | yellow-green |
Closest named colors
Dirty Green
#667E2C
ΔE00 2.55
Avocado
#568203
ΔE00 3.10
Swamp
#698339
ΔE00 3.98
Mossy Green
#638B27
ΔE00 4.79
Sap Green
#5C8B15
ΔE00 5.10
Military Green
#667C3E
ΔE00 5.10
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5B7E22 #45227E
analogous
#7E7322 #5B7E22 #2D7E22
triadic
#5B7E22 #225B7E #7E225B
tetradic
#5B7E22 #227E73 #45227E #7E222D
square
#5B7E22 #227E73 #45227E #7E222D
split-complementary
#5B7E22 #222D7E #73227E
monochromatic
#151E08 #384E15 #5B7E22 #7EAE2F #9DCF4C
Accessibility & contrast
On white
4.72
#5B7E22 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.45
#5B7E22 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #5B7E22
4.72:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5B7E22 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##5B7E22 | 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)
#847513
Deuteranopia (green-blind)
#80732A
Tritanopia (blue-blind)
#5E786C
Achromatopsia (no color)
#737373
Design tokens & code
CSS
--color: #5b7e22; /* rgb */ color: rgb(91, 126, 34); /* oklch */ color: oklch(54.8% 0.125 128.2);
Tailwind
colors: {
custom: {
50: '#8da363',
500: '#5b7e22',
950: '#000000',
},
}SCSS
$custom: #5b7e22; $custom-light: #8da363; $custom-dark: #000000;
JSON
{
"hex": "#5b7e22",
"rgb": {
"r": 91,
"g": 126,
"b": 34
},
"hsl": {
"h": 82.826,
"s": 57.5,
"l": 31.373
},
"oklch": {
"l": 0.54759,
"c": 0.12521,
"h": 128.2
},
"luminance": 0.17261
}Semantic roles & 50–950 ramp
primary
#5B7E22
secondary
#724BB1
accent
#47E182
background
#F8FAF6
surface
#F0F4EB
border
#CBCEC6
text
#0C0F06
muted
#7D7F7A