#1F7D1C#1F7D1C
#1F7D1C is a mid, vivid green. Relative luminance 0.150; OKLCH L 51.7% C 0.157 H 142.5°. Best body text is #FFFFFF at 5.24:1 contrast (WCAG AA passes).
Color values
| HEX | #1F7D1C |
|---|---|
| RGB | rgb(31, 125, 28) |
| HSL | hsl(118, 63%, 30%) |
| HSV | hsv(118, 78%, 49%) |
| CMYK | cmyk(75.2%, 0%, 77.6%, 51%) |
| CIE-LAB | lab(45.69, -45.81, 42.32) |
| CIE-LCH | lch(45.69, 62.37, 137.26°) |
| OKLab | oklab(51.68% -0.1245 0.0954) |
| OKLCH | oklch(51.68% 0.157 142.5) |
| XYZ | xyz(8.1078, 15.0415, 3.5744) |
| Luminance | 0.1504 (WCAG relative) |
| Temperature | neutral |
| Family | green |
Closest named colors
Tree Green
#2A7E19
ΔE00 1.23
Green
#008000
ΔE00 2.49
Dark Grass Green
#388004
ΔE00 4.09
Darkish Green
#287C37
ΔE00 4.32
Forestgreen (CSS)
#228B22
ΔE00 5.00
Emerald Green
#028F1E
ΔE00 6.38
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1F7D1C #7A1C7D
analogous
#507D1C #1F7D1C #1C7D49
triadic
#1F7D1C #1C1F7D #7D1C1F
tetradic
#1F7D1C #1C507D #7A1C7D #7D491C
square
#1F7D1C #1C507D #7A1C7D #7D491C
split-complementary
#1F7D1C #491C7D #7D1C50
monochromatic
#061906 #134B11 #1F7D1C #2BAF27 #44D43F
Accessibility & contrast
On white
5.24
#1F7D1C on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.01
#1F7D1C on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #1F7D1C
5.24:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1F7D1C | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1F7D1C | 1.00 | 5.24 | 4.01 | 5.24 |
| #FFFFFF | 5.24 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.01 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.24 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#807108
Deuteranopia (green-blind)
#756927
Tritanopia (blue-blind)
#00796A
Achromatopsia (no color)
#6C6C6C
Design tokens & code
CSS
--color: #1f7d1c; /* rgb */ color: rgb(31, 125, 28); /* oklch */ color: oklch(51.7% 0.157 142.5);
Tailwind
colors: {
custom: {
50: '#6ba45f',
500: '#1f7d1c',
950: '#000000',
},
}SCSS
$custom: #1f7d1c; $custom-light: #6ba45f; $custom-dark: #000000;
JSON
{
"hex": "#1f7d1c",
"rgb": {
"r": 31,
"g": 125,
"b": 28
},
"hsl": {
"h": 118.144,
"s": 63.399,
"l": 30
},
"oklch": {
"l": 0.51679,
"c": 0.15684,
"h": 142.5
},
"luminance": 0.15042
}Semantic roles & 50–950 ramp
primary
#1F7D1C
secondary
#AD44B1
accent
#41E6E1
background
#F6FAF5
surface
#ECF4EA
border
#C7CEC6
text
#080F05
muted
#7A7F79