#1F7F22#1F7F22
#1F7F22 is a mid, vivid green. Relative luminance 0.156; OKLCH L 52.3% C 0.155 H 143.3°. Best body text is #FFFFFF at 5.10:1 contrast (WCAG AA passes).
Color values
| HEX | #1F7F22 |
|---|---|
| RGB | rgb(31, 127, 34) |
| HSL | hsl(122, 61%, 31%) |
| HSV | hsv(122, 76%, 50%) |
| CMYK | cmyk(75.6%, 0%, 73.2%, 50.2%) |
| CIE-LAB | lab(46.42, -45.98, 40.72) |
| CIE-LCH | lch(46.42, 61.42, 138.47°) |
| OKLab | oklab(52.3% -0.1247 0.0929) |
| OKLCH | oklch(52.3% 0.155 143.3) |
| XYZ | xyz(8.4426, 15.5846, 4.0762) |
| Luminance | 0.1559 (WCAG relative) |
| Temperature | neutral |
| Family | green |
Closest named colors
Tree Green
#2A7E19
ΔE00 1.68
Green
#008000
ΔE00 2.88
Darkish Green
#287C37
ΔE00 3.83
Forestgreen (CSS)
#228B22
ΔE00 4.39
Dark Grass Green
#388004
ΔE00 4.46
Emerald Green
#028F1E
ΔE00 5.78
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1F7F22 #7F1F7C
analogous
#4C7F1F #1F7F22 #1F7F52
triadic
#1F7F22 #221F7F #7F221F
tetradic
#1F7F22 #1F4C7F #7F1F7C #7F521F
square
#1F7F22 #1F4C7F #7F1F7C #7F521F
split-complementary
#1F7F22 #521F7F #7F1F4C
monochromatic
#071D08 #134E15 #1F7F22 #2BB02F #46D24B
Accessibility & contrast
On white
5.10
#1F7F22 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.12
#1F7F22 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #1F7F22
5.10:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1F7F22 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1F7F22 | 1.00 | 5.10 | 4.12 | 5.10 |
| #FFFFFF | 5.10 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.12 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.10 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#827313
Deuteranopia (green-blind)
#776B2B
Tritanopia (blue-blind)
#007B6D
Achromatopsia (no color)
#6E6E6E
Design tokens & code
CSS
--color: #1f7f22; /* rgb */ color: rgb(31, 127, 34); /* oklch */ color: oklch(52.3% 0.155 143.3);
Tailwind
colors: {
custom: {
50: '#6ba563',
500: '#1f7f22',
950: '#000000',
},
}SCSS
$custom: #1f7f22; $custom-light: #6ba563; $custom-dark: #000000;
JSON
{
"hex": "#1f7f22",
"rgb": {
"r": 31,
"g": 127,
"b": 34
},
"hsl": {
"h": 121.875,
"s": 60.759,
"l": 30.98
},
"oklch": {
"l": 0.52302,
"c": 0.15546,
"h": 143.3
},
"luminance": 0.15586
}Semantic roles & 50–950 ramp
primary
#1F7F22
secondary
#B248AF
accent
#44DFE4
background
#F6FAF6
surface
#ECF4EB
border
#C7CEC6
text
#080F05
muted
#7A7F7A