#2A7F2F#2A7F2F
#2A7F2F is a mid, vivid green. Relative luminance 0.159; OKLCH L 52.7% C 0.142 H 144.1°. Best body text is #FFFFFF at 5.03:1 contrast (WCAG AA passes).
Color values
| HEX | #2A7F2F |
|---|---|
| RGB | rgb(42, 127, 47) |
| HSL | hsl(124, 50%, 33%) |
| HSV | hsv(124, 67%, 50%) |
| CMYK | cmyk(66.9%, 0%, 63%, 50.2%) |
| CIE-LAB | lab(46.81, -42.36, 35.38) |
| CIE-LCH | lch(46.81, 55.19, 140.13°) |
| OKLab | oklab(52.74% -0.1148 0.083) |
| OKLCH | oklch(52.74% 0.142 144.1) |
| XYZ | xyz(9.0568, 15.8753, 5.2757) |
| Luminance | 0.1588 (WCAG relative) |
| Temperature | neutral |
| Family | green |
Closest named colors
Darkish Green
#287C37
ΔE00 2.19
Tree Green
#2A7E19
ΔE00 3.13
Jungle Green
#048243
ΔE00 4.70
Green
#008000
ΔE00 4.78
Forestgreen (CSS)
#228B22
ΔE00 5.03
Dark Grass Green
#388004
ΔE00 5.67
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2A7F2F #7F2A7A
analogous
#4F7F2A #2A7F2F #2A7F59
triadic
#2A7F2F #2F2A7F #7F2F2A
tetradic
#2A7F2F #2A4F7F #7F2A7A #7F592A
square
#2A7F2F #2A4F7F #7F2A7A #7F592A
split-complementary
#2A7F2F #592A7F #7F2A4F
monochromatic
#0C230D #1B511E #2A7F2F #39AD40 #5BC961
Accessibility & contrast
On white
5.03
#2A7F2F on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.18
#2A7F2F on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #2A7F2F
5.03:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2A7F2F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2A7F2F | 1.00 | 5.03 | 4.18 | 5.03 |
| #FFFFFF | 5.03 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.18 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.03 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#817326
Deuteranopia (green-blind)
#776C36
Tritanopia (blue-blind)
#157C6E
Achromatopsia (no color)
#6F6F6F
Design tokens & code
CSS
--color: #2a7f2f; /* rgb */ color: rgb(42, 127, 47); /* oklch */ color: oklch(52.7% 0.142 144.1);
Tailwind
colors: {
custom: {
50: '#6fa56b',
500: '#2a7f2f',
950: '#000000',
},
}SCSS
$custom: #2a7f2f; $custom-light: #6fa56b; $custom-dark: #000000;
JSON
{
"hex": "#2a7f2f",
"rgb": {
"r": 42,
"g": 127,
"b": 47
},
"hsl": {
"h": 123.529,
"s": 50.296,
"l": 33.137
},
"oklch": {
"l": 0.52736,
"c": 0.14166,
"h": 144.1
},
"luminance": 0.15876
}Semantic roles & 50–950 ramp
primary
#2A7F2F
secondary
#AE57A9
accent
#4ED2DA
background
#F7FAF6
surface
#EDF4EB
border
#C8CEC6
text
#080F07
muted
#7B7F7A