#31AF56#31AF56
#31AF56 is a light, vivid green. Relative luminance 0.320; OKLCH L 66.6% C 0.168 H 148.9°. Best body text is #000000 at 7.40:1 contrast (WCAG AA passes).
Color values
| HEX | #31AF56 |
|---|---|
| RGB | rgb(49, 175, 86) |
| HSL | hsl(138, 56%, 44%) |
| HSV | hsv(138, 72%, 69%) |
| CMYK | cmyk(72%, 0%, 50.9%, 31.4%) |
| CIE-LAB | lab(63.33, -53.35, 35.80) |
| CIE-LCH | lch(63.33, 64.25, 146.14°) |
| OKLab | oklab(66.59% -0.1436 0.0867) |
| OKLCH | oklch(66.59% 0.168 148.9) |
| XYZ | xyz(18.2749, 31.9827, 14.0125) |
| Luminance | 0.3199 (WCAG relative) |
| Temperature | neutral |
| Family | green |
Closest named colors
Medium Green
#39AD48
ΔE00 2.37
Shamrock
#01B44C
ΔE00 2.49
Cool Green
#33B864
ΔE00 2.90
Dark Pastel Green
#56AE57
ΔE00 3.20
Jade Green
#2BAF6A
ΔE00 3.87
Algae
#54AC68
ΔE00 4.14
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#31AF56 #AF318A
analogous
#4BAF31 #31AF56 #31AF95
triadic
#31AF56 #5631AF #AF5631
tetradic
#31AF56 #314BAF #AF318A #AF9531
square
#31AF56 #314BAF #AF318A #AF9531
split-complementary
#31AF56 #9531AF #AF314B
monochromatic
#164F27 #247F3F #31AF56 #4FCE75 #7FDB9A
Accessibility & contrast
On white
2.84
#31AF56 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
7.40
#31AF56 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #31AF56
7.40:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##31AF56 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##31AF56 | 1.00 | 2.84 | 7.40 | 7.40 |
| #FFFFFF | 2.84 | 1.00 | 21.00 | 21.00 |
| #000000 | 7.40 | 21.00 | 1.00 | 1.00 |
| ##000000 | 7.40 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#B0A04E
Deuteranopia (green-blind)
#A2955C
Tritanopia (blue-blind)
#00AC9A
Achromatopsia (no color)
#999999
Design tokens & code
CSS
--color: #31af56; /* rgb */ color: rgb(49, 175, 86); /* oklch */ color: oklch(66.6% 0.168 148.9);
Tailwind
colors: {
custom: {
50: '#7bc887',
500: '#31af56',
950: '#000000',
},
}SCSS
$custom: #31af56; $custom-light: #7bc887; $custom-dark: #000000;
JSON
{
"hex": "#31af56",
"rgb": {
"r": 49,
"g": 175,
"b": 86
},
"hsl": {
"h": 137.619,
"s": 56.25,
"l": 43.922
},
"oklch": {
"l": 0.66594,
"c": 0.16773,
"h": 148.9
},
"luminance": 0.31985
}Semantic roles & 50–950 ramp
primary
#31AF56
secondary
#C478AE
accent
#48B3E0
background
#F8FCF8
surface
#EFF8F0
border
#CAD1CB
text
#0B130B
muted
#7C827C