#1F7D2F#1F7D2F
#1F7D2F is a mid, vivid green. Relative luminance 0.152; OKLCH L 51.9% C 0.143 H 145.7°. Best body text is #FFFFFF at 5.21:1 contrast (WCAG AA passes).
Color values
| HEX | #1F7D2F |
|---|---|
| RGB | rgb(31, 125, 47) |
| HSL | hsl(130, 60%, 31%) |
| HSV | hsv(130, 75%, 49%) |
| CMYK | cmyk(75.2%, 0%, 62.4%, 51%) |
| CIE-LAB | lab(45.86, -43.81, 34.22) |
| CIE-LCH | lch(45.86, 55.59, 142.01°) |
| OKLab | oklab(51.87% -0.1182 0.0806) |
| OKLCH | oklch(51.87% 0.143 145.7) |
| XYZ | xyz(8.4112, 15.1628, 5.1722) |
| Luminance | 0.1516 (WCAG relative) |
| Temperature | neutral |
| Family | green |
Closest named colors
Darkish Green
#287C37
ΔE00 1.60
Tree Green
#2A7E19
ΔE00 3.76
Jungle Green
#048243
ΔE00 4.19
Green
#008000
ΔE00 5.10
Forestgreen (CSS)
#228B22
ΔE00 5.93
Dark Grass Green
#388004
ΔE00 6.53
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1F7D2F #7D1F6D
analogous
#3E7D1F #1F7D2F #1F7D5E
triadic
#1F7D2F #2F1F7D #7D2F1F
tetradic
#1F7D2F #1F3E7D #7D1F6D #7D5E1F
square
#1F7D2F #1F3E7D #7D1F6D #7D5E1F
split-complementary
#1F7D2F #5E1F7D #7D1F3E
monochromatic
#071B0A #134C1D #1F7D2F #2BAE41 #45D15D
Accessibility & contrast
On white
5.21
#1F7D2F on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.03
#1F7D2F on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #1F7D2F
5.21:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1F7D2F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1F7D2F | 1.00 | 5.21 | 4.03 | 5.21 |
| #FFFFFF | 5.21 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.03 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.21 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#7F7127
Deuteranopia (green-blind)
#746A35
Tritanopia (blue-blind)
#007A6C
Achromatopsia (no color)
#6D6D6D
Design tokens & code
CSS
--color: #1f7d2f; /* rgb */ color: rgb(31, 125, 47); /* oklch */ color: oklch(51.9% 0.143 145.7);
Tailwind
colors: {
custom: {
50: '#6aa46a',
500: '#1f7d2f',
950: '#000000',
},
}SCSS
$custom: #1f7d2f; $custom-light: #6aa46a; $custom-dark: #000000;
JSON
{
"hex": "#1f7d2f",
"rgb": {
"r": 31,
"g": 125,
"b": 47
},
"hsl": {
"h": 130.213,
"s": 60.256,
"l": 30.588
},
"oklch": {
"l": 0.51869,
"c": 0.14303,
"h": 145.7
},
"luminance": 0.15164
}Semantic roles & 50–950 ramp
primary
#1F7D2F
secondary
#B0489E
accent
#44C8E3
background
#F6FAF6
surface
#ECF4EB
border
#C7CEC6
text
#070F07
muted
#7A7F7A