#2A7C18#2A7C18
#2A7C18 is a mid, vivid green. Relative luminance 0.150; OKLCH L 51.7% C 0.154 H 140.6°. Best body text is #FFFFFF at 5.26:1 contrast (WCAG AA passes).
Color values
| HEX | #2A7C18 |
|---|---|
| RGB | rgb(42, 124, 24) |
| HSL | hsl(109, 68%, 29%) |
| HSV | hsv(109, 81%, 49%) |
| CMYK | cmyk(66.1%, 0%, 80.6%, 51.4%) |
| CIE-LAB | lab(45.60, -43.44, 43.75) |
| CIE-LCH | lch(45.60, 61.65, 134.79°) |
| OKLab | oklab(51.67% -0.119 0.0977) |
| OKLCH | oklch(51.67% 0.154 140.6) |
| XYZ | xyz(8.3270, 14.9727, 3.3152) |
| Luminance | 0.1497 (WCAG relative) |
| Temperature | neutral |
| Family | green |
Closest named colors
Tree Green
#2A7E19
ΔE00 0.70
Green
#008000
ΔE00 2.69
Dark Grass Green
#388004
ΔE00 3.16
Darkish Green
#287C37
ΔE00 4.99
Forestgreen (CSS)
#228B22
ΔE00 5.33
Emerald Green
#028F1E
ΔE00 6.81
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2A7C18 #6A187C
analogous
#5C7C18 #2A7C18 #187C38
triadic
#2A7C18 #182A7C #7C182A
tetradic
#2A7C18 #185C7C #6A187C #7C3818
square
#2A7C18 #185C7C #6A187C #7C3818
split-complementary
#2A7C18 #38187C #7C185C
monochromatic
#091A05 #19490E #2A7C18 #3BAF22 #53D836
Accessibility & contrast
On white
5.26
#2A7C18 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.99
#2A7C18 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #2A7C18
5.26:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2A7C18 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2A7C18 | 1.00 | 5.26 | 3.99 | 5.26 |
| #FFFFFF | 5.26 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.99 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.26 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#7F7000
Deuteranopia (green-blind)
#766924
Tritanopia (blue-blind)
#1D7869
Achromatopsia (no color)
#6C6C6C
Design tokens & code
CSS
--color: #2a7c18; /* rgb */ color: rgb(42, 124, 24); /* oklch */ color: oklch(51.7% 0.154 140.6);
Tailwind
colors: {
custom: {
50: '#70a35e',
500: '#2a7c18',
950: '#000000',
},
}SCSS
$custom: #2a7c18; $custom-light: #70a35e; $custom-dark: #000000;
JSON
{
"hex": "#2a7c18",
"rgb": {
"r": 42,
"g": 124,
"b": 24
},
"hsl": {
"h": 109.2,
"s": 67.568,
"l": 29.02
},
"oklch": {
"l": 0.51672,
"c": 0.15393,
"h": 140.6
},
"luminance": 0.14973
}Semantic roles & 50–950 ramp
primary
#2A7C18
secondary
#9C3FB1
accent
#3DEACB
background
#F7FAF5
surface
#EDF4E9
border
#C8CEC5
text
#080F05
muted
#7B7F79