#2A7C17#2A7C17
#2A7C17 is a mid, vivid green. Relative luminance 0.150; OKLCH L 51.7% C 0.154 H 140.5°. Best body text is #FFFFFF at 5.26:1 contrast (WCAG AA passes).
Color values
| HEX | #2A7C17 |
|---|---|
| RGB | rgb(42, 124, 23) |
| HSL | hsl(109, 69%, 29%) |
| HSV | hsv(109, 81%, 49%) |
| CMYK | cmyk(66.1%, 0%, 81.5%, 51.4%) |
| CIE-LAB | lab(45.59, -43.50, 44.08) |
| CIE-LCH | lch(45.59, 61.93, 134.62°) |
| OKLab | oklab(51.67% -0.1192 0.0982) |
| OKLCH | oklch(51.67% 0.154 140.5) |
| XYZ | xyz(8.3167, 14.9686, 3.2614) |
| Luminance | 0.1497 (WCAG relative) |
| Temperature | neutral |
| Family | green |
Closest named colors
Tree Green
#2A7E19
ΔE00 0.71
Green
#008000
ΔE00 2.64
Dark Grass Green
#388004
ΔE00 3.08
Darkish Green
#287C37
ΔE00 5.10
Forestgreen (CSS)
#228B22
ΔE00 5.34
Emerald Green
#028F1E
ΔE00 6.81
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2A7C17 #69177C
analogous
#5D7C17 #2A7C17 #177C37
triadic
#2A7C17 #172A7C #7C172A
tetradic
#2A7C17 #175D7C #69177C #7C3717
square
#2A7C17 #175D7C #69177C #7C3717
split-complementary
#2A7C17 #37177C #7C175D
monochromatic
#091A05 #19480D #2A7C17 #3BB021 #53D934
Accessibility & contrast
On white
5.26
#2A7C17 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.99
#2A7C17 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #2A7C17
5.26:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2A7C17 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2A7C17 | 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)
#766923
Tritanopia (blue-blind)
#1D7869
Achromatopsia (no color)
#6C6C6C
Design tokens & code
CSS
--color: #2a7c17; /* rgb */ color: rgb(42, 124, 23); /* oklch */ color: oklch(51.7% 0.154 140.5);
Tailwind
colors: {
custom: {
50: '#70a35d',
500: '#2a7c17',
950: '#000000',
},
}SCSS
$custom: #2a7c17; $custom-light: #70a35d; $custom-dark: #000000;
JSON
{
"hex": "#2a7c17",
"rgb": {
"r": 42,
"g": 124,
"b": 23
},
"hsl": {
"h": 108.713,
"s": 68.707,
"l": 28.824
},
"oklch": {
"l": 0.51665,
"c": 0.15445,
"h": 140.5
},
"luminance": 0.14969
}Semantic roles & 50–950 ramp
primary
#2A7C17
secondary
#9B3EB1
accent
#3CECCB
background
#F7FAF5
surface
#EDF4E9
border
#C8CEC5
text
#080F05
muted
#7B7F79