#1F7D2E#1F7D2E
#1F7D2E is a mid, vivid green. Relative luminance 0.152; OKLCH L 51.9% C 0.144 H 145.5°. Best body text is #FFFFFF at 5.21:1 contrast (WCAG AA passes).
Color values
| HEX | #1F7D2E |
|---|---|
| RGB | rgb(31, 125, 46) |
| HSL | hsl(130, 60%, 31%) |
| HSV | hsv(130, 75%, 49%) |
| CMYK | cmyk(75.2%, 0%, 63.2%, 51%) |
| CIE-LAB | lab(45.85, -43.94, 34.69) |
| CIE-LCH | lch(45.85, 55.98, 141.71°) |
| OKLab | oklab(51.86% -0.1186 0.0815) |
| OKLCH | oklch(51.86% 0.144 145.5) |
| XYZ | xyz(8.3912, 15.1548, 5.0672) |
| Luminance | 0.1516 (WCAG relative) |
| Temperature | neutral |
| Family | green |
Closest named colors
Darkish Green
#287C37
ΔE00 1.75
Tree Green
#2A7E19
ΔE00 3.59
Jungle Green
#048243
ΔE00 4.35
Green
#008000
ΔE00 4.93
Forestgreen (CSS)
#228B22
ΔE00 5.84
Dark Grass Green
#388004
ΔE00 6.37
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1F7D2E #7D1F6E
analogous
#3F7D1F #1F7D2E #1F7D5D
triadic
#1F7D2E #2E1F7D #7D2E1F
tetradic
#1F7D2E #1F3F7D #7D1F6E #7D5D1F
square
#1F7D2E #1F3F7D #7D1F6E #7D5D1F
split-complementary
#1F7D2E #5D1F7D #7D1F3F
monochromatic
#071B0A #134C1C #1F7D2E #2BAE40 #45D15C
Accessibility & contrast
On white
5.21
#1F7D2E on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.03
#1F7D2E on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #1F7D2E
5.21:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1F7D2E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1F7D2E | 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)
#7F7125
Deuteranopia (green-blind)
#746A35
Tritanopia (blue-blind)
#007A6C
Achromatopsia (no color)
#6D6D6D
Design tokens & code
CSS
--color: #1f7d2e; /* rgb */ color: rgb(31, 125, 46); /* oklch */ color: oklch(51.9% 0.144 145.5);
Tailwind
colors: {
custom: {
50: '#6aa46a',
500: '#1f7d2e',
950: '#000000',
},
}SCSS
$custom: #1f7d2e; $custom-light: #6aa46a; $custom-dark: #000000;
JSON
{
"hex": "#1f7d2e",
"rgb": {
"r": 31,
"g": 125,
"b": 46
},
"hsl": {
"h": 129.574,
"s": 60.256,
"l": 30.588
},
"oklch": {
"l": 0.51857,
"c": 0.14387,
"h": 145.5
},
"luminance": 0.15156
}Semantic roles & 50–950 ramp
primary
#1F7D2E
secondary
#B0489F
accent
#44CAE3
background
#F6FAF6
surface
#ECF4EB
border
#C7CEC6
text
#070F06
muted
#7A7F7A