#5B821A#5B821A
#5B821A is a mid, vivid yellow-green. Relative luminance 0.183; OKLCH L 55.7% C 0.135 H 128.7°. Best body text is #000000 at 4.65:1 contrast (WCAG AA passes).
Color values
| HEX | #5B821A |
|---|---|
| RGB | rgb(91, 130, 26) |
| HSL | hsl(83, 67%, 31%) |
| HSV | hsv(83, 80%, 51%) |
| CMYK | cmyk(30%, 0%, 80%, 49%) |
| CIE-LAB | lab(49.81, -29.53, 47.86) |
| CIE-LCH | lch(49.81, 56.23, 121.67°) |
| OKLab | oklab(55.74% -0.0846 0.1057) |
| OKLCH | oklch(55.74% 0.135 128.7) |
| XYZ | xyz(12.4835, 18.2637, 3.8446) |
| Luminance | 0.1826 (WCAG relative) |
| Temperature | warm |
| Family | yellow-green |
Closest named colors
Avocado
#568203
ΔE00 1.63
Sap Green
#5C8B15
ΔE00 3.33
Mossy Green
#638B27
ΔE00 3.44
Dirty Green
#667E2C
ΔE00 3.56
Swamp
#698339
ΔE00 4.54
Moss Green (survey)
#658B38
ΔE00 4.67
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5B821A #411A82
analogous
#82751A #5B821A #27821A
triadic
#5B821A #1A5B82 #821A5B
tetradic
#5B821A #1A8275 #411A82 #821A27
square
#5B821A #1A8275 #411A82 #821A27
split-complementary
#5B821A #1A2782 #751A82
monochromatic
#141C06 #374F10 #5B821A #7FB524 #9ED83E
Accessibility & contrast
On white
4.51
#5B821A on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.65
#5B821A on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #5B821A
4.65:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5B821A | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##5B821A | 1.00 | 4.51 | 4.65 | 4.65 |
| #FFFFFF | 4.51 | 1.00 | 21.00 | 21.00 |
| #000000 | 4.65 | 21.00 | 1.00 | 1.00 |
| ##000000 | 4.65 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#897800
Deuteranopia (green-blind)
#837625
Tritanopia (blue-blind)
#5E7C6F
Achromatopsia (no color)
#767676
Design tokens & code
CSS
--color: #5b821a; /* rgb */ color: rgb(91, 130, 26); /* oklch */ color: oklch(55.7% 0.135 128.7);
Tailwind
colors: {
custom: {
50: '#8da660',
500: '#5b821a',
950: '#000000',
},
}SCSS
$custom: #5b821a; $custom-light: #8da660; $custom-dark: #000000;
JSON
{
"hex": "#5b821a",
"rgb": {
"r": 91,
"g": 130,
"b": 26
},
"hsl": {
"h": 82.5,
"s": 66.667,
"l": 30.588
},
"oklch": {
"l": 0.55741,
"c": 0.13544,
"h": 128.7
},
"luminance": 0.18264
}Semantic roles & 50–950 ramp
primary
#5B821A
secondary
#6D42B6
accent
#3EEA7E
background
#F8FAF5
surface
#F0F4EA
border
#CBCEC6
text
#0D0F05
muted
#7D7F79