#2A6F12#2A6F12
#2A6F12 is a mid, vivid green. Relative luminance 0.119; OKLCH L 47.9% C 0.141 H 139.4°. Best body text is #FFFFFF at 6.21:1 contrast (WCAG AA passes).
Color values
| HEX | #2A6F12 |
|---|---|
| RGB | rgb(42, 111, 18) |
| HSL | hsl(105, 72%, 25%) |
| HSV | hsv(105, 84%, 44%) |
| CMYK | cmyk(62.2%, 0%, 83.8%, 56.5%) |
| CIE-LAB | lab(41.06, -38.92, 41.43) |
| CIE-LCH | lch(41.06, 56.85, 133.21°) |
| OKLab | oklab(47.91% -0.1072 0.0919) |
| OKLCH | oklch(47.91% 0.141 139.4) |
| XYZ | xyz(6.7482, 11.9042, 2.5143) |
| Luminance | 0.1191 (WCAG relative) |
| Temperature | warm |
| Family | green |
Closest named colors
Darkgreen
#006400
ΔE00 4.50
Tree Green
#2A7E19
ΔE00 5.15
Green
#008000
ΔE00 6.30
Dark Grass Green
#388004
ΔE00 6.54
Darkish Green
#287C37
ΔE00 6.57
Deep Green
#02590F
ΔE00 8.02
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2A6F12 #57126F
analogous
#586F12 #2A6F12 #126F28
triadic
#2A6F12 #122A6F #6F122A
tetradic
#2A6F12 #12586F #57126F #6F2812
square
#2A6F12 #12586F #57126F #6F2812
split-complementary
#2A6F12 #28126F #6F1258
monochromatic
#0A1A04 #163A09 #2A6F12 #3EA41B #52D823
Accessibility & contrast
On white
6.21
#2A6F12 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.38
#2A6F12 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #2A6F12
6.21:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2A6F12 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2A6F12 | 1.00 | 6.21 | 3.38 | 6.21 |
| #FFFFFF | 6.21 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.38 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.21 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#726400
Deuteranopia (green-blind)
#6A5F1D
Tritanopia (blue-blind)
#226B5E
Achromatopsia (no color)
#616161
Design tokens & code
CSS
--color: #2a6f12; /* rgb */ color: rgb(42, 111, 18); /* oklch */ color: oklch(47.9% 0.141 139.4);
Tailwind
colors: {
custom: {
50: '#6d9959',
500: '#2a6f12',
950: '#000000',
},
}SCSS
$custom: #2a6f12; $custom-light: #6d9959; $custom-dark: #000000;
JSON
{
"hex": "#2a6f12",
"rgb": {
"r": 42,
"g": 111,
"b": 18
},
"hsl": {
"h": 104.516,
"s": 72.093,
"l": 25.294
},
"oklch": {
"l": 0.4791,
"c": 0.14119,
"h": 139.4
},
"luminance": 0.11905
}Semantic roles & 50–950 ramp
primary
#2A6F12
secondary
#8937A6
accent
#39EFC0
background
#F6F9F5
surface
#ECF2E9
border
#C7CCC5
text
#080E04
muted
#7A7E79