#5B7D1B#5B7D1B
#5B7D1B is a mid, vivid yellow-green. Relative luminance 0.170; OKLCH L 54.4% C 0.128 H 127.4°. Best body text is #FFFFFF at 4.78:1 contrast (WCAG AA passes).
Color values
| HEX | #5B7D1B |
|---|---|
| RGB | rgb(91, 125, 27) |
| HSL | hsl(81, 64%, 30%) |
| HSV | hsv(81, 78%, 49%) |
| CMYK | cmyk(27.2%, 0%, 78.4%, 51%) |
| CIE-LAB | lab(48.22, -27.07, 46.02) |
| CIE-LCH | lch(48.22, 53.39, 120.46°) |
| OKLab | oklab(54.45% -0.0779 0.102) |
| OKLCH | oklch(54.45% 0.128 127.4) |
| XYZ | xyz(11.8459, 16.9703, 3.6882) |
| Luminance | 0.1697 (WCAG relative) |
| Temperature | warm |
| Family | yellow-green |
Closest named colors
Avocado
#568203
ΔE00 2.73
Dirty Green
#667E2C
ΔE00 2.80
Olive Green
#677A04
ΔE00 4.43
Swamp
#698339
ΔE00 4.64
Mossy Green
#638B27
ΔE00 5.14
Sap Green
#5C8B15
ΔE00 5.22
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5B7D1B #3D1B7D
analogous
#7D6E1B #5B7D1B #2A7D1B
triadic
#5B7D1B #1B5B7D #7D1B5B
tetradic
#5B7D1B #1B7D6E #3D1B7D #7D1B2A
square
#5B7D1B #1B7D6E #3D1B7D #7D1B2A
split-complementary
#5B7D1B #1B2A7D #6E1B7D
monochromatic
#121905 #364B10 #5B7D1B #80AF26 #A0D53D
Accessibility & contrast
On white
4.78
#5B7D1B on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.39
#5B7D1B on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #5B7D1B
4.78:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5B7D1B | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##5B7D1B | 1.00 | 4.78 | 4.39 | 4.78 |
| #FFFFFF | 4.78 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.39 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 4.78 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#847404
Deuteranopia (green-blind)
#7F7225
Tritanopia (blue-blind)
#5F776B
Achromatopsia (no color)
#727272
Design tokens & code
CSS
--color: #5b7d1b; /* rgb */ color: rgb(91, 125, 27); /* oklch */ color: oklch(54.4% 0.128 127.4);
Tailwind
colors: {
custom: {
50: '#8da260',
500: '#5b7d1b',
950: '#000000',
},
}SCSS
$custom: #5b7d1b; $custom-light: #8da260; $custom-dark: #000000;
JSON
{
"hex": "#5b7d1b",
"rgb": {
"r": 91,
"g": 125,
"b": 27
},
"hsl": {
"h": 80.816,
"s": 64.474,
"l": 29.804
},
"oklch": {
"l": 0.54449,
"c": 0.12836,
"h": 127.4
},
"luminance": 0.16971
}Semantic roles & 50–950 ramp
primary
#5B7D1B
secondary
#6943B1
accent
#40E77A
background
#F8FAF5
surface
#F0F3EA
border
#CBCDC6
text
#0C0F05
muted
#7D7F79