#2A6F17#2A6F17
#2A6F17 is a mid, vivid green. Relative luminance 0.119; OKLCH L 47.9% C 0.138 H 139.9°. Best body text is #FFFFFF at 6.20:1 contrast (WCAG AA passes).
Color values
| HEX | #2A6F17 |
|---|---|
| RGB | rgb(42, 111, 23) |
| HSL | hsl(107, 66%, 26%) |
| HSV | hsv(107, 79%, 44%) |
| CMYK | cmyk(62.2%, 0%, 79.3%, 56.5%) |
| CIE-LAB | lab(41.09, -38.59, 39.73) |
| CIE-LCH | lch(41.09, 55.38, 134.16°) |
| OKLab | oklab(47.94% -0.1059 0.0891) |
| OKLCH | oklch(47.94% 0.138 139.9) |
| XYZ | xyz(6.7936, 11.9224, 2.7537) |
| Luminance | 0.1192 (WCAG relative) |
| Temperature | neutral |
| Family | green |
Closest named colors
Darkgreen
#006400
ΔE00 4.52
Tree Green
#2A7E19
ΔE00 5.20
Darkish Green
#287C37
ΔE00 6.14
Green
#008000
ΔE00 6.46
Dark Grass Green
#388004
ΔE00 6.80
Deep Green
#02590F
ΔE00 7.83
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2A6F17 #5C176F
analogous
#566F17 #2A6F17 #176F30
triadic
#2A6F17 #172A6F #6F172A
tetradic
#2A6F17 #17566F #5C176F #6F3017
square
#2A6F17 #17566F #5C176F #6F3017
split-complementary
#2A6F17 #30176F #6F1756
monochromatic
#0A1905 #173C0C #2A6F17 #3DA222 #51D32D
Accessibility & contrast
On white
6.20
#2A6F17 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.38
#2A6F17 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #2A6F17
6.20:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2A6F17 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2A6F17 | 1.00 | 6.20 | 3.38 | 6.20 |
| #FFFFFF | 6.20 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.38 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.20 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#726404
Deuteranopia (green-blind)
#6A5F21
Tritanopia (blue-blind)
#216B5E
Achromatopsia (no color)
#616161
Design tokens & code
CSS
--color: #2a6f17; /* rgb */ color: rgb(42, 111, 23); /* oklch */ color: oklch(47.9% 0.138 139.9);
Tailwind
colors: {
custom: {
50: '#6d995b',
500: '#2a6f17',
950: '#000000',
},
}SCSS
$custom: #2a6f17; $custom-light: #6d995b; $custom-dark: #000000;
JSON
{
"hex": "#2a6f17",
"rgb": {
"r": 42,
"g": 111,
"b": 23
},
"hsl": {
"h": 107.045,
"s": 65.672,
"l": 26.275
},
"oklch": {
"l": 0.47943,
"c": 0.13846,
"h": 139.9
},
"luminance": 0.11923
}Semantic roles & 50–950 ramp
primary
#2A6F17
secondary
#8E3DA5
accent
#3FE9C4
background
#F6F9F5
surface
#ECF2E9
border
#C7CCC5
text
#080E04
muted
#7A7E79