#1F7D2D#1F7D2D
#1F7D2D is a mid, vivid green. Relative luminance 0.151; OKLCH L 51.8% C 0.145 H 145.3°. Best body text is #FFFFFF at 5.21:1 contrast (WCAG AA passes).
Color values
| HEX | #1F7D2D |
|---|---|
| RGB | rgb(31, 125, 45) |
| HSL | hsl(129, 60%, 31%) |
| HSV | hsv(129, 75%, 49%) |
| CMYK | cmyk(75.2%, 0%, 64%, 51%) |
| CIE-LAB | lab(45.84, -44.06, 35.16) |
| CIE-LCH | lch(45.84, 56.37, 141.41°) |
| OKLab | oklab(51.85% -0.119 0.0824) |
| OKLCH | oklch(51.85% 0.145 145.3) |
| XYZ | xyz(8.3718, 15.1471, 4.9646) |
| Luminance | 0.1515 (WCAG relative) |
| Temperature | neutral |
| Family | green |
Closest named colors
Darkish Green
#287C37
ΔE00 1.91
Tree Green
#2A7E19
ΔE00 3.43
Jungle Green
#048243
ΔE00 4.50
Green
#008000
ΔE00 4.76
Forestgreen (CSS)
#228B22
ΔE00 5.75
Dark Grass Green
#388004
ΔE00 6.22
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1F7D2D #7D1F6F
analogous
#407D1F #1F7D2D #1F7D5C
triadic
#1F7D2D #2D1F7D #7D2D1F
tetradic
#1F7D2D #1F407D #7D1F6F #7D5C1F
square
#1F7D2D #1F407D #7D1F6F #7D5C1F
split-complementary
#1F7D2D #5C1F7D #7D1F40
monochromatic
#071B0A #134C1B #1F7D2D #2BAE3F #45D15A
Accessibility & contrast
On white
5.21
#1F7D2D on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.03
#1F7D2D on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #1F7D2D
5.21:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1F7D2D | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1F7D2D | 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)
#7F7124
Deuteranopia (green-blind)
#746A34
Tritanopia (blue-blind)
#007A6C
Achromatopsia (no color)
#6D6D6D
Design tokens & code
CSS
--color: #1f7d2d; /* rgb */ color: rgb(31, 125, 45); /* oklch */ color: oklch(51.8% 0.145 145.3);
Tailwind
colors: {
custom: {
50: '#6aa469',
500: '#1f7d2d',
950: '#000000',
},
}SCSS
$custom: #1f7d2d; $custom-light: #6aa469; $custom-dark: #000000;
JSON
{
"hex": "#1f7d2d",
"rgb": {
"r": 31,
"g": 125,
"b": 45
},
"hsl": {
"h": 128.936,
"s": 60.256,
"l": 30.588
},
"oklch": {
"l": 0.51845,
"c": 0.14471,
"h": 145.3
},
"luminance": 0.15148
}Semantic roles & 50–950 ramp
primary
#1F7D2D
secondary
#B048A1
accent
#44CCE3
background
#F6FAF6
surface
#ECF4EB
border
#C7CEC6
text
#070F06
muted
#7A7F7A