#1F7F2C#1F7F2C
#1F7F2C is a mid, vivid green. Relative luminance 0.157; OKLCH L 52.4% C 0.148 H 145.0°. Best body text is #FFFFFF at 5.08:1 contrast (WCAG AA passes).
Color values
| HEX | #1F7F2C |
|---|---|
| RGB | rgb(31, 127, 44) |
| HSL | hsl(128, 61%, 31%) |
| HSV | hsv(128, 76%, 50%) |
| CMYK | cmyk(75.6%, 0%, 65.4%, 50.2%) |
| CIE-LAB | lab(46.51, -44.91, 36.40) |
| CIE-LCH | lch(46.51, 57.81, 140.97°) |
| OKLab | oklab(52.4% -0.1213 0.0849) |
| OKLCH | oklch(52.4% 0.148 145) |
| XYZ | xyz(8.6085, 15.6509, 4.9496) |
| Luminance | 0.1565 (WCAG relative) |
| Temperature | neutral |
| Family | green |
Closest named colors
Darkish Green
#287C37
ΔE00 2.45
Tree Green
#2A7E19
ΔE00 3.06
Green
#008000
ΔE00 4.32
Jungle Green
#048243
ΔE00 4.64
Forestgreen (CSS)
#228B22
ΔE00 4.95
Dark Grass Green
#388004
ΔE00 5.79
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1F7F2C #7F1F72
analogous
#427F1F #1F7F2C #1F7F5C
triadic
#1F7F2C #2C1F7F #7F2C1F
tetradic
#1F7F2C #1F427F #7F1F72 #7F5C1F
square
#1F7F2C #1F427F #7F1F72 #7F5C1F
split-complementary
#1F7F2C #5C1F7F #7F1F42
monochromatic
#071D0A #134E1B #1F7F2C #2BB03D #46D259
Accessibility & contrast
On white
5.08
#1F7F2C on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.13
#1F7F2C on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #1F7F2C
5.08:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1F7F2C | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1F7F2C | 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)
#817322
Deuteranopia (green-blind)
#766B33
Tritanopia (blue-blind)
#007C6E
Achromatopsia (no color)
#6E6E6E
Design tokens & code
CSS
--color: #1f7f2c; /* rgb */ color: rgb(31, 127, 44); /* oklch */ color: oklch(52.4% 0.148 145.0);
Tailwind
colors: {
custom: {
50: '#6ba569',
500: '#1f7f2c',
950: '#000000',
},
}SCSS
$custom: #1f7f2c; $custom-light: #6ba569; $custom-dark: #000000;
JSON
{
"hex": "#1f7f2c",
"rgb": {
"r": 31,
"g": 127,
"b": 44
},
"hsl": {
"h": 128.125,
"s": 60.759,
"l": 30.98
},
"oklch": {
"l": 0.52404,
"c": 0.14807,
"h": 145
},
"luminance": 0.15652
}Semantic roles & 50–950 ramp
primary
#1F7F2C
secondary
#B248A4
accent
#44CEE4
background
#F6FAF6
surface
#ECF4EB
border
#C7CEC6
text
#080F06
muted
#7A7F7A