#2A6A17#2A6A17
#2A6A17 is a mid, vivid green. Relative luminance 0.109; OKLCH L 46.5% C 0.132 H 139.6°. Best body text is #FFFFFF at 6.62:1 contrast (WCAG AA passes).
Color values
| HEX | #2A6A17 |
|---|---|
| RGB | rgb(42, 106, 23) |
| HSL | hsl(106, 64%, 25%) |
| HSV | hsv(106, 78%, 42%) |
| CMYK | cmyk(60.4%, 0%, 78.3%, 58.4%) |
| CIE-LAB | lab(39.35, -36.61, 38.00) |
| CIE-LCH | lch(39.35, 52.77, 133.93°) |
| OKLab | oklab(46.5% -0.1006 0.0855) |
| OKLCH | oklch(46.5% 0.132 139.6) |
| XYZ | xyz(6.2633, 10.8616, 2.5769) |
| Luminance | 0.1086 (WCAG relative) |
| Temperature | neutral |
| Family | green |
Closest named colors
Darkgreen
#006400
ΔE00 3.55
Deep Green
#02590F
ΔE00 6.32
Tree Green
#2A7E19
ΔE00 6.92
Forest
#0B5509
ΔE00 7.14
Forest Green
#2D5A27
ΔE00 7.20
Darkish Green
#287C37
ΔE00 7.24
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2A6A17 #57176A
analogous
#536A17 #2A6A17 #176A2D
triadic
#2A6A17 #172A6A #6A172A
tetradic
#2A6A17 #17536A #57176A #6A2D17
square
#2A6A17 #17536A #57176A #6A2D17
split-complementary
#2A6A17 #2D176A #6A1753
monochromatic
#0A1905 #16380C #2A6A17 #3E9C22 #52CF2D
Accessibility & contrast
On white
6.62
#2A6A17 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.17
#2A6A17 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #2A6A17
6.62:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2A6A17 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2A6A17 | 1.00 | 6.62 | 3.17 | 6.62 |
| #FFFFFF | 6.62 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.17 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.62 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#6D6007
Deuteranopia (green-blind)
#655B20
Tritanopia (blue-blind)
#23665A
Achromatopsia (no color)
#5D5D5D
Design tokens & code
CSS
--color: #2a6a17; /* rgb */ color: rgb(42, 106, 23); /* oklch */ color: oklch(46.5% 0.132 139.6);
Tailwind
colors: {
custom: {
50: '#6c955a',
500: '#2a6a17',
950: '#000000',
},
}SCSS
$custom: #2a6a17; $custom-light: #6c955a; $custom-dark: #000000;
JSON
{
"hex": "#2a6a17",
"rgb": {
"r": 42,
"g": 106,
"b": 23
},
"hsl": {
"h": 106.265,
"s": 64.341,
"l": 25.294
},
"oklch": {
"l": 0.46501,
"c": 0.13207,
"h": 139.6
},
"luminance": 0.10862
}Semantic roles & 50–950 ramp
primary
#2A6A17
secondary
#893DA0
accent
#40E7C1
background
#F6F9F5
surface
#ECF2E9
border
#C7CCC5
text
#070D04
muted
#7A7E79