#5B7D1D#5B7D1D
#5B7D1D is a mid, vivid yellow-green. Relative luminance 0.170; OKLCH L 54.5% C 0.127 H 127.5°. Best body text is #FFFFFF at 4.78:1 contrast (WCAG AA passes).
Color values
| HEX | #5B7D1D |
|---|---|
| RGB | rgb(91, 125, 29) |
| HSL | hsl(81, 62%, 30%) |
| HSV | hsv(81, 77%, 49%) |
| CMYK | cmyk(27.2%, 0%, 76.8%, 51%) |
| CIE-LAB | lab(48.23, -26.95, 45.31) |
| CIE-LCH | lch(48.23, 52.72, 120.75°) |
| OKLab | oklab(54.46% -0.0774 0.1009) |
| OKLCH | oklch(54.46% 0.127 127.5) |
| XYZ | xyz(11.8698, 16.9798, 3.8142) |
| Luminance | 0.1698 (WCAG relative) |
| Temperature | warm |
| Family | yellow-green |
Closest named colors
Dirty Green
#667E2C
ΔE00 2.69
Avocado
#568203
ΔE00 2.88
Swamp
#698339
ΔE00 4.48
Olive Green
#677A04
ΔE00 4.59
Mossy Green
#638B27
ΔE00 5.13
Sap Green
#5C8B15
ΔE00 5.27
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5B7D1D #3F1D7D
analogous
#7D6F1D #5B7D1D #2B7D1D
triadic
#5B7D1D #1D5B7D #7D1D5B
tetradic
#5B7D1D #1D7D6F #3F1D7D #7D1D2B
square
#5B7D1D #1D7D6F #3F1D7D #7D1D2B
split-complementary
#5B7D1D #1D2B7D #6F1D7D
monochromatic
#131A06 #374B11 #5B7D1D #7FAF29 #9FD341
Accessibility & contrast
On white
4.78
#5B7D1D on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.40
#5B7D1D on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #5B7D1D
4.78:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5B7D1D | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##5B7D1D | 1.00 | 4.78 | 4.40 | 4.78 |
| #FFFFFF | 4.78 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.40 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 4.78 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#847409
Deuteranopia (green-blind)
#7F7226
Tritanopia (blue-blind)
#5F776B
Achromatopsia (no color)
#727272
Design tokens & code
CSS
--color: #5b7d1d; /* rgb */ color: rgb(91, 125, 29); /* oklch */ color: oklch(54.5% 0.127 127.5);
Tailwind
colors: {
custom: {
50: '#8da261',
500: '#5b7d1d',
950: '#000000',
},
}SCSS
$custom: #5b7d1d; $custom-light: #8da261; $custom-dark: #000000;
JSON
{
"hex": "#5b7d1d",
"rgb": {
"r": 91,
"g": 125,
"b": 29
},
"hsl": {
"h": 81.25,
"s": 62.338,
"l": 30.196
},
"oklch": {
"l": 0.54462,
"c": 0.12716,
"h": 127.5
},
"luminance": 0.1698
}Semantic roles & 50–950 ramp
primary
#5B7D1D
secondary
#6B45B1
accent
#42E57C
background
#F8FAF5
surface
#F0F3EA
border
#CBCDC6
text
#0C0F05
muted
#7D7F79