#1F7D2A#1F7D2A
#1F7D2A is a mid, vivid green. Relative luminance 0.151; OKLCH L 51.8% C 0.147 H 144.7°. Best body text is #FFFFFF at 5.22:1 contrast (WCAG AA passes).
Color values
| HEX | #1F7D2A |
|---|---|
| RGB | rgb(31, 125, 42) |
| HSL | hsl(127, 60%, 31%) |
| HSV | hsv(127, 75%, 49%) |
| CMYK | cmyk(75.2%, 0%, 66.4%, 51%) |
| CIE-LAB | lab(45.80, -44.43, 36.55) |
| CIE-LCH | lch(45.80, 57.53, 140.56°) |
| OKLab | oklab(51.81% -0.1201 0.085) |
| OKLCH | oklch(51.81% 0.147 144.7) |
| XYZ | xyz(8.3161, 15.1248, 4.6711) |
| Luminance | 0.1513 (WCAG relative) |
| Temperature | neutral |
| Family | green |
Closest named colors
Darkish Green
#287C37
ΔE00 2.38
Tree Green
#2A7E19
ΔE00 2.95
Green
#008000
ΔE00 4.29
Jungle Green
#048243
ΔE00 4.96
Forestgreen (CSS)
#228B22
ΔE00 5.51
Dark Grass Green
#388004
ΔE00 5.77
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1F7D2A #7D1F72
analogous
#437D1F #1F7D2A #1F7D59
triadic
#1F7D2A #2A1F7D #7D2A1F
tetradic
#1F7D2A #1F437D #7D1F72 #7D591F
square
#1F7D2A #1F437D #7D1F72 #7D591F
split-complementary
#1F7D2A #591F7D #7D1F43
monochromatic
#071B09 #134C1A #1F7D2A #2BAE3A #45D156
Accessibility & contrast
On white
5.22
#1F7D2A on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.03
#1F7D2A on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #1F7D2A
5.22:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1F7D2A | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1F7D2A | 1.00 | 5.22 | 4.03 | 5.22 |
| #FFFFFF | 5.22 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.03 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.22 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#7F7120
Deuteranopia (green-blind)
#746A31
Tritanopia (blue-blind)
#007A6C
Achromatopsia (no color)
#6C6C6C
Design tokens & code
CSS
--color: #1f7d2a; /* rgb */ color: rgb(31, 125, 42); /* oklch */ color: oklch(51.8% 0.147 144.7);
Tailwind
colors: {
custom: {
50: '#6aa467',
500: '#1f7d2a',
950: '#000000',
},
}SCSS
$custom: #1f7d2a; $custom-light: #6aa467; $custom-dark: #000000;
JSON
{
"hex": "#1f7d2a",
"rgb": {
"r": 31,
"g": 125,
"b": 42
},
"hsl": {
"h": 127.021,
"s": 60.256,
"l": 30.588
},
"oklch": {
"l": 0.5181,
"c": 0.14713,
"h": 144.7
},
"luminance": 0.15126
}Semantic roles & 50–950 ramp
primary
#1F7D2A
secondary
#B048A4
accent
#44D1E3
background
#F6FAF6
surface
#ECF4EB
border
#C7CEC6
text
#070F06
muted
#7A7F7A