#2A6C12#2A6C12
#2A6C12 is a mid, vivid green. Relative luminance 0.113; OKLCH L 47.0% C 0.137 H 139.2°. Best body text is #FFFFFF at 6.46:1 contrast (WCAG AA passes).
Color values
| HEX | #2A6C12 |
|---|---|
| RGB | rgb(42, 108, 18) |
| HSL | hsl(104, 71%, 25%) |
| HSV | hsv(104, 83%, 42%) |
| CMYK | cmyk(61.1%, 0%, 83.3%, 57.6%) |
| CIE-LAB | lab(40.02, -37.75, 40.45) |
| CIE-LCH | lch(40.02, 55.33, 133.03°) |
| OKLab | oklab(47.04% -0.104 0.0899) |
| OKLCH | oklch(47.04% 0.137 139.2) |
| XYZ | xyz(6.4263, 11.2605, 2.4070) |
| Luminance | 0.1126 (WCAG relative) |
| Temperature | warm |
| Family | green |
Closest named colors
Darkgreen
#006400
ΔE00 3.81
Tree Green
#2A7E19
ΔE00 6.16
Deep Green
#02590F
ΔE00 7.11
Darkish Green
#287C37
ΔE00 7.16
Green
#008000
ΔE00 7.29
Dark Grass Green
#388004
ΔE00 7.51
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2A6C12 #54126C
analogous
#576C12 #2A6C12 #126C27
triadic
#2A6C12 #122A6C #6C122A
tetradic
#2A6C12 #12576C #54126C #6C2712
square
#2A6C12 #12576C #54126C #6C2712
split-complementary
#2A6C12 #27126C #6C1257
monochromatic
#0A1A04 #163809 #2A6C12 #3EA01B #53D523
Accessibility & contrast
On white
6.46
#2A6C12 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.25
#2A6C12 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #2A6C12
6.46:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2A6C12 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2A6C12 | 1.00 | 6.46 | 3.25 | 6.46 |
| #FFFFFF | 6.46 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.25 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.46 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#6F6200
Deuteranopia (green-blind)
#675C1D
Tritanopia (blue-blind)
#23685B
Achromatopsia (no color)
#5E5E5E
Design tokens & code
CSS
--color: #2a6c12; /* rgb */ color: rgb(42, 108, 18); /* oklch */ color: oklch(47.0% 0.137 139.2);
Tailwind
colors: {
custom: {
50: '#6d9758',
500: '#2a6c12',
950: '#000000',
},
}SCSS
$custom: #2a6c12; $custom-light: #6d9758; $custom-dark: #000000;
JSON
{
"hex": "#2a6c12",
"rgb": {
"r": 42,
"g": 108,
"b": 18
},
"hsl": {
"h": 104,
"s": 71.429,
"l": 24.706
},
"oklch": {
"l": 0.47044,
"c": 0.13746,
"h": 139.2
},
"luminance": 0.11261
}Semantic roles & 50–950 ramp
primary
#2A6C12
secondary
#8636A3
accent
#3AEEBE
background
#F6F9F5
surface
#ECF2E9
border
#C7CCC5
text
#080D04
muted
#7B7E79