#1F7C2E#1F7C2E
#1F7C2E is a mid, vivid green. Relative luminance 0.149; OKLCH L 51.6% C 0.143 H 145.6°. Best body text is #FFFFFF at 5.28:1 contrast (WCAG AA passes).
Color values
| HEX | #1F7C2E |
|---|---|
| RGB | rgb(31, 124, 46) |
| HSL | hsl(130, 60%, 30%) |
| HSV | hsv(130, 75%, 49%) |
| CMYK | cmyk(75%, 0%, 62.9%, 51.4%) |
| CIE-LAB | lab(45.50, -43.57, 34.30) |
| CIE-LCH | lch(45.50, 55.45, 141.79°) |
| OKLab | oklab(51.57% -0.1176 0.0806) |
| OKLCH | oklch(51.57% 0.143 145.6) |
| XYZ | xyz(8.2653, 14.9029, 5.0252) |
| Luminance | 0.1490 (WCAG relative) |
| Temperature | neutral |
| Family | green |
Closest named colors
Darkish Green
#287C37
ΔE00 1.63
Tree Green
#2A7E19
ΔE00 3.75
Jungle Green
#048243
ΔE00 4.40
Green
#008000
ΔE00 5.11
Forestgreen (CSS)
#228B22
ΔE00 6.19
Dark Grass Green
#388004
ΔE00 6.54
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1F7C2E #7C1F6D
analogous
#3F7C1F #1F7C2E #1F7C5C
triadic
#1F7C2E #2E1F7C #7C2E1F
tetradic
#1F7C2E #1F3F7C #7C1F6D #7C5C1F
square
#1F7C2E #1F3F7C #7C1F6D #7C5C1F
split-complementary
#1F7C2E #5C1F7C #7C1F3F
monochromatic
#071A0A #134B1C #1F7C2E #2BAD40 #45D05B
Accessibility & contrast
On white
5.28
#1F7C2E on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.98
#1F7C2E on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #1F7C2E
5.28:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1F7C2E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1F7C2E | 1.00 | 5.28 | 3.98 | 5.28 |
| #FFFFFF | 5.28 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.98 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.28 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#7E7026
Deuteranopia (green-blind)
#736934
Tritanopia (blue-blind)
#00796B
Achromatopsia (no color)
#6C6C6C
Design tokens & code
CSS
--color: #1f7c2e; /* rgb */ color: rgb(31, 124, 46); /* oklch */ color: oklch(51.6% 0.143 145.6);
Tailwind
colors: {
custom: {
50: '#6aa36a',
500: '#1f7c2e',
950: '#000000',
},
}SCSS
$custom: #1f7c2e; $custom-light: #6aa36a; $custom-dark: #000000;
JSON
{
"hex": "#1f7c2e",
"rgb": {
"r": 31,
"g": 124,
"b": 46
},
"hsl": {
"h": 129.677,
"s": 60,
"l": 30.392
},
"oklch": {
"l": 0.51571,
"c": 0.14257,
"h": 145.6
},
"luminance": 0.14904
}Semantic roles & 50–950 ramp
primary
#1F7C2E
secondary
#AF489F
accent
#45CAE3
background
#F6FAF6
surface
#ECF4EB
border
#C7CEC6
text
#070F06
muted
#7A7F7A