#31B157#31B157
#31B157 is a light, vivid green. Relative luminance 0.328; OKLCH L 67.1% C 0.169 H 148.9°. Best body text is #000000 at 7.56:1 contrast (WCAG AA passes).
Color values
| HEX | #31B157 |
|---|---|
| RGB | rgb(49, 177, 87) |
| HSL | hsl(138, 57%, 44%) |
| HSV | hsv(138, 72%, 69%) |
| CMYK | cmyk(72.3%, 0%, 50.8%, 30.6%) |
| CIE-LAB | lab(63.99, -53.92, 36.11) |
| CIE-LCH | lch(63.99, 64.89, 146.19°) |
| OKLab | oklab(67.14% -0.1451 0.0875) |
| OKLCH | oklch(67.14% 0.169 148.9) |
| XYZ | xyz(18.7076, 32.7833, 14.3569) |
| Luminance | 0.3278 (WCAG relative) |
| Temperature | neutral |
| Family | green |
Closest named colors
Shamrock
#01B44C
ΔE00 2.21
Cool Green
#33B864
ΔE00 2.44
Medium Green
#39AD48
ΔE00 2.52
Dark Pastel Green
#56AE57
ΔE00 3.25
Jade Green
#2BAF6A
ΔE00 3.96
Algae
#54AC68
ΔE00 4.30
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#31B157 #B1318B
analogous
#4BB131 #31B157 #31B197
triadic
#31B157 #5731B1 #B15731
tetradic
#31B157 #314BB1 #B1318B #B19731
square
#31B157 #314BB1 #B1318B #B19731
split-complementary
#31B157 #9731B1 #B1314B
monochromatic
#165128 #24813F #31B157 #51CF76 #80DC9C
Accessibility & contrast
On white
2.78
#31B157 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
7.56
#31B157 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #31B157
7.56:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##31B157 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##31B157 | 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)
#B2A14F
Deuteranopia (green-blind)
#A3975E
Tritanopia (blue-blind)
#00AE9C
Achromatopsia (no color)
#9B9B9B
Design tokens & code
CSS
--color: #31b157; /* rgb */ color: rgb(49, 177, 87); /* oklch */ color: oklch(67.1% 0.169 148.9);
Tailwind
colors: {
custom: {
50: '#7bc988',
500: '#31b157',
950: '#000000',
},
}SCSS
$custom: #31b157; $custom-light: #7bc988; $custom-dark: #000000;
JSON
{
"hex": "#31b157",
"rgb": {
"r": 49,
"g": 177,
"b": 87
},
"hsl": {
"h": 137.813,
"s": 56.637,
"l": 44.314
},
"oklch": {
"l": 0.67141,
"c": 0.16941,
"h": 148.9
},
"luminance": 0.32785
}Semantic roles & 50–950 ramp
primary
#31B157
secondary
#C579AE
accent
#48B3E0
background
#F8FCF8
surface
#EFF8F0
border
#CAD1CB
text
#0B130B
muted
#7C827C