#31801C#31801C
#31801C is a mid, vivid green. Relative luminance 0.162; OKLCH L 53.1% C 0.154 H 140.0°. Best body text is #FFFFFF at 4.96:1 contrast (WCAG AA passes).
Color values
| HEX | #31801C |
|---|---|
| RGB | rgb(49, 128, 28) |
| HSL | hsl(107, 64%, 31%) |
| HSV | hsv(107, 78%, 50%) |
| CMYK | cmyk(61.7%, 0%, 78.1%, 49.8%) |
| CIE-LAB | lab(47.20, -42.89, 43.98) |
| CIE-LCH | lch(47.20, 61.43, 134.28°) |
| OKLab | oklab(53.07% -0.1177 0.0987) |
| OKLCH | oklch(53.07% 0.154 140) |
| XYZ | xyz(9.1950, 16.1743, 3.7358) |
| Luminance | 0.1618 (WCAG relative) |
| Temperature | neutral |
| Family | green |
Closest named colors
Tree Green
#2A7E19
ΔE00 0.99
Dark Grass Green
#388004
ΔE00 2.47
Green
#008000
ΔE00 2.90
Forestgreen (CSS)
#228B22
ΔE00 4.04
Darkish Green
#287C37
ΔE00 5.30
Emerald Green
#028F1E
ΔE00 5.62
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#31801C #6B1C80
analogous
#63801C #31801C #1C8039
triadic
#31801C #1C3180 #801C31
tetradic
#31801C #1C6380 #6B1C80 #80391C
square
#31801C #1C6380 #6B1C80 #80391C
split-complementary
#31801C #391C80 #801C63
monochromatic
#0B1C06 #1E4E11 #31801C #44B227 #60D541
Accessibility & contrast
On white
4.96
#31801C on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.23
#31801C on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #31801C
4.96:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##31801C | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##31801C | 1.00 | 4.96 | 4.23 | 4.96 |
| #FFFFFF | 4.96 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.23 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 4.96 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#847406
Deuteranopia (green-blind)
#7A6D27
Tritanopia (blue-blind)
#277C6D
Achromatopsia (no color)
#707070
Design tokens & code
CSS
--color: #31801c; /* rgb */ color: rgb(49, 128, 28); /* oklch */ color: oklch(53.1% 0.154 140.0);
Tailwind
colors: {
custom: {
50: '#73a660',
500: '#31801c',
950: '#000000',
},
}SCSS
$custom: #31801c; $custom-light: #73a660; $custom-dark: #000000;
JSON
{
"hex": "#31801c",
"rgb": {
"r": 49,
"g": 128,
"b": 28
},
"hsl": {
"h": 107.4,
"s": 64.103,
"l": 30.588
},
"oklch": {
"l": 0.53068,
"c": 0.15363,
"h": 140
},
"luminance": 0.16175
}Semantic roles & 50–950 ramp
primary
#31801C
secondary
#9C44B3
accent
#41E7C4
background
#F7FAF5
surface
#EDF4EA
border
#C8CEC6
text
#090F05
muted
#7B7F79