#1F7918#1F7918
#1F7918 is a mid, vivid green. Relative luminance 0.140; OKLCH L 50.5% C 0.154 H 142.1°. Best body text is #FFFFFF at 5.52:1 contrast (WCAG AA passes).
Color values
| HEX | #1F7918 |
|---|---|
| RGB | rgb(31, 121, 24) |
| HSL | hsl(116, 67%, 28%) |
| HSV | hsv(116, 80%, 47%) |
| CMYK | cmyk(74.4%, 0%, 80.2%, 52.5%) |
| CIE-LAB | lab(44.28, -44.72, 42.38) |
| CIE-LCH | lch(44.28, 61.61, 136.54°) |
| OKLab | oklab(50.5% -0.1218 0.0949) |
| OKLCH | oklch(50.5% 0.154 142.1) |
| XYZ | xyz(7.5669, 14.0312, 3.1735) |
| Luminance | 0.1403 (WCAG relative) |
| Temperature | neutral |
| Family | green |
Closest named colors
Tree Green
#2A7E19
ΔE00 2.06
Green
#008000
ΔE00 3.17
Dark Grass Green
#388004
ΔE00 4.55
Darkish Green
#287C37
ΔE00 4.63
Forestgreen (CSS)
#228B22
ΔE00 6.38
Darkgreen
#006400
ΔE00 7.14
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1F7918 #721879
analogous
#4F7918 #1F7918 #187941
triadic
#1F7918 #181F79 #79181F
tetradic
#1F7918 #184F79 #721879 #794118
square
#1F7918 #184F79 #721879 #794118
split-complementary
#1F7918 #411879 #79184F
monochromatic
#071A05 #12460E #1F7918 #2CAC22 #40D735
Accessibility & contrast
On white
5.52
#1F7918 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.81
#1F7918 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #1F7918
5.52:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1F7918 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1F7918 | 1.00 | 5.52 | 3.81 | 5.52 |
| #FFFFFF | 5.52 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.81 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.52 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#7C6D01
Deuteranopia (green-blind)
#726623
Tritanopia (blue-blind)
#037567
Achromatopsia (no color)
#696969
Design tokens & code
CSS
--color: #1f7918; /* rgb */ color: rgb(31, 121, 24); /* oklch */ color: oklch(50.5% 0.154 142.1);
Tailwind
colors: {
custom: {
50: '#6aa15d',
500: '#1f7918',
950: '#000000',
},
}SCSS
$custom: #1f7918; $custom-light: #6aa15d; $custom-dark: #000000;
JSON
{
"hex": "#1f7918",
"rgb": {
"r": 31,
"g": 121,
"b": 24
},
"hsl": {
"h": 115.67,
"s": 66.897,
"l": 28.431
},
"oklch": {
"l": 0.50497,
"c": 0.15439,
"h": 142.1
},
"luminance": 0.14032
}Semantic roles & 50–950 ramp
primary
#1F7918
secondary
#A63FAE
accent
#3EEADD
background
#F6FAF5
surface
#ECF3E9
border
#C7CDC5
text
#070F05
muted
#7A7F79