#1F7F2A#1F7F2A
#1F7F2A is a mid, vivid green. Relative luminance 0.156; OKLCH L 52.4% C 0.150 H 144.6°. Best body text is #FFFFFF at 5.09:1 contrast (WCAG AA passes).
Color values
| HEX | #1F7F2A |
|---|---|
| RGB | rgb(31, 127, 42) |
| HSL | hsl(127, 61%, 31%) |
| HSV | hsv(127, 76%, 50%) |
| CMYK | cmyk(75.6%, 0%, 66.9%, 50.2%) |
| CIE-LAB | lab(46.49, -45.15, 37.31) |
| CIE-LCH | lch(46.49, 58.57, 140.43°) |
| OKLab | oklab(52.38% -0.122 0.0867) |
| OKLCH | oklch(52.38% 0.15 144.6) |
| XYZ | xyz(8.5718, 15.6362, 4.7564) |
| Luminance | 0.1564 (WCAG relative) |
| Temperature | neutral |
| Family | green |
Closest named colors
Darkish Green
#287C37
ΔE00 2.74
Tree Green
#2A7E19
ΔE00 2.76
Green
#008000
ΔE00 4.00
Forestgreen (CSS)
#228B22
ΔE00 4.80
Jungle Green
#048243
ΔE00 4.95
Dark Grass Green
#388004
ΔE00 5.50
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1F7F2A #7F1F74
analogous
#447F1F #1F7F2A #1F7F5A
triadic
#1F7F2A #2A1F7F #7F2A1F
tetradic
#1F7F2A #1F447F #7F1F74 #7F5A1F
square
#1F7F2A #1F447F #7F1F74 #7F5A1F
split-complementary
#1F7F2A #5A1F7F #7F1F44
monochromatic
#071D09 #134E1A #1F7F2A #2BB03A #46D256
Accessibility & contrast
On white
5.09
#1F7F2A on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.13
#1F7F2A on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #1F7F2A
5.09:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1F7F2A | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1F7F2A | 1.00 | 5.09 | 4.13 | 5.09 |
| #FFFFFF | 5.09 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.13 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.09 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#817320
Deuteranopia (green-blind)
#766B32
Tritanopia (blue-blind)
#007C6D
Achromatopsia (no color)
#6E6E6E
Design tokens & code
CSS
--color: #1f7f2a; /* rgb */ color: rgb(31, 127, 42); /* oklch */ color: oklch(52.4% 0.150 144.6);
Tailwind
colors: {
custom: {
50: '#6ba567',
500: '#1f7f2a',
950: '#000000',
},
}SCSS
$custom: #1f7f2a; $custom-light: #6ba567; $custom-dark: #000000;
JSON
{
"hex": "#1f7f2a",
"rgb": {
"r": 31,
"g": 127,
"b": 42
},
"hsl": {
"h": 126.875,
"s": 60.759,
"l": 30.98
},
"oklch": {
"l": 0.52381,
"c": 0.14966,
"h": 144.6
},
"luminance": 0.15637
}Semantic roles & 50–950 ramp
primary
#1F7F2A
secondary
#B248A6
accent
#44D2E4
background
#F6FAF6
surface
#ECF4EB
border
#C7CEC6
text
#080F06
muted
#7A7F7A