#5B951F#5B951F
#5B951F is a mid, vivid yellow-green. Relative luminance 0.238; OKLCH L 60.7% C 0.157 H 132.9°. Best body text is #000000 at 5.76:1 contrast (WCAG AA passes).
Color values
| HEX | #5B951F |
|---|---|
| RGB | rgb(91, 149, 31) |
| HSL | hsl(89, 66%, 35%) |
| HSV | hsv(89, 79%, 58%) |
| CMYK | cmyk(38.9%, 0%, 79.2%, 41.6%) |
| CIE-LAB | lab(55.90, -37.89, 51.94) |
| CIE-LCH | lch(55.90, 64.29, 126.11°) |
| OKLab | oklab(60.72% -0.1069 0.1151) |
| OKLCH | oklch(60.72% 0.157 132.9) |
| XYZ | xyz(15.3089, 23.8173, 5.0866) |
| Luminance | 0.2382 (WCAG relative) |
| Temperature | warm |
| Family | yellow-green |
Closest named colors
Sap Green
#5C8B15
ΔE00 3.55
Grass Green
#3F9B0B
ΔE00 3.93
Mossy Green
#638B27
ΔE00 3.95
Grassy Green
#419C03
ΔE00 3.95
Olivedrab
#6B8E23
ΔE00 4.05
Moss Green (survey)
#658B38
ΔE00 5.16
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5B951F #591F95
analogous
#95941F #5B951F #20951F
triadic
#5B951F #1F5B95 #951F5B
tetradic
#5B951F #1F9594 #591F95 #951F20
square
#5B951F #1F9594 #591F95 #951F20
split-complementary
#5B951F #1F2095 #941F95
monochromatic
#1D300A #3C6214 #5B951F #7AC82A #98DB53
Accessibility & contrast
On white
3.64
#5B951F on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.76
#5B951F on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #5B951F
5.76:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5B951F | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##5B951F | 1.00 | 3.64 | 5.76 | 5.76 |
| #FFFFFF | 3.64 | 1.00 | 21.00 | 21.00 |
| #000000 | 5.76 | 21.00 | 1.00 | 1.00 |
| ##000000 | 5.76 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#9B8900
Deuteranopia (green-blind)
#94842C
Tritanopia (blue-blind)
#5C8F7F
Achromatopsia (no color)
#868686
Design tokens & code
CSS
--color: #5b951f; /* rgb */ color: rgb(91, 149, 31); /* oklch */ color: oklch(60.7% 0.157 132.9);
Tailwind
colors: {
custom: {
50: '#8fb465',
500: '#5b951f',
950: '#000000',
},
}SCSS
$custom: #5b951f; $custom-light: #8fb465; $custom-dark: #000000;
JSON
{
"hex": "#5b951f",
"rgb": {
"r": 91,
"g": 149,
"b": 31
},
"hsl": {
"h": 89.492,
"s": 65.556,
"l": 35.294
},
"oklch": {
"l": 0.60718,
"c": 0.1571,
"h": 132.9
},
"luminance": 0.23818
}Semantic roles & 50–950 ramp
primary
#5B951F
secondary
#8751BF
accent
#3FE992
background
#F9FBF6
surface
#F1F6EB
border
#CBD0C6
text
#0D1106
muted
#7E807A