#1F7212#1F7212
#1F7212 is a mid, vivid green. Relative luminance 0.124; OKLCH L 48.4% C 0.149 H 141.3°. Best body text is #FFFFFF at 6.04:1 contrast (WCAG AA passes).
Color values
| HEX | #1F7212 |
|---|---|
| RGB | rgb(31, 114, 18) |
| HSL | hsl(112, 73%, 26%) |
| HSV | hsv(112, 84%, 45%) |
| CMYK | cmyk(72.8%, 0%, 84.2%, 55.3%) |
| CIE-LAB | lab(41.80, -42.67, 42.00) |
| CIE-LCH | lch(41.80, 59.87, 135.45°) |
| OKLab | oklab(48.43% -0.1165 0.0933) |
| OKLCH | oklch(48.43% 0.149 141.3) |
| XYZ | xyz(6.6912, 12.3689, 2.6070) |
| Luminance | 0.1237 (WCAG relative) |
| Temperature | neutral |
| Family | green |
Closest named colors
Tree Green
#2A7E19
ΔE00 4.25
Darkgreen
#006400
ΔE00 4.86
Green
#008000
ΔE00 5.13
Darkish Green
#287C37
ΔE00 5.81
Dark Grass Green
#388004
ΔE00 6.10
Deep Green
#02590F
ΔE00 8.58
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1F7212 #651272
analogous
#4F7212 #1F7212 #127235
triadic
#1F7212 #121F72 #72121F
tetradic
#1F7212 #124F72 #651272 #723512
square
#1F7212 #124F72 #651272 #723512
split-complementary
#1F7212 #351272 #72124F
monochromatic
#071A04 #113D0A #1F7212 #2DA71A #3CDC23
Accessibility & contrast
On white
6.04
#1F7212 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.47
#1F7212 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #1F7212
6.04:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1F7212 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1F7212 | 1.00 | 6.04 | 3.47 | 6.04 |
| #FFFFFF | 6.04 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.47 | 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)
#6B601E
Tritanopia (blue-blind)
#0B6E60
Achromatopsia (no color)
#636363
Design tokens & code
CSS
--color: #1f7212; /* rgb */ color: rgb(31, 114, 18); /* oklch */ color: oklch(48.4% 0.149 141.3);
Tailwind
colors: {
custom: {
50: '#699b59',
500: '#1f7212',
950: '#000000',
},
}SCSS
$custom: #1f7212; $custom-light: #699b59; $custom-dark: #000000;
JSON
{
"hex": "#1f7212",
"rgb": {
"r": 31,
"g": 114,
"b": 18
},
"hsl": {
"h": 111.875,
"s": 72.727,
"l": 25.882
},
"oklch": {
"l": 0.48427,
"c": 0.14924,
"h": 141.3
},
"luminance": 0.1237
}Semantic roles & 50–950 ramp
primary
#1F7212
secondary
#9937A9
accent
#38EFD7
background
#F6F9F5
surface
#ECF2E9
border
#C7CCC5
text
#070E04
muted
#7A7E79