#2A791F#2A791F
#2A791F is a mid, vivid green. Relative luminance 0.143; OKLCH L 50.9% C 0.146 H 141.4°. Best body text is #FFFFFF at 5.45:1 contrast (WCAG AA passes).
Color values
| HEX | #2A791F |
|---|---|
| RGB | rgb(42, 121, 31) |
| HSL | hsl(113, 59%, 30%) |
| HSV | hsv(113, 74%, 47%) |
| CMYK | cmyk(65.3%, 0%, 74.4%, 52.5%) |
| CIE-LAB | lab(44.61, -41.77, 40.16) |
| CIE-LCH | lch(44.61, 57.94, 136.13°) |
| OKLab | oklab(50.87% -0.1141 0.0912) |
| OKLCH | oklch(50.87% 0.146 141.4) |
| XYZ | xyz(8.0391, 14.2651, 3.6259) |
| Luminance | 0.1427 (WCAG relative) |
| Temperature | neutral |
| Family | green |
Closest named colors
Tree Green
#2A7E19
ΔE00 2.06
Green
#008000
ΔE00 3.87
Darkish Green
#287C37
ΔE00 4.03
Dark Grass Green
#388004
ΔE00 4.52
Forestgreen (CSS)
#228B22
ΔE00 6.39
Jungle Green
#048243
ΔE00 7.16
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2A791F #6E1F79
analogous
#57791F #2A791F #1F7941
triadic
#2A791F #1F2A79 #791F2A
tetradic
#2A791F #1F5779 #6E1F79 #79411F
square
#2A791F #1F5779 #6E1F79 #79411F
split-complementary
#2A791F #411F79 #791F57
monochromatic
#081806 #194813 #2A791F #3BAA2B #54CF43
Accessibility & contrast
On white
5.45
#2A791F on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.85
#2A791F on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #2A791F
5.45:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2A791F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2A791F | 1.00 | 5.45 | 3.85 | 5.45 |
| #FFFFFF | 5.45 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.85 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.45 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#7C6D10
Deuteranopia (green-blind)
#736728
Tritanopia (blue-blind)
#1C7567
Achromatopsia (no color)
#696969
Design tokens & code
CSS
--color: #2a791f; /* rgb */ color: rgb(42, 121, 31); /* oklch */ color: oklch(50.9% 0.146 141.4);
Tailwind
colors: {
custom: {
50: '#6fa061',
500: '#2a791f',
950: '#000000',
},
}SCSS
$custom: #2a791f; $custom-light: #6fa061; $custom-dark: #000000;
JSON
{
"hex": "#2a791f",
"rgb": {
"r": 42,
"g": 121,
"b": 31
},
"hsl": {
"h": 112.667,
"s": 59.211,
"l": 29.804
},
"oklch": {
"l": 0.5087,
"c": 0.14605,
"h": 141.4
},
"luminance": 0.14266
}Semantic roles & 50–950 ramp
primary
#2A791F
secondary
#A047AC
accent
#45E2CF
background
#F7F9F5
surface
#EDF2EA
border
#C8CCC6
text
#080F05
muted
#7B7E79