#2A811C#2A811C
#2A811C is a mid, vivid green. Relative luminance 0.163; OKLCH L 53.1% C 0.158 H 141.2°. Best body text is #FFFFFF at 4.93:1 contrast (WCAG AA passes).
Color values
| HEX | #2A811C |
|---|---|
| RGB | rgb(42, 129, 28) |
| HSL | hsl(112, 64%, 31%) |
| HSV | hsv(112, 78%, 51%) |
| CMYK | cmyk(67.4%, 0%, 78.3%, 49.4%) |
| CIE-LAB | lab(47.33, -44.98, 44.04) |
| CIE-LCH | lch(47.33, 62.95, 135.60°) |
| OKLab | oklab(53.12% -0.1229 0.0989) |
| OKLCH | oklch(53.12% 0.158 141.2) |
| XYZ | xyz(9.0142, 16.2757, 3.7649) |
| Luminance | 0.1628 (WCAG relative) |
| Temperature | neutral |
| Family | green |
Closest named colors
Tree Green
#2A7E19
ΔE00 1.07
Green
#008000
ΔE00 2.46
Dark Grass Green
#388004
ΔE00 2.95
Forestgreen (CSS)
#228B22
ΔE00 3.57
Emerald Green
#028F1E
ΔE00 5.09
Darkish Green
#287C37
ΔE00 5.16
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2A811C #731C81
analogous
#5C811C #2A811C #1C8140
triadic
#2A811C #1C2A81 #811C2A
tetradic
#2A811C #1C5C81 #731C81 #81401C
square
#2A811C #1C5C81 #731C81 #81401C
split-complementary
#2A811C #401C81 #811C5C
monochromatic
#091C06 #1A4F11 #2A811C #3AB327 #56D642
Accessibility & contrast
On white
4.93
#2A811C on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.26
#2A811C on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #2A811C
4.93:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2A811C | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2A811C | 1.00 | 4.93 | 4.26 | 4.93 |
| #FFFFFF | 4.93 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.26 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 4.93 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#847505
Deuteranopia (green-blind)
#7A6E27
Tritanopia (blue-blind)
#1A7D6E
Achromatopsia (no color)
#707070
Design tokens & code
CSS
--color: #2a811c; /* rgb */ color: rgb(42, 129, 28); /* oklch */ color: oklch(53.1% 0.158 141.2);
Tailwind
colors: {
custom: {
50: '#70a660',
500: '#2a811c',
950: '#000000',
},
}SCSS
$custom: #2a811c; $custom-light: #70a660; $custom-dark: #000000;
JSON
{
"hex": "#2a811c",
"rgb": {
"r": 42,
"g": 129,
"b": 28
},
"hsl": {
"h": 111.683,
"s": 64.331,
"l": 30.784
},
"oklch": {
"l": 0.53118,
"c": 0.15774,
"h": 141.2
},
"luminance": 0.16277
}Semantic roles & 50–950 ramp
primary
#2A811C
secondary
#A544B4
accent
#40E7D0
background
#F7FAF5
surface
#EDF4EA
border
#C8CEC6
text
#080F05
muted
#7B7F79