#1F7215#1F7215
#1F7215 is a mid, vivid green. Relative luminance 0.124; OKLCH L 48.4% C 0.148 H 141.6°. Best body text is #FFFFFF at 6.04:1 contrast (WCAG AA passes).
Color values
| HEX | #1F7215 |
|---|---|
| RGB | rgb(31, 114, 21) |
| HSL | hsl(114, 69%, 26%) |
| HSV | hsv(114, 82%, 45%) |
| CMYK | cmyk(72.8%, 0%, 81.6%, 55.3%) |
| CIE-LAB | lab(41.81, -42.47, 41.03) |
| CIE-LCH | lch(41.81, 59.05, 135.98°) |
| OKLab | oklab(48.45% -0.1158 0.0917) |
| OKLCH | oklch(48.45% 0.148 141.6) |
| XYZ | xyz(6.7174, 12.3794, 2.7448) |
| Luminance | 0.1238 (WCAG relative) |
| Temperature | neutral |
| Family | green |
Closest named colors
Tree Green
#2A7E19
ΔE00 4.30
Darkgreen
#006400
ΔE00 4.88
Green
#008000
ΔE00 5.24
Darkish Green
#287C37
ΔE00 5.55
Dark Grass Green
#388004
ΔE00 6.26
Deep Green
#02590F
ΔE00 8.49
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1F7215 #681572
analogous
#4E7215 #1F7215 #15723A
triadic
#1F7215 #151F72 #72151F
tetradic
#1F7215 #154E72 #681572 #723A15
square
#1F7215 #154E72 #681572 #723A15
split-complementary
#1F7215 #3A1572 #72154E
monochromatic
#071A05 #113E0B #1F7215 #2DA61F #3CD82A
Accessibility & contrast
On white
6.04
#1F7215 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.48
#1F7215 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #1F7215
6.04:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1F7215 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1F7215 | 1.00 | 6.04 | 3.48 | 6.04 |
| #FFFFFF | 6.04 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.48 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.04 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#756700
Deuteranopia (green-blind)
#6B6020
Tritanopia (blue-blind)
#0A6E61
Achromatopsia (no color)
#636363
Design tokens & code
CSS
--color: #1f7215; /* rgb */ color: rgb(31, 114, 21); /* oklch */ color: oklch(48.4% 0.148 141.6);
Tailwind
colors: {
custom: {
50: '#699b5b',
500: '#1f7215',
950: '#000000',
},
}SCSS
$custom: #1f7215; $custom-light: #699b5b; $custom-dark: #000000;
JSON
{
"hex": "#1f7215",
"rgb": {
"r": 31,
"g": 114,
"b": 21
},
"hsl": {
"h": 113.548,
"s": 68.889,
"l": 26.471
},
"oklch": {
"l": 0.48446,
"c": 0.14772,
"h": 141.6
},
"luminance": 0.1238
}Semantic roles & 50–950 ramp
primary
#1F7215
secondary
#9C3BA8
accent
#3CECD9
background
#F6F9F5
surface
#ECF2E9
border
#C7CCC5
text
#070E04
muted
#7A7E79