#31B158#31B158
#31B158 is a light, vivid green. Relative luminance 0.328; OKLCH L 67.2% C 0.169 H 149.2°. Best body text is #000000 at 7.56:1 contrast (WCAG AA passes).
Color values
| HEX | #31B158 |
|---|---|
| RGB | rgb(49, 177, 88) |
| HSL | hsl(138, 57%, 44%) |
| HSV | hsv(138, 72%, 69%) |
| CMYK | cmyk(72.3%, 0%, 50.3%, 30.6%) |
| CIE-LAB | lab(64.00, -53.76, 35.62) |
| CIE-LCH | lch(64.00, 64.49, 146.47°) |
| OKLab | oklab(67.16% -0.1447 0.0864) |
| OKLCH | oklch(67.16% 0.169 149.2) |
| XYZ | xyz(18.7487, 32.7997, 14.5735) |
| Luminance | 0.3280 (WCAG relative) |
| Temperature | neutral |
| Family | green |
Closest named colors
Shamrock
#01B44C
ΔE00 2.33
Cool Green
#33B864
ΔE00 2.35
Medium Green
#39AD48
ΔE00 2.67
Dark Pastel Green
#56AE57
ΔE00 3.30
Jade Green
#2BAF6A
ΔE00 3.79
Algae
#54AC68
ΔE00 4.19
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#31B158 #B1318A
analogous
#4AB131 #31B158 #31B198
triadic
#31B158 #5831B1 #B15831
tetradic
#31B158 #314AB1 #B1318A #B19831
square
#31B158 #314AB1 #B1318A #B19831
split-complementary
#31B158 #9831B1 #B1314A
monochromatic
#165128 #248140 #31B158 #51CF77 #80DC9C
Accessibility & contrast
On white
2.78
#31B158 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
7.56
#31B158 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #31B158
7.56:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##31B158 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##31B158 | 1.00 | 2.78 | 7.56 | 7.56 |
| #FFFFFF | 2.78 | 1.00 | 21.00 | 21.00 |
| #000000 | 7.56 | 21.00 | 1.00 | 1.00 |
| ##000000 | 7.56 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#B2A251
Deuteranopia (green-blind)
#A3975E
Tritanopia (blue-blind)
#00AE9C
Achromatopsia (no color)
#9B9B9B
Design tokens & code
CSS
--color: #31b158; /* rgb */ color: rgb(49, 177, 88); /* oklch */ color: oklch(67.2% 0.169 149.2);
Tailwind
colors: {
custom: {
50: '#7bc989',
500: '#31b158',
950: '#000000',
},
}SCSS
$custom: #31b158; $custom-light: #7bc989; $custom-dark: #000000;
JSON
{
"hex": "#31b158",
"rgb": {
"r": 49,
"g": 177,
"b": 88
},
"hsl": {
"h": 138.281,
"s": 56.637,
"l": 44.314
},
"oklch": {
"l": 0.67156,
"c": 0.16851,
"h": 149.2
},
"luminance": 0.32802
}Semantic roles & 50–950 ramp
primary
#31B158
secondary
#C579AE
accent
#48B2E0
background
#F8FCF8
surface
#EFF8F0
border
#CAD1CB
text
#0B130B
muted
#7C827C