#2A6A12#2A6A12
#2A6A12 is a mid, vivid green. Relative luminance 0.108; OKLCH L 46.5% C 0.135 H 139.0°. Best body text is #FFFFFF at 6.63:1 contrast (WCAG AA passes).
Color values
| HEX | #2A6A12 |
|---|---|
| RGB | rgb(42, 106, 18) |
| HSL | hsl(104, 71%, 24%) |
| HSV | hsv(104, 83%, 42%) |
| CMYK | cmyk(60.4%, 0%, 83%, 58.4%) |
| CIE-LAB | lab(39.32, -36.96, 39.79) |
| CIE-LCH | lch(39.32, 54.31, 132.89°) |
| OKLab | oklab(46.47% -0.1019 0.0885) |
| OKLCH | oklch(46.47% 0.135 139) |
| XYZ | xyz(6.2178, 10.8434, 2.3375) |
| Luminance | 0.1084 (WCAG relative) |
| Temperature | warm |
| Family | green |
Closest named colors
Darkgreen
#006400
ΔE00 3.46
Deep Green
#02590F
ΔE00 6.53
Tree Green
#2A7E19
ΔE00 6.84
Forest
#0B5509
ΔE00 7.27
Darkish Green
#287C37
ΔE00 7.60
Forest Green
#2D5A27
ΔE00 7.62
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2A6A12 #52126A
analogous
#566A12 #2A6A12 #126A26
triadic
#2A6A12 #122A6A #6A122A
tetradic
#2A6A12 #12566A #52126A #6A2612
square
#2A6A12 #12566A #52126A #6A2612
split-complementary
#2A6A12 #26126A #6A1256
monochromatic
#0A1A04 #153609 #2A6A12 #3F9E1B #53D324
Accessibility & contrast
On white
6.63
#2A6A12 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.17
#2A6A12 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #2A6A12
6.63:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2A6A12 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2A6A12 | 1.00 | 6.63 | 3.17 | 6.63 |
| #FFFFFF | 6.63 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.17 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.63 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#6D6000
Deuteranopia (green-blind)
#655B1C
Tritanopia (blue-blind)
#23665A
Achromatopsia (no color)
#5D5D5D
Design tokens & code
CSS
--color: #2a6a12; /* rgb */ color: rgb(42, 106, 18); /* oklch */ color: oklch(46.5% 0.135 139.0);
Tailwind
colors: {
custom: {
50: '#6c9558',
500: '#2a6a12',
950: '#000000',
},
}SCSS
$custom: #2a6a12; $custom-light: #6c9558; $custom-dark: #000000;
JSON
{
"hex": "#2a6a12",
"rgb": {
"r": 42,
"g": 106,
"b": 18
},
"hsl": {
"h": 103.636,
"s": 70.968,
"l": 24.314
},
"oklch": {
"l": 0.46466,
"c": 0.13495,
"h": 139
},
"luminance": 0.10844
}Semantic roles & 50–950 ramp
primary
#2A6A12
secondary
#8436A2
accent
#3AEEBD
background
#F6F9F5
surface
#ECF2E9
border
#C7CCC5
text
#070D04
muted
#7A7E79