#2A7E1C#2A7E1C
#2A7E1C is a mid, vivid green. Relative luminance 0.155; OKLCH L 52.3% C 0.154 H 141.1°. Best body text is #FFFFFF at 5.12:1 contrast (WCAG AA passes).
Color values
| HEX | #2A7E1C |
|---|---|
| RGB | rgb(42, 126, 28) |
| HSL | hsl(111, 64%, 30%) |
| HSV | hsv(111, 78%, 49%) |
| CMYK | cmyk(66.7%, 0%, 77.8%, 50.6%) |
| CIE-LAB | lab(46.31, -43.88, 43.03) |
| CIE-LCH | lch(46.31, 61.46, 135.56°) |
| OKLab | oklab(52.27% -0.1199 0.0968) |
| OKLCH | oklch(52.27% 0.154 141.1) |
| XYZ | xyz(8.6249, 15.4969, 3.6351) |
| Luminance | 0.1550 (WCAG relative) |
| Temperature | neutral |
| Family | green |
Closest named colors
Tree Green
#2A7E19
ΔE00 0.35
Green
#008000
ΔE00 2.61
Dark Grass Green
#388004
ΔE00 3.20
Forestgreen (CSS)
#228B22
ΔE00 4.61
Darkish Green
#287C37
ΔE00 4.70
Emerald Green
#028F1E
ΔE00 6.12
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2A7E1C #701C7E
analogous
#5B7E1C #2A7E1C #1C7E3F
triadic
#2A7E1C #1C2A7E #7E1C2A
tetradic
#2A7E1C #1C5B7E #701C7E #7E3F1C
square
#2A7E1C #1C5B7E #701C7E #7E3F1C
split-complementary
#2A7E1C #3F1C7E #7E1C5B
monochromatic
#091A06 #194C11 #2A7E1C #3BB027 #55D540
Accessibility & contrast
On white
5.12
#2A7E1C on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.10
#2A7E1C on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #2A7E1C
5.12:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2A7E1C | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2A7E1C | 1.00 | 5.12 | 4.10 | 5.12 |
| #FFFFFF | 5.12 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.10 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.12 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#817207
Deuteranopia (green-blind)
#776B27
Tritanopia (blue-blind)
#1B7A6B
Achromatopsia (no color)
#6E6E6E
Design tokens & code
CSS
--color: #2a7e1c; /* rgb */ color: rgb(42, 126, 28); /* oklch */ color: oklch(52.3% 0.154 141.1);
Tailwind
colors: {
custom: {
50: '#70a460',
500: '#2a7e1c',
950: '#000000',
},
}SCSS
$custom: #2a7e1c; $custom-light: #70a460; $custom-dark: #000000;
JSON
{
"hex": "#2a7e1c",
"rgb": {
"r": 42,
"g": 126,
"b": 28
},
"hsl": {
"h": 111.429,
"s": 63.636,
"l": 30.196
},
"oklch": {
"l": 0.52268,
"c": 0.15412,
"h": 141.1
},
"luminance": 0.15498
}Semantic roles & 50–950 ramp
primary
#2A7E1C
secondary
#A244B2
accent
#41E7CF
background
#F7FAF5
surface
#EDF4EA
border
#C8CEC6
text
#080F05
muted
#7B7F79