#2A7F1D#2A7F1D
#2A7F1D is a mid, vivid green. Relative luminance 0.158; OKLCH L 52.6% C 0.155 H 141.2°. Best body text is #FFFFFF at 5.06:1 contrast (WCAG AA passes).
Color values
| HEX | #2A7F1D |
|---|---|
| RGB | rgb(42, 127, 29) |
| HSL | hsl(112, 63%, 31%) |
| HSV | hsv(112, 77%, 50%) |
| CMYK | cmyk(66.9%, 0%, 77.2%, 50.2%) |
| CIE-LAB | lab(46.66, -44.17, 43.00) |
| CIE-LCH | lch(46.66, 61.65, 135.77°) |
| OKLab | oklab(52.56% -0.1207 0.0969) |
| OKLCH | oklch(52.56% 0.155 141.2) |
| XYZ | xyz(8.7655, 15.7588, 3.7420) |
| Luminance | 0.1576 (WCAG relative) |
| Temperature | neutral |
| Family | green |
Closest named colors
Tree Green
#2A7E19
ΔE00 0.54
Green
#008000
ΔE00 2.58
Dark Grass Green
#388004
ΔE00 3.18
Forestgreen (CSS)
#228B22
ΔE00 4.26
Darkish Green
#287C37
ΔE00 4.72
Emerald Green
#028F1E
ΔE00 5.77
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2A7F1D #721D7F
analogous
#5B7F1D #2A7F1D #1D7F41
triadic
#2A7F1D #1D2A7F #7F1D2A
tetradic
#2A7F1D #1D5B7F #721D7F #7F411D
square
#2A7F1D #1D5B7F #721D7F #7F411D
split-complementary
#2A7F1D #411D7F #7F1D5B
monochromatic
#091B06 #1A4D12 #2A7F1D #3AB128 #56D442
Accessibility & contrast
On white
5.06
#2A7F1D on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.15
#2A7F1D on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #2A7F1D
5.06:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2A7F1D | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2A7F1D | 1.00 | 5.06 | 4.15 | 5.06 |
| #FFFFFF | 5.06 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.15 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.06 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#827309
Deuteranopia (green-blind)
#786C27
Tritanopia (blue-blind)
#1A7B6C
Achromatopsia (no color)
#6F6F6F
Design tokens & code
CSS
--color: #2a7f1d; /* rgb */ color: rgb(42, 127, 29); /* oklch */ color: oklch(52.6% 0.155 141.2);
Tailwind
colors: {
custom: {
50: '#70a560',
500: '#2a7f1d',
950: '#000000',
},
}SCSS
$custom: #2a7f1d; $custom-light: #70a560; $custom-dark: #000000;
JSON
{
"hex": "#2a7f1d",
"rgb": {
"r": 42,
"g": 127,
"b": 29
},
"hsl": {
"h": 112.041,
"s": 62.821,
"l": 30.588
},
"oklch": {
"l": 0.52559,
"c": 0.15474,
"h": 141.2
},
"luminance": 0.1576
}Semantic roles & 50–950 ramp
primary
#2A7F1D
secondary
#A445B2
accent
#42E6D0
background
#F7FAF5
surface
#EDF4EA
border
#C8CEC6
text
#080F05
muted
#7B7F79