#2A791B#2A791B
#2A791B is a mid, vivid green. Relative luminance 0.142; OKLCH L 50.8% C 0.149 H 140.8°. Best body text is #FFFFFF at 5.46:1 contrast (WCAG AA passes).
Color values
| HEX | #2A791B |
|---|---|
| RGB | rgb(42, 121, 27) |
| HSL | hsl(110, 64%, 29%) |
| HSV | hsv(110, 78%, 47%) |
| CMYK | cmyk(65.3%, 0%, 77.7%, 52.5%) |
| CIE-LAB | lab(44.58, -42.10, 41.69) |
| CIE-LCH | lch(44.58, 59.25, 135.28°) |
| OKLab | oklab(50.84% -0.1152 0.0938) |
| OKLCH | oklch(50.84% 0.149 140.8) |
| XYZ | xyz(7.9897, 14.2453, 3.3653) |
| Luminance | 0.1425 (WCAG relative) |
| Temperature | neutral |
| Family | green |
Closest named colors
Tree Green
#2A7E19
ΔE00 1.83
Green
#008000
ΔE00 3.57
Dark Grass Green
#388004
ΔE00 4.13
Darkish Green
#287C37
ΔE00 4.55
Forestgreen (CSS)
#228B22
ΔE00 6.36
Darkgreen
#006400
ΔE00 7.43
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2A791B #6A1B79
analogous
#59791B #2A791B #1B793B
triadic
#2A791B #1B2A79 #791B2A
tetradic
#2A791B #1B5979 #6A1B79 #793B1B
square
#2A791B #1B5979 #6A1B79 #793B1B
split-complementary
#2A791B #3B1B79 #791B59
monochromatic
#091906 #194710 #2A791B #3BAB26 #53D33B
Accessibility & contrast
On white
5.46
#2A791B on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.85
#2A791B on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #2A791B
5.46:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2A791B | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2A791B | 1.00 | 5.46 | 3.85 | 5.46 |
| #FFFFFF | 5.46 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.85 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.46 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#7C6D07
Deuteranopia (green-blind)
#736725
Tritanopia (blue-blind)
#1D7567
Achromatopsia (no color)
#696969
Design tokens & code
CSS
--color: #2a791b; /* rgb */ color: rgb(42, 121, 27); /* oklch */ color: oklch(50.8% 0.149 140.8);
Tailwind
colors: {
custom: {
50: '#6fa05f',
500: '#2a791b',
950: '#000000',
},
}SCSS
$custom: #2a791b; $custom-light: #6fa05f; $custom-dark: #000000;
JSON
{
"hex": "#2a791b",
"rgb": {
"r": 42,
"g": 121,
"b": 27
},
"hsl": {
"h": 110.426,
"s": 63.514,
"l": 29.02
},
"oklch": {
"l": 0.50838,
"c": 0.14858,
"h": 140.8
},
"luminance": 0.14246
}Semantic roles & 50–950 ramp
primary
#2A791B
secondary
#9C43AD
accent
#41E7CC
background
#F7F9F5
surface
#EDF2E9
border
#C8CCC5
text
#080F05
muted
#7B7E79