#1F7A2B#1F7A2B
#1F7A2B is a mid, vivid green. Relative luminance 0.144; OKLCH L 51.0% C 0.142 H 145.0°. Best body text is #FFFFFF at 5.42:1 contrast (WCAG AA passes).
Color values
| HEX | #1F7A2B |
|---|---|
| RGB | rgb(31, 122, 43) |
| HSL | hsl(128, 59%, 30%) |
| HSV | hsv(128, 75%, 48%) |
| CMYK | cmyk(74.6%, 0%, 64.8%, 52.2%) |
| CIE-LAB | lab(44.78, -43.22, 34.92) |
| CIE-LCH | lch(44.78, 55.57, 141.06°) |
| OKLab | oklab(50.96% -0.1167 0.0817) |
| OKLCH | oklch(50.96% 0.142 145) |
| XYZ | xyz(7.9601, 14.3839, 4.6419) |
| Luminance | 0.1439 (WCAG relative) |
| Temperature | neutral |
| Family | green |
Closest named colors
Darkish Green
#287C37
ΔE00 2.05
Tree Green
#2A7E19
ΔE00 3.67
Jungle Green
#048243
ΔE00 5.01
Green
#008000
ΔE00 5.05
Dark Grass Green
#388004
ΔE00 6.47
Forestgreen (CSS)
#228B22
ΔE00 6.66
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1F7A2B #7A1F6E
analogous
#417A1F #1F7A2B #1F7A58
triadic
#1F7A2B #2B1F7A #7A2B1F
tetradic
#1F7A2B #1F417A #7A1F6E #7A581F
square
#1F7A2B #1F417A #7A1F6E #7A581F
split-complementary
#1F7A2B #581F7A #7A1F41
monochromatic
#061809 #13491A #1F7A2B #2BAB3C #44CF56
Accessibility & contrast
On white
5.42
#1F7A2B on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.88
#1F7A2B on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #1F7A2B
5.42:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1F7A2B | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1F7A2B | 1.00 | 5.42 | 3.88 | 5.42 |
| #FFFFFF | 5.42 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.88 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.42 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#7C6E22
Deuteranopia (green-blind)
#726732
Tritanopia (blue-blind)
#007769
Achromatopsia (no color)
#6A6A6A
Design tokens & code
CSS
--color: #1f7a2b; /* rgb */ color: rgb(31, 122, 43); /* oklch */ color: oklch(51.0% 0.142 145.0);
Tailwind
colors: {
custom: {
50: '#6aa168',
500: '#1f7a2b',
950: '#000000',
},
}SCSS
$custom: #1f7a2b; $custom-light: #6aa168; $custom-dark: #000000;
JSON
{
"hex": "#1f7a2b",
"rgb": {
"r": 31,
"g": 122,
"b": 43
},
"hsl": {
"h": 127.912,
"s": 59.477,
"l": 30
},
"oklch": {
"l": 0.50962,
"c": 0.14249,
"h": 145
},
"luminance": 0.14385
}Semantic roles & 50–950 ramp
primary
#1F7A2B
secondary
#AD47A0
accent
#45CEE3
background
#F6FAF6
surface
#ECF3EB
border
#C7CDC6
text
#070F06
muted
#7A7F7A