#1F771B#1F771B
#1F771B is a mid, vivid green. Relative luminance 0.136; OKLCH L 49.9% C 0.150 H 142.4°. Best body text is #FFFFFF at 5.66:1 contrast (WCAG AA passes).
Color values
| HEX | #1F771B |
|---|---|
| RGB | rgb(31, 119, 27) |
| HSL | hsl(117, 63%, 29%) |
| HSV | hsv(117, 77%, 47%) |
| CMYK | cmyk(73.9%, 0%, 77.3%, 53.3%) |
| CIE-LAB | lab(43.60, -43.79, 40.61) |
| CIE-LCH | lch(43.60, 59.72, 137.15°) |
| OKLab | oklab(49.94% -0.1191 0.0917) |
| OKLCH | oklch(49.94% 0.15 142.4) |
| XYZ | xyz(7.3593, 13.5633, 3.2668) |
| Luminance | 0.1356 (WCAG relative) |
| Temperature | neutral |
| Family | green |
Closest named colors
Tree Green
#2A7E19
ΔE00 2.83
Green
#008000
ΔE00 3.98
Darkish Green
#287C37
ΔE00 4.36
Dark Grass Green
#388004
ΔE00 5.29
Darkgreen
#006400
ΔE00 6.52
Forestgreen (CSS)
#228B22
ΔE00 7.09
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1F771B #731B77
analogous
#4D771B #1F771B #1B7745
triadic
#1F771B #1B1F77 #771B1F
tetradic
#1F771B #1B4D77 #731B77 #77451B
square
#1F771B #1B4D77 #731B77 #77451B
split-complementary
#1F771B #451B77 #771B4D
monochromatic
#061906 #124510 #1F771B #2CA926 #41D23A
Accessibility & contrast
On white
5.66
#1F771B on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.71
#1F771B on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #1F771B
5.66:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1F771B | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1F771B | 1.00 | 5.66 | 3.71 | 5.66 |
| #FFFFFF | 5.66 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.71 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.66 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#7A6B09
Deuteranopia (green-blind)
#706425
Tritanopia (blue-blind)
#047365
Achromatopsia (no color)
#676767
Design tokens & code
CSS
--color: #1f771b; /* rgb */ color: rgb(31, 119, 27); /* oklch */ color: oklch(49.9% 0.150 142.4);
Tailwind
colors: {
custom: {
50: '#6a9f5e',
500: '#1f771b',
950: '#000000',
},
}SCSS
$custom: #1f771b; $custom-light: #6a9f5e; $custom-dark: #000000;
JSON
{
"hex": "#1f771b",
"rgb": {
"r": 31,
"g": 119,
"b": 27
},
"hsl": {
"h": 117.391,
"s": 63.014,
"l": 28.627
},
"oklch": {
"l": 0.49941,
"c": 0.15028,
"h": 142.4
},
"luminance": 0.13564
}Semantic roles & 50–950 ramp
primary
#1F771B
secondary
#A742AB
accent
#42E6DF
background
#F6F9F5
surface
#ECF2E9
border
#C7CCC5
text
#070F05
muted
#7A7E79