#1F873E#1F873E
#1F873E is a mid, vivid green. Relative luminance 0.180; OKLCH L 54.9% C 0.143 H 148.6°. Best body text is #000000 at 4.59:1 contrast (WCAG AA passes).
Color values
| HEX | #1F873E |
|---|---|
| RGB | rgb(31, 135, 62) |
| HSL | hsl(138, 63%, 33%) |
| HSV | hsv(138, 77%, 53%) |
| CMYK | cmyk(77%, 0%, 54.1%, 47.1%) |
| CIE-LAB | lab(49.45, -45.32, 30.90) |
| CIE-LCH | lch(49.45, 54.85, 145.72°) |
| OKLab | oklab(54.91% -0.1219 0.0744) |
| OKLCH | oklch(54.91% 0.143 148.6) |
| XYZ | xyz(10.0977, 17.9659, 7.4921) |
| Luminance | 0.1797 (WCAG relative) |
| Temperature | neutral |
| Family | green |
Closest named colors
Jungle Green
#048243
ΔE00 2.98
Darkish Green
#287C37
ΔE00 3.93
Kelley Green
#009337
ΔE00 4.74
Sea Green
#2E8B57
ΔE00 4.97
Forestgreen (CSS)
#228B22
ΔE00 5.06
Emerald Green
#028F1E
ΔE00 5.87
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1F873E #871F68
analogous
#34871F #1F873E #1F8772
triadic
#1F873E #3E1F87 #873E1F
tetradic
#1F873E #1F3487 #871F68 #87721F
square
#1F873E #1F3487 #871F68 #87721F
split-complementary
#1F873E #721F87 #871F34
monochromatic
#082310 #145527 #1F873E #2AB955 #4BD674
Accessibility & contrast
On white
4.57
#1F873E on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.59
#1F873E on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #1F873E
4.59:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1F873E | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##1F873E | 1.00 | 4.57 | 4.59 | 4.59 |
| #FFFFFF | 4.57 | 1.00 | 21.00 | 21.00 |
| #000000 | 4.59 | 21.00 | 1.00 | 1.00 |
| ##000000 | 4.59 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#887B38
Deuteranopia (green-blind)
#7C7243
Tritanopia (blue-blind)
#008476
Achromatopsia (no color)
#767676
Design tokens & code
CSS
--color: #1f873e; /* rgb */ color: rgb(31, 135, 62); /* oklch */ color: oklch(54.9% 0.143 148.6);
Tailwind
colors: {
custom: {
50: '#6cab75',
500: '#1f873e',
950: '#000000',
},
}SCSS
$custom: #1f873e; $custom-light: #6cab75; $custom-dark: #000000;
JSON
{
"hex": "#1f873e",
"rgb": {
"r": 31,
"g": 135,
"b": 62
},
"hsl": {
"h": 137.885,
"s": 62.651,
"l": 32.549
},
"oklch": {
"l": 0.54909,
"c": 0.1428,
"h": 148.6
},
"luminance": 0.17967
}Semantic roles & 50–950 ramp
primary
#1F873E
secondary
#B84A97
accent
#42B5E6
background
#F7FAF7
surface
#EDF4ED
border
#C8CEC8
text
#081008
muted
#7B7F7B