#2A7D1C#2A7D1C
#2A7D1C is a mid, vivid green. Relative luminance 0.152; OKLCH L 52.0% C 0.153 H 141.1°. Best body text is #FFFFFF at 5.19:1 contrast (WCAG AA passes).
Color values
| HEX | #2A7D1C |
|---|---|
| RGB | rgb(42, 125, 28) |
| HSL | hsl(111, 63%, 30%) |
| HSV | hsv(111, 78%, 49%) |
| CMYK | cmyk(66.4%, 0%, 77.6%, 51%) |
| CIE-LAB | lab(45.96, -43.51, 42.69) |
| CIE-LCH | lch(45.96, 60.96, 135.55°) |
| OKLab | oklab(51.98% -0.119 0.0961) |
| OKLCH | oklch(51.98% 0.153 141.1) |
| XYZ | xyz(8.4976, 15.2425, 3.5927) |
| Luminance | 0.1524 (WCAG relative) |
| Temperature | neutral |
| Family | green |
Closest named colors
Tree Green
#2A7E19
ΔE00 0.55
Green
#008000
ΔE00 2.75
Dark Grass Green
#388004
ΔE00 3.35
Darkish Green
#287C37
ΔE00 4.60
Forestgreen (CSS)
#228B22
ΔE00 4.96
Emerald Green
#028F1E
ΔE00 6.46
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2A7D1C #6F1C7D
analogous
#5B7D1C #2A7D1C #1C7D3E
triadic
#2A7D1C #1C2A7D #7D1C2A
tetradic
#2A7D1C #1C5B7D #6F1C7D #7D3E1C
square
#2A7D1C #1C5B7D #6F1C7D #7D3E1C
split-complementary
#2A7D1C #3E1C7D #7D1C5B
monochromatic
#081906 #194B11 #2A7D1C #3BAF27 #55D43F
Accessibility & contrast
On white
5.19
#2A7D1C on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.05
#2A7D1C on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #2A7D1C
5.19:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2A7D1C | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2A7D1C | 1.00 | 5.19 | 4.05 | 5.19 |
| #FFFFFF | 5.19 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.05 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.19 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#807107
Deuteranopia (green-blind)
#766A26
Tritanopia (blue-blind)
#1B796A
Achromatopsia (no color)
#6D6D6D
Design tokens & code
CSS
--color: #2a7d1c; /* rgb */ color: rgb(42, 125, 28); /* oklch */ color: oklch(52.0% 0.153 141.1);
Tailwind
colors: {
custom: {
50: '#70a360',
500: '#2a7d1c',
950: '#000000',
},
}SCSS
$custom: #2a7d1c; $custom-light: #70a360; $custom-dark: #000000;
JSON
{
"hex": "#2a7d1c",
"rgb": {
"r": 42,
"g": 125,
"b": 28
},
"hsl": {
"h": 111.34,
"s": 63.399,
"l": 30
},
"oklch": {
"l": 0.51984,
"c": 0.1529,
"h": 141.1
},
"luminance": 0.15243
}Semantic roles & 50–950 ramp
primary
#2A7D1C
secondary
#A144B1
accent
#41E6CF
background
#F7FAF5
surface
#EDF4EA
border
#C8CEC6
text
#080F05
muted
#7B7F79