#2B791F#2B791F
#2B791F is a mid, vivid green. Relative luminance 0.143; OKLCH L 50.9% C 0.146 H 141.2°. Best body text is #FFFFFF at 5.44:1 contrast (WCAG AA passes).
Color values
| HEX | #2B791F |
|---|---|
| RGB | rgb(43, 121, 31) |
| HSL | hsl(112, 59%, 30%) |
| HSV | hsv(112, 74%, 47%) |
| CMYK | cmyk(64.5%, 0%, 74.4%, 52.5%) |
| CIE-LAB | lab(44.64, -41.53, 40.20) |
| CIE-LCH | lch(44.64, 57.80, 135.93°) |
| OKLab | oklab(50.9% -0.1135 0.0913) |
| OKLCH | oklch(50.9% 0.146 141.2) |
| XYZ | xyz(8.0805, 14.2865, 3.6278) |
| Luminance | 0.1429 (WCAG relative) |
| Temperature | neutral |
| Family | green |
Closest named colors
Tree Green
#2A7E19
ΔE00 2.04
Green
#008000
ΔE00 3.89
Darkish Green
#287C37
ΔE00 4.07
Dark Grass Green
#388004
ΔE00 4.46
Forestgreen (CSS)
#228B22
ΔE00 6.39
Jungle Green
#048243
ΔE00 7.22
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2B791F #6D1F79
analogous
#58791F #2B791F #1F7940
triadic
#2B791F #1F2B79 #791F2B
tetradic
#2B791F #1F5879 #6D1F79 #79401F
square
#2B791F #1F5879 #6D1F79 #79401F
split-complementary
#2B791F #401F79 #791F58
monochromatic
#091806 #1A4813 #2B791F #3CAA2B #56CF43
Accessibility & contrast
On white
5.44
#2B791F on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.86
#2B791F on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #2B791F
5.44:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2B791F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2B791F | 1.00 | 5.44 | 3.86 | 5.44 |
| #FFFFFF | 5.44 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.86 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.44 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#7C6E10
Deuteranopia (green-blind)
#736728
Tritanopia (blue-blind)
#1E7567
Achromatopsia (no color)
#6A6A6A
Design tokens & code
CSS
--color: #2b791f; /* rgb */ color: rgb(43, 121, 31); /* oklch */ color: oklch(50.9% 0.146 141.2);
Tailwind
colors: {
custom: {
50: '#6fa061',
500: '#2b791f',
950: '#000000',
},
}SCSS
$custom: #2b791f; $custom-light: #6fa061; $custom-dark: #000000;
JSON
{
"hex": "#2b791f",
"rgb": {
"r": 43,
"g": 121,
"b": 31
},
"hsl": {
"h": 112,
"s": 59.211,
"l": 29.804
},
"oklch": {
"l": 0.50904,
"c": 0.14564,
"h": 141.2
},
"luminance": 0.14287
}Semantic roles & 50–950 ramp
primary
#2B791F
secondary
#9F47AC
accent
#45E2CD
background
#F7F9F5
surface
#EDF2EA
border
#C8CCC6
text
#080F05
muted
#7B7E79