#1F7B2F#1F7B2F
#1F7B2F is a mid, vivid green. Relative luminance 0.147; OKLCH L 51.3% C 0.140 H 145.8°. Best body text is #FFFFFF at 5.34:1 contrast (WCAG AA passes).
Color values
| HEX | #1F7B2F |
|---|---|
| RGB | rgb(31, 123, 47) |
| HSL | hsl(130, 60%, 30%) |
| HSV | hsv(130, 75%, 48%) |
| CMYK | cmyk(74.8%, 0%, 61.8%, 51.8%) |
| CIE-LAB | lab(45.17, -43.07, 33.42) |
| CIE-LCH | lch(45.17, 54.52, 142.19°) |
| OKLab | oklab(51.3% -0.1162 0.0788) |
| OKLCH | oklch(51.3% 0.14 145.8) |
| XYZ | xyz(8.1605, 14.6615, 5.0887) |
| Luminance | 0.1466 (WCAG relative) |
| Temperature | neutral |
| Family | green |
Closest named colors
Darkish Green
#287C37
ΔE00 1.43
Tree Green
#2A7E19
ΔE00 4.10
Jungle Green
#048243
ΔE00 4.34
Green
#008000
ΔE00 5.47
Forestgreen (CSS)
#228B22
ΔE00 6.64
Dark Grass Green
#388004
ΔE00 6.88
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1F7B2F #7B1F6B
analogous
#3D7B1F #1F7B2F #1F7B5D
triadic
#1F7B2F #2F1F7B #7B2F1F
tetradic
#1F7B2F #1F3D7B #7B1F6B #7B5D1F
square
#1F7B2F #1F3D7B #7B1F6B #7B5D1F
split-complementary
#1F7B2F #5D1F7B #7B1F3D
monochromatic
#06190A #134A1C #1F7B2F #2BAC42 #44D05D
Accessibility & contrast
On white
5.34
#1F7B2F on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.93
#1F7B2F on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #1F7B2F
5.34:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1F7B2F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1F7B2F | 1.00 | 5.34 | 3.93 | 5.34 |
| #FFFFFF | 5.34 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.93 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.34 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#7D6F27
Deuteranopia (green-blind)
#726835
Tritanopia (blue-blind)
#00786B
Achromatopsia (no color)
#6B6B6B
Design tokens & code
CSS
--color: #1f7b2f; /* rgb */ color: rgb(31, 123, 47); /* oklch */ color: oklch(51.3% 0.140 145.8);
Tailwind
colors: {
custom: {
50: '#6aa26a',
500: '#1f7b2f',
950: '#000000',
},
}SCSS
$custom: #1f7b2f; $custom-light: #6aa26a; $custom-dark: #000000;
JSON
{
"hex": "#1f7b2f",
"rgb": {
"r": 31,
"g": 123,
"b": 47
},
"hsl": {
"h": 130.435,
"s": 59.74,
"l": 30.196
},
"oklch": {
"l": 0.51298,
"c": 0.14041,
"h": 145.8
},
"luminance": 0.14662
}Semantic roles & 50–950 ramp
primary
#1F7B2F
secondary
#AE489C
accent
#45C7E3
background
#F6FAF6
surface
#ECF4EB
border
#C7CEC6
text
#070F07
muted
#7A7F7A