#1F873F#1F873F
#1F873F is a mid, vivid green. Relative luminance 0.180; OKLCH L 54.9% C 0.142 H 148.9°. Best body text is #000000 at 4.60:1 contrast (WCAG AA passes).
Color values
| HEX | #1F873F |
|---|---|
| RGB | rgb(31, 135, 63) |
| HSL | hsl(138, 63%, 33%) |
| HSV | hsv(138, 77%, 53%) |
| CMYK | cmyk(77%, 0%, 53.3%, 47.1%) |
| CIE-LAB | lab(49.47, -45.17, 30.39) |
| CIE-LCH | lch(49.47, 54.44, 146.06°) |
| OKLab | oklab(54.93% -0.1214 0.0734) |
| OKLCH | oklch(54.93% 0.142 148.9) |
| XYZ | xyz(10.1254, 17.9770, 7.6379) |
| Luminance | 0.1798 (WCAG relative) |
| Temperature | neutral |
| Family | green |
Closest named colors
Jungle Green
#048243
ΔE00 2.85
Darkish Green
#287C37
ΔE00 3.95
Sea Green
#2E8B57
ΔE00 4.80
Kelley Green
#009337
ΔE00 4.83
Forestgreen (CSS)
#228B22
ΔE00 5.24
Emerald Green
#028F1E
ΔE00 6.04
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1F873F #871F67
analogous
#33871F #1F873F #1F8773
triadic
#1F873F #3F1F87 #873F1F
tetradic
#1F873F #1F3387 #871F67 #87731F
square
#1F873F #1F3387 #871F67 #87731F
split-complementary
#1F873F #731F87 #871F33
monochromatic
#082311 #145528 #1F873F #2AB956 #4BD676
Accessibility & contrast
On white
4.57
#1F873F on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.60
#1F873F on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #1F873F
4.60:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1F873F | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##1F873F | 1.00 | 4.57 | 4.60 | 4.60 |
| #FFFFFF | 4.57 | 1.00 | 21.00 | 21.00 |
| #000000 | 4.60 | 21.00 | 1.00 | 1.00 |
| ##000000 | 4.60 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#887B39
Deuteranopia (green-blind)
#7C7244
Tritanopia (blue-blind)
#008476
Achromatopsia (no color)
#767676
Design tokens & code
CSS
--color: #1f873f; /* rgb */ color: rgb(31, 135, 63); /* oklch */ color: oklch(54.9% 0.142 148.9);
Tailwind
colors: {
custom: {
50: '#6cab76',
500: '#1f873f',
950: '#000000',
},
}SCSS
$custom: #1f873f; $custom-light: #6cab76; $custom-dark: #000000;
JSON
{
"hex": "#1f873f",
"rgb": {
"r": 31,
"g": 135,
"b": 63
},
"hsl": {
"h": 138.462,
"s": 62.651,
"l": 32.549
},
"oklch": {
"l": 0.54925,
"c": 0.14187,
"h": 148.9
},
"luminance": 0.17978
}Semantic roles & 50–950 ramp
primary
#1F873F
secondary
#B84A96
accent
#42B3E6
background
#F7FAF7
surface
#EDF4ED
border
#C8CEC8
text
#081008
muted
#7B7F7B