#2B971F#2B971F
#2B971F is a mid, vivid green. Relative luminance 0.227; OKLCH L 59.3% C 0.181 H 141.7°. Best body text is #000000 at 5.55:1 contrast (WCAG AA passes).
Color values
| HEX | #2B971F |
|---|---|
| RGB | rgb(43, 151, 31) |
| HSL | hsl(114, 66%, 36%) |
| HSV | hsv(114, 79%, 59%) |
| CMYK | cmyk(71.5%, 0%, 79.5%, 40.8%) |
| CIE-LAB | lab(54.81, -52.24, 50.28) |
| CIE-LCH | lch(54.81, 72.51, 136.09°) |
| OKLab | oklab(59.33% -0.1424 0.1123) |
| OKLCH | oklch(59.33% 0.181 141.7) |
| XYZ | xyz(12.3095, 22.7444, 5.0374) |
| Luminance | 0.2275 (WCAG relative) |
| Temperature | neutral |
| Family | green |
Closest named colors
True Green
#089404
ΔE00 2.12
Irish Green
#019529
ΔE00 2.60
Grass Green
#3F9B0B
ΔE00 3.13
Emerald Green
#028F1E
ΔE00 3.51
Grassy Green
#419C03
ΔE00 3.72
Forestgreen (CSS)
#228B22
ΔE00 4.42
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2B971F #8B1F97
analogous
#67971F #2B971F #1F974F
triadic
#2B971F #1F2B97 #971F2B
tetradic
#2B971F #1F6797 #8B1F97 #974F1F
square
#2B971F #1F6797 #8B1F97 #974F1F
split-complementary
#2B971F #4F1F97 #971F67
monochromatic
#0E310A #1D6415 #2B971F #39CA29 #62DC54
Accessibility & contrast
On white
3.78
#2B971F on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.55
#2B971F on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #2B971F
5.55:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2B971F | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##2B971F | 1.00 | 3.78 | 5.55 | 5.55 |
| #FFFFFF | 3.78 | 1.00 | 21.00 | 21.00 |
| #000000 | 5.55 | 21.00 | 1.00 | 1.00 |
| ##000000 | 5.55 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#9B8800
Deuteranopia (green-blind)
#8E802D
Tritanopia (blue-blind)
#0D9281
Achromatopsia (no color)
#838383
Design tokens & code
CSS
--color: #2b971f; /* rgb */ color: rgb(43, 151, 31); /* oklch */ color: oklch(59.3% 0.181 141.7);
Tailwind
colors: {
custom: {
50: '#76b765',
500: '#2b971f',
950: '#000000',
},
}SCSS
$custom: #2b971f; $custom-light: #76b765; $custom-dark: #000000;
JSON
{
"hex": "#2b971f",
"rgb": {
"r": 43,
"g": 151,
"b": 31
},
"hsl": {
"h": 114,
"s": 65.934,
"l": 35.686
},
"oklch": {
"l": 0.59329,
"c": 0.18138,
"h": 141.7
},
"luminance": 0.22746
}Semantic roles & 50–950 ramp
primary
#2B971F
secondary
#B552BF
accent
#3FE9D8
background
#F7FBF6
surface
#EEF6EB
border
#C9D0C6
text
#0A1106
muted
#7C807A