#1F7C2F#1F7C2F
#1F7C2F is a mid, vivid green. Relative luminance 0.149; OKLCH L 51.6% C 0.142 H 145.8°. Best body text is #FFFFFF at 5.27:1 contrast (WCAG AA passes).
Color values
| HEX | #1F7C2F |
|---|---|
| RGB | rgb(31, 124, 47) |
| HSL | hsl(130, 60%, 30%) |
| HSV | hsv(130, 75%, 49%) |
| CMYK | cmyk(75%, 0%, 62.1%, 51.4%) |
| CIE-LAB | lab(45.51, -43.44, 33.82) |
| CIE-LCH | lch(45.51, 55.05, 142.10°) |
| OKLab | oklab(51.58% -0.1172 0.0797) |
| OKLCH | oklch(51.58% 0.142 145.8) |
| XYZ | xyz(8.2852, 14.9109, 5.1302) |
| Luminance | 0.1491 (WCAG relative) |
| Temperature | neutral |
| Family | green |
Closest named colors
Darkish Green
#287C37
ΔE00 1.47
Tree Green
#2A7E19
ΔE00 3.92
Jungle Green
#048243
ΔE00 4.25
Green
#008000
ΔE00 5.28
Forestgreen (CSS)
#228B22
ΔE00 6.28
Dark Grass Green
#388004
ΔE00 6.70
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1F7C2F #7C1F6C
analogous
#3D7C1F #1F7C2F #1F7C5E
triadic
#1F7C2F #2F1F7C #7C2F1F
tetradic
#1F7C2F #1F3D7C #7C1F6C #7C5E1F
square
#1F7C2F #1F3D7C #7C1F6C #7C5E1F
split-complementary
#1F7C2F #5E1F7C #7C1F3D
monochromatic
#071A0A #134B1C #1F7C2F #2BAD42 #45D05D
Accessibility & contrast
On white
5.27
#1F7C2F on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.98
#1F7C2F on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #1F7C2F
5.27:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1F7C2F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1F7C2F | 1.00 | 5.27 | 3.98 | 5.27 |
| #FFFFFF | 5.27 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.98 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.27 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#7E7027
Deuteranopia (green-blind)
#736935
Tritanopia (blue-blind)
#00796B
Achromatopsia (no color)
#6C6C6C
Design tokens & code
CSS
--color: #1f7c2f; /* rgb */ color: rgb(31, 124, 47); /* oklch */ color: oklch(51.6% 0.142 145.8);
Tailwind
colors: {
custom: {
50: '#6aa36a',
500: '#1f7c2f',
950: '#000000',
},
}SCSS
$custom: #1f7c2f; $custom-light: #6aa36a; $custom-dark: #000000;
JSON
{
"hex": "#1f7c2f",
"rgb": {
"r": 31,
"g": 124,
"b": 47
},
"hsl": {
"h": 130.323,
"s": 60,
"l": 30.392
},
"oklch": {
"l": 0.51584,
"c": 0.14172,
"h": 145.8
},
"luminance": 0.14912
}Semantic roles & 50–950 ramp
primary
#1F7C2F
secondary
#AF489D
accent
#45C8E3
background
#F6FAF6
surface
#ECF4EB
border
#C7CEC6
text
#070F07
muted
#7A7F7A