#2A7E18#2A7E18
#2A7E18 is a mid, vivid green. Relative luminance 0.155; OKLCH L 52.2% C 0.156 H 140.7°. Best body text is #FFFFFF at 5.13:1 contrast (WCAG AA passes).
Color values
| HEX | #2A7E18 |
|---|---|
| RGB | rgb(42, 126, 24) |
| HSL | hsl(109, 68%, 29%) |
| HSV | hsv(109, 81%, 49%) |
| CMYK | cmyk(66.7%, 0%, 81%, 50.6%) |
| CIE-LAB | lab(46.28, -44.17, 44.41) |
| CIE-LCH | lch(46.28, 62.63, 134.84°) |
| OKLab | oklab(52.24% -0.1209 0.0991) |
| OKLCH | oklch(52.24% 0.156 140.7) |
| XYZ | xyz(8.5801, 15.4790, 3.3996) |
| Luminance | 0.1548 (WCAG relative) |
| Temperature | neutral |
| Family | green |
Closest named colors
Tree Green
#2A7E19
ΔE00 0.11
Green
#008000
ΔE00 2.36
Dark Grass Green
#388004
ΔE00 2.81
Forestgreen (CSS)
#228B22
ΔE00 4.64
Darkish Green
#287C37
ΔE00 5.16
Emerald Green
#028F1E
ΔE00 6.12
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2A7E18 #6C187E
analogous
#5D7E18 #2A7E18 #187E39
triadic
#2A7E18 #182A7E #7E182A
tetradic
#2A7E18 #185D7E #6C187E #7E3918
square
#2A7E18 #185D7E #6C187E #7E3918
split-complementary
#2A7E18 #39187E #7E185D
monochromatic
#091A05 #194B0E #2A7E18 #3BB122 #54D937
Accessibility & contrast
On white
5.13
#2A7E18 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.10
#2A7E18 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #2A7E18
5.13:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2A7E18 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2A7E18 | 1.00 | 5.13 | 4.10 | 5.13 |
| #FFFFFF | 5.13 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.10 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.13 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#817200
Deuteranopia (green-blind)
#776B24
Tritanopia (blue-blind)
#1C7A6B
Achromatopsia (no color)
#6E6E6E
Design tokens & code
CSS
--color: #2a7e18; /* rgb */ color: rgb(42, 126, 24); /* oklch */ color: oklch(52.2% 0.156 140.7);
Tailwind
colors: {
custom: {
50: '#70a45e',
500: '#2a7e18',
950: '#000000',
},
}SCSS
$custom: #2a7e18; $custom-light: #70a45e; $custom-dark: #000000;
JSON
{
"hex": "#2a7e18",
"rgb": {
"r": 42,
"g": 126,
"b": 24
},
"hsl": {
"h": 109.412,
"s": 68,
"l": 29.412
},
"oklch": {
"l": 0.5224,
"c": 0.15633,
"h": 140.7
},
"luminance": 0.1548
}Semantic roles & 50–950 ramp
primary
#2A7E18
secondary
#9E3FB2
accent
#3DEBCC
background
#F7FAF5
surface
#EDF4E9
border
#C8CEC5
text
#080F05
muted
#7B7F79