#2A7F17#2A7F17
#2A7F17 is a mid, vivid green. Relative luminance 0.157; OKLCH L 52.5% C 0.158 H 140.6°. Best body text is #FFFFFF at 5.06:1 contrast (WCAG AA passes).
Color values
| HEX | #2A7F17 |
|---|---|
| RGB | rgb(42, 127, 23) |
| HSL | hsl(109, 69%, 29%) |
| HSV | hsv(109, 82%, 50%) |
| CMYK | cmyk(66.9%, 0%, 81.9%, 50.2%) |
| CIE-LAB | lab(46.62, -44.60, 45.06) |
| CIE-LCH | lch(46.62, 63.40, 134.70°) |
| OKLab | oklab(52.52% -0.1221 0.1003) |
| OKLCH | oklch(52.52% 0.158 140.6) |
| XYZ | xyz(8.6984, 15.7320, 3.3886) |
| Luminance | 0.1573 (WCAG relative) |
| Temperature | neutral |
| Family | green |
Closest named colors
Tree Green
#2A7E19
ΔE00 0.45
Green
#008000
ΔE00 2.22
Dark Grass Green
#388004
ΔE00 2.60
Forestgreen (CSS)
#228B22
ΔE00 4.32
Darkish Green
#287C37
ΔE00 5.38
Emerald Green
#028F1E
ΔE00 5.79
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2A7F17 #6C177F
analogous
#5E7F17 #2A7F17 #177F38
triadic
#2A7F17 #172A7F #7F172A
tetradic
#2A7F17 #175E7F #6C177F #7F3817
square
#2A7F17 #175E7F #6C177F #7F3817
split-complementary
#2A7F17 #38177F #7F175E
monochromatic
#091A05 #194B0E #2A7F17 #3BB320 #54DB36
Accessibility & contrast
On white
5.06
#2A7F17 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.15
#2A7F17 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #2A7F17
5.06:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2A7F17 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2A7F17 | 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)
#837300
Deuteranopia (green-blind)
#786C23
Tritanopia (blue-blind)
#1B7B6C
Achromatopsia (no color)
#6E6E6E
Design tokens & code
CSS
--color: #2a7f17; /* rgb */ color: rgb(42, 127, 23); /* oklch */ color: oklch(52.5% 0.158 140.6);
Tailwind
colors: {
custom: {
50: '#70a55e',
500: '#2a7f17',
950: '#000000',
},
}SCSS
$custom: #2a7f17; $custom-light: #70a55e; $custom-dark: #000000;
JSON
{
"hex": "#2a7f17",
"rgb": {
"r": 42,
"g": 127,
"b": 23
},
"hsl": {
"h": 109.038,
"s": 69.333,
"l": 29.412
},
"oklch": {
"l": 0.52518,
"c": 0.15802,
"h": 140.6
},
"luminance": 0.15733
}Semantic roles & 50–950 ramp
primary
#2A7F17
secondary
#9E3EB4
accent
#3CECCC
background
#F7FAF5
surface
#EDF4E9
border
#C8CEC5
text
#080F05
muted
#7B7F79