#2A7918#2A7918
#2A7918 is a mid, vivid green. Relative luminance 0.142; OKLCH L 50.8% C 0.150 H 140.5°. Best body text is #FFFFFF at 5.46:1 contrast (WCAG AA passes).
Color values
| HEX | #2A7918 |
|---|---|
| RGB | rgb(42, 121, 24) |
| HSL | hsl(109, 67%, 28%) |
| HSV | hsv(109, 80%, 47%) |
| CMYK | cmyk(65.3%, 0%, 80.2%, 52.5%) |
| CIE-LAB | lab(44.56, -42.33, 42.75) |
| CIE-LCH | lch(44.56, 60.16, 134.71°) |
| OKLab | oklab(50.82% -0.116 0.0956) |
| OKLCH | oklch(50.82% 0.15 140.5) |
| XYZ | xyz(7.9567, 14.2322, 3.1917) |
| Luminance | 0.1423 (WCAG relative) |
| Temperature | neutral |
| Family | green |
Closest named colors
Tree Green
#2A7E19
ΔE00 1.75
Green
#008000
ΔE00 3.40
Dark Grass Green
#388004
ΔE00 3.87
Darkish Green
#287C37
ΔE00 4.91
Forestgreen (CSS)
#228B22
ΔE00 6.36
Darkgreen
#006400
ΔE00 7.42
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2A7918 #671879
analogous
#5A7918 #2A7918 #187936
triadic
#2A7918 #182A79 #79182A
tetradic
#2A7918 #185A79 #671879 #793618
square
#2A7918 #185A79 #671879 #793618
split-complementary
#2A7918 #361879 #79185A
monochromatic
#091A05 #18460E #2A7918 #3CAC22 #53D735
Accessibility & contrast
On white
5.46
#2A7918 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.85
#2A7918 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #2A7918
5.46:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2A7918 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2A7918 | 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)
#7C6D01
Deuteranopia (green-blind)
#736723
Tritanopia (blue-blind)
#1E7567
Achromatopsia (no color)
#696969
Design tokens & code
CSS
--color: #2a7918; /* rgb */ color: rgb(42, 121, 24); /* oklch */ color: oklch(50.8% 0.150 140.5);
Tailwind
colors: {
custom: {
50: '#6fa05d',
500: '#2a7918',
950: '#000000',
},
}SCSS
$custom: #2a7918; $custom-light: #6fa05d; $custom-dark: #000000;
JSON
{
"hex": "#2a7918",
"rgb": {
"r": 42,
"g": 121,
"b": 24
},
"hsl": {
"h": 108.866,
"s": 66.897,
"l": 28.431
},
"oklch": {
"l": 0.50817,
"c": 0.1503,
"h": 140.5
},
"luminance": 0.14233
}Semantic roles & 50–950 ramp
primary
#2A7918
secondary
#993FAE
accent
#3EEACA
background
#F7F9F5
surface
#EDF2E9
border
#C8CCC5
text
#080F05
muted
#7B7E79