#1F7F2E#1F7F2E
#1F7F2E is a mid, vivid green. Relative luminance 0.157; OKLCH L 52.4% C 0.146 H 145.4°. Best body text is #FFFFFF at 5.08:1 contrast (WCAG AA passes).
Color values
| HEX | #1F7F2E |
|---|---|
| RGB | rgb(31, 127, 46) |
| HSL | hsl(129, 61%, 31%) |
| HSV | hsv(129, 76%, 50%) |
| CMYK | cmyk(75.6%, 0%, 63.8%, 50.2%) |
| CIE-LAB | lab(46.53, -44.66, 35.48) |
| CIE-LCH | lch(46.53, 57.04, 141.54°) |
| OKLab | oklab(52.43% -0.1205 0.0832) |
| OKLCH | oklch(52.43% 0.146 145.4) |
| XYZ | xyz(8.6470, 15.6663, 5.1524) |
| Luminance | 0.1567 (WCAG relative) |
| Temperature | neutral |
| Family | green |
Closest named colors
Darkish Green
#287C37
ΔE00 2.17
Tree Green
#2A7E19
ΔE00 3.38
Jungle Green
#048243
ΔE00 4.32
Green
#008000
ΔE00 4.64
Forestgreen (CSS)
#228B22
ΔE00 5.13
Dark Grass Green
#388004
ΔE00 6.09
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1F7F2E #7F1F70
analogous
#407F1F #1F7F2E #1F7F5E
triadic
#1F7F2E #2E1F7F #7F2E1F
tetradic
#1F7F2E #1F407F #7F1F70 #7F5E1F
square
#1F7F2E #1F407F #7F1F70 #7F5E1F
split-complementary
#1F7F2E #5E1F7F #7F1F40
monochromatic
#071D0A #134E1C #1F7F2E #2BB040 #46D25C
Accessibility & contrast
On white
5.08
#1F7F2E on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.13
#1F7F2E on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #1F7F2E
5.08:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1F7F2E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1F7F2E | 1.00 | 5.08 | 4.13 | 5.08 |
| #FFFFFF | 5.08 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.13 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.08 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#817325
Deuteranopia (green-blind)
#766B35
Tritanopia (blue-blind)
#007C6E
Achromatopsia (no color)
#6E6E6E
Design tokens & code
CSS
--color: #1f7f2e; /* rgb */ color: rgb(31, 127, 46); /* oklch */ color: oklch(52.4% 0.146 145.4);
Tailwind
colors: {
custom: {
50: '#6ba56a',
500: '#1f7f2e',
950: '#000000',
},
}SCSS
$custom: #1f7f2e; $custom-light: #6ba56a; $custom-dark: #000000;
JSON
{
"hex": "#1f7f2e",
"rgb": {
"r": 31,
"g": 127,
"b": 46
},
"hsl": {
"h": 129.375,
"s": 60.759,
"l": 30.98
},
"oklch": {
"l": 0.52427,
"c": 0.14645,
"h": 145.4
},
"luminance": 0.15667
}Semantic roles & 50–950 ramp
primary
#1F7F2E
secondary
#B248A1
accent
#44CBE4
background
#F6FAF6
surface
#ECF4EB
border
#C7CEC6
text
#080F07
muted
#7A7F7A