#1F8D18#1F8D18
#1F8D18 is a mid, vivid green. Relative luminance 0.194; OKLCH L 56.2% C 0.177 H 142.2°. Best body text is #000000 at 4.88:1 contrast (WCAG AA passes).
Color values
| HEX | #1F8D18 |
|---|---|
| RGB | rgb(31, 141, 24) |
| HSL | hsl(116, 71%, 32%) |
| HSV | hsv(116, 83%, 55%) |
| CMYK | cmyk(78%, 0%, 83%, 44.7%) |
| CIE-LAB | lab(51.16, -51.45, 48.92) |
| CIE-LCH | lch(51.16, 71.00, 136.44°) |
| OKLab | oklab(56.22% -0.14 0.1086) |
| OKLCH | oklch(56.22% 0.177 142.2) |
| XYZ | xyz(10.2542, 19.4058, 4.0693) |
| Luminance | 0.1941 (WCAG relative) |
| Temperature | neutral |
| Family | green |
Closest named colors
Forestgreen (CSS)
#228B22
ΔE00 1.31
Emerald Green
#028F1E
ΔE00 1.41
True Green
#089404
ΔE00 2.73
Irish Green
#019529
ΔE00 3.28
Kelley Green
#009337
ΔE00 4.42
Green
#008000
ΔE00 4.91
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1F8D18 #86188D
analogous
#5A8D18 #1F8D18 #188D4B
triadic
#1F8D18 #181F8D #8D181F
tetradic
#1F8D18 #185A8D #86188D #8D4B18
square
#1F8D18 #185A8D #86188D #8D4B18
split-complementary
#1F8D18 #4B188D #8D185A
monochromatic
#082406 #14590F #1F8D18 #2AC121 #4ADF41
Accessibility & contrast
On white
4.30
#1F8D18 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
4.88
#1F8D18 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #1F8D18
4.88:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1F8D18 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##1F8D18 | 1.00 | 4.30 | 4.88 | 4.88 |
| #FFFFFF | 4.30 | 1.00 | 21.00 | 21.00 |
| #000000 | 4.88 | 21.00 | 1.00 | 1.00 |
| ##000000 | 4.88 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#907F00
Deuteranopia (green-blind)
#847727
Tritanopia (blue-blind)
#008978
Achromatopsia (no color)
#7A7A7A
Design tokens & code
CSS
--color: #1f8d18; /* rgb */ color: rgb(31, 141, 24); /* oklch */ color: oklch(56.2% 0.177 142.2);
Tailwind
colors: {
custom: {
50: '#6faf60',
500: '#1f8d18',
950: '#000000',
},
}SCSS
$custom: #1f8d18; $custom-light: #6faf60; $custom-dark: #000000;
JSON
{
"hex": "#1f8d18",
"rgb": {
"r": 31,
"g": 141,
"b": 24
},
"hsl": {
"h": 116.41,
"s": 70.909,
"l": 32.353
},
"oklch": {
"l": 0.56216,
"c": 0.17715,
"h": 142.2
},
"luminance": 0.19407
}Semantic roles & 50–950 ramp
primary
#1F8D18
secondary
#B842BF
accent
#3AEEE3
background
#F7FAF6
surface
#EDF5EB
border
#C8CFC6
text
#091005
muted
#7B7F7A