#1F7E18#1F7E18
#1F7E18 is a mid, vivid green. Relative luminance 0.153; OKLCH L 51.9% C 0.160 H 142.1°. Best body text is #FFFFFF at 5.18:1 contrast (WCAG AA passes).
Color values
| HEX | #1F7E18 |
|---|---|
| RGB | rgb(31, 126, 24) |
| HSL | hsl(116, 68%, 29%) |
| HSV | hsv(116, 81%, 49%) |
| CMYK | cmyk(75.4%, 0%, 81%, 50.6%) |
| CIE-LAB | lab(46.01, -46.45, 44.05) |
| CIE-LCH | lch(46.01, 64.02, 136.52°) |
| OKLab | oklab(51.94% -0.1264 0.0984) |
| OKLCH | oklch(51.94% 0.16 142.1) |
| XYZ | xyz(8.1903, 15.2780, 3.3813) |
| Luminance | 0.1528 (WCAG relative) |
| Temperature | neutral |
| Family | green |
Closest named colors
Tree Green
#2A7E19
ΔE00 0.89
Green
#008000
ΔE00 1.96
Dark Grass Green
#388004
ΔE00 3.59
Forestgreen (CSS)
#228B22
ΔE00 4.64
Darkish Green
#287C37
ΔE00 4.88
Emerald Green
#028F1E
ΔE00 6.00
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1F7E18 #77187E
analogous
#527E18 #1F7E18 #187E44
triadic
#1F7E18 #181F7E #7E181F
tetradic
#1F7E18 #18527E #77187E #7E4418
square
#1F7E18 #18527E #77187E #7E4418
split-complementary
#1F7E18 #44187E #7E1852
monochromatic
#061A05 #124B0E #1F7E18 #2CB122 #43D937
Accessibility & contrast
On white
5.18
#1F7E18 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.06
#1F7E18 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #1F7E18
5.18:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1F7E18 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1F7E18 | 1.00 | 5.18 | 4.06 | 5.18 |
| #FFFFFF | 5.18 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.06 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.18 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#817100
Deuteranopia (green-blind)
#766A24
Tritanopia (blue-blind)
#007A6B
Achromatopsia (no color)
#6D6D6D
Design tokens & code
CSS
--color: #1f7e18; /* rgb */ color: rgb(31, 126, 24); /* oklch */ color: oklch(51.9% 0.160 142.1);
Tailwind
colors: {
custom: {
50: '#6ca45e',
500: '#1f7e18',
950: '#000000',
},
}SCSS
$custom: #1f7e18; $custom-light: #6ca45e; $custom-dark: #000000;
JSON
{
"hex": "#1f7e18",
"rgb": {
"r": 31,
"g": 126,
"b": 24
},
"hsl": {
"h": 115.882,
"s": 68,
"l": 29.412
},
"oklch": {
"l": 0.51938,
"c": 0.16023,
"h": 142.1
},
"luminance": 0.15279
}Semantic roles & 50–950 ramp
primary
#1F7E18
secondary
#AB3FB2
accent
#3DEBDF
background
#F7FAF5
surface
#EDF4E9
border
#C8CEC5
text
#080F05
muted
#7B7F79