#1F791B#1F791B
#1F791B is a mid, vivid green. Relative luminance 0.140; OKLCH L 50.5% C 0.153 H 142.4°. Best body text is #FFFFFF at 5.51:1 contrast (WCAG AA passes).
Color values
| HEX | #1F791B |
|---|---|
| RGB | rgb(31, 121, 27) |
| HSL | hsl(117, 64%, 29%) |
| HSV | hsv(117, 78%, 47%) |
| CMYK | cmyk(74.4%, 0%, 77.7%, 52.5%) |
| CIE-LAB | lab(44.30, -44.49, 41.31) |
| CIE-LCH | lch(44.30, 60.71, 137.13°) |
| OKLab | oklab(50.52% -0.121 0.0931) |
| OKLCH | oklch(50.52% 0.153 142.4) |
| XYZ | xyz(7.5998, 14.0443, 3.3470) |
| Luminance | 0.1404 (WCAG relative) |
| Temperature | neutral |
| Family | green |
Closest named colors
Tree Green
#2A7E19
ΔE00 2.19
Green
#008000
ΔE00 3.39
Darkish Green
#287C37
ΔE00 4.28
Dark Grass Green
#388004
ΔE00 4.80
Forestgreen (CSS)
#228B22
ΔE00 6.39
Darkgreen
#006400
ΔE00 7.16
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1F791B #751B79
analogous
#4E791B #1F791B #1B7946
triadic
#1F791B #1B1F79 #791B1F
tetradic
#1F791B #1B4E79 #751B79 #79461B
square
#1F791B #1B4E79 #751B79 #79461B
split-complementary
#1F791B #461B79 #791B4E
monochromatic
#061906 #124710 #1F791B #2CAB26 #42D33B
Accessibility & contrast
On white
5.51
#1F791B on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.81
#1F791B on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #1F791B
5.51:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1F791B | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1F791B | 1.00 | 5.51 | 3.81 | 5.51 |
| #FFFFFF | 5.51 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.81 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.51 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#7C6D08
Deuteranopia (green-blind)
#726625
Tritanopia (blue-blind)
#027567
Achromatopsia (no color)
#696969
Design tokens & code
CSS
--color: #1f791b; /* rgb */ color: rgb(31, 121, 27); /* oklch */ color: oklch(50.5% 0.153 142.4);
Tailwind
colors: {
custom: {
50: '#6aa15e',
500: '#1f791b',
950: '#000000',
},
}SCSS
$custom: #1f791b; $custom-light: #6aa15e; $custom-dark: #000000;
JSON
{
"hex": "#1f791b",
"rgb": {
"r": 31,
"g": 121,
"b": 27
},
"hsl": {
"h": 117.447,
"s": 63.514,
"l": 29.02
},
"oklch": {
"l": 0.50519,
"c": 0.15268,
"h": 142.4
},
"luminance": 0.14045
}Semantic roles & 50–950 ramp
primary
#1F791B
secondary
#A943AD
accent
#41E7E0
background
#F6FAF5
surface
#ECF3E9
border
#C7CDC5
text
#070F05
muted
#7A7F79