#1F7E2E#1F7E2E
#1F7E2E is a mid, vivid green. Relative luminance 0.154; OKLCH L 52.1% C 0.145 H 145.4°. Best body text is #FFFFFF at 5.14:1 contrast (WCAG AA passes).
Color values
| HEX | #1F7E2E |
|---|---|
| RGB | rgb(31, 126, 46) |
| HSL | hsl(129, 61%, 31%) |
| HSV | hsv(129, 75%, 49%) |
| CMYK | cmyk(75.4%, 0%, 63.5%, 50.6%) |
| CIE-LAB | lab(46.19, -44.30, 35.08) |
| CIE-LCH | lch(46.19, 56.51, 141.62°) |
| OKLab | oklab(52.14% -0.1196 0.0823) |
| OKLCH | oklch(52.14% 0.145 145.4) |
| XYZ | xyz(8.5185, 15.4093, 5.1096) |
| Luminance | 0.1541 (WCAG relative) |
| Temperature | neutral |
| Family | green |
Closest named colors
Darkish Green
#287C37
ΔE00 1.94
Tree Green
#2A7E19
ΔE00 3.47
Jungle Green
#048243
ΔE00 4.32
Green
#008000
ΔE00 4.77
Forestgreen (CSS)
#228B22
ΔE00 5.48
Dark Grass Green
#388004
ΔE00 6.22
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1F7E2E #7E1F6F
analogous
#3F7E1F #1F7E2E #1F7E5D
triadic
#1F7E2E #2E1F7E #7E2E1F
tetradic
#1F7E2E #1F3F7E #7E1F6F #7E5D1F
square
#1F7E2E #1F3F7E #7E1F6F #7E5D1F
split-complementary
#1F7E2E #5D1F7E #7E1F3F
monochromatic
#071C0A #134D1C #1F7E2E #2BAF40 #46D15C
Accessibility & contrast
On white
5.14
#1F7E2E on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.08
#1F7E2E on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #1F7E2E
5.14:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1F7E2E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1F7E2E | 1.00 | 5.14 | 4.08 | 5.14 |
| #FFFFFF | 5.14 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.08 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.14 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#807225
Deuteranopia (green-blind)
#756A35
Tritanopia (blue-blind)
#007B6D
Achromatopsia (no color)
#6D6D6D
Design tokens & code
CSS
--color: #1f7e2e; /* rgb */ color: rgb(31, 126, 46); /* oklch */ color: oklch(52.1% 0.145 145.4);
Tailwind
colors: {
custom: {
50: '#6aa46a',
500: '#1f7e2e',
950: '#000000',
},
}SCSS
$custom: #1f7e2e; $custom-light: #6aa46a; $custom-dark: #000000;
JSON
{
"hex": "#1f7e2e",
"rgb": {
"r": 31,
"g": 126,
"b": 46
},
"hsl": {
"h": 129.474,
"s": 60.51,
"l": 30.784
},
"oklch": {
"l": 0.52142,
"c": 0.14516,
"h": 145.4
},
"luminance": 0.1541
}Semantic roles & 50–950 ramp
primary
#1F7E2E
secondary
#B148A0
accent
#44CAE4
background
#F6FAF6
surface
#ECF4EB
border
#C7CEC6
text
#070F06
muted
#7A7F7A