#1F7C2D#1F7C2D
#1F7C2D is a mid, vivid green. Relative luminance 0.149; OKLCH L 51.6% C 0.143 H 145.3°. Best body text is #FFFFFF at 5.28:1 contrast (WCAG AA passes).
Color values
| HEX | #1F7C2D |
|---|---|
| RGB | rgb(31, 124, 45) |
| HSL | hsl(129, 60%, 30%) |
| HSV | hsv(129, 75%, 49%) |
| CMYK | cmyk(75%, 0%, 63.7%, 51.4%) |
| CIE-LAB | lab(45.49, -43.70, 34.77) |
| CIE-LCH | lch(45.49, 55.84, 141.49°) |
| OKLab | oklab(51.56% -0.118 0.0816) |
| OKLCH | oklch(51.56% 0.143 145.3) |
| XYZ | xyz(8.2458, 14.8951, 4.9226) |
| Luminance | 0.1490 (WCAG relative) |
| Temperature | neutral |
| Family | green |
Closest named colors
Darkish Green
#287C37
ΔE00 1.79
Tree Green
#2A7E19
ΔE00 3.58
Jungle Green
#048243
ΔE00 4.55
Green
#008000
ΔE00 4.94
Forestgreen (CSS)
#228B22
ΔE00 6.10
Dark Grass Green
#388004
ΔE00 6.39
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1F7C2D #7C1F6E
analogous
#407C1F #1F7C2D #1F7C5B
triadic
#1F7C2D #2D1F7C #7C2D1F
tetradic
#1F7C2D #1F407C #7C1F6E #7C5B1F
square
#1F7C2D #1F407C #7C1F6E #7C5B1F
split-complementary
#1F7C2D #5B1F7C #7C1F40
monochromatic
#071A09 #134B1B #1F7C2D #2BAD3F #45D05A
Accessibility & contrast
On white
5.28
#1F7C2D on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.98
#1F7C2D on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #1F7C2D
5.28:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1F7C2D | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1F7C2D | 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)
#7E7024
Deuteranopia (green-blind)
#736934
Tritanopia (blue-blind)
#00796B
Achromatopsia (no color)
#6C6C6C
Design tokens & code
CSS
--color: #1f7c2d; /* rgb */ color: rgb(31, 124, 45); /* oklch */ color: oklch(51.6% 0.143 145.3);
Tailwind
colors: {
custom: {
50: '#6aa369',
500: '#1f7c2d',
950: '#000000',
},
}SCSS
$custom: #1f7c2d; $custom-light: #6aa369; $custom-dark: #000000;
JSON
{
"hex": "#1f7c2d",
"rgb": {
"r": 31,
"g": 124,
"b": 45
},
"hsl": {
"h": 129.032,
"s": 60,
"l": 30.392
},
"oklch": {
"l": 0.51559,
"c": 0.14341,
"h": 145.3
},
"luminance": 0.14896
}Semantic roles & 50–950 ramp
primary
#1F7C2D
secondary
#AF48A0
accent
#45CBE3
background
#F6FAF6
surface
#ECF4EB
border
#C7CEC6
text
#070F06
muted
#7A7F7A