#2A5A12#2A5A12
#2A5A12 is a dark, moderate green. Relative luminance 0.078; OKLCH L 41.8% C 0.114 H 137.4°. Best body text is #FFFFFF at 8.17:1 contrast (WCAG AA passes).
Color values
| HEX | #2A5A12 |
|---|---|
| RGB | rgb(42, 90, 18) |
| HSL | hsl(100, 67%, 21%) |
| HSV | hsv(100, 80%, 35%) |
| CMYK | cmyk(53.3%, 0%, 80%, 64.7%) |
| CIE-LAB | lab(33.66, -30.29, 34.32) |
| CIE-LCH | lch(33.66, 45.77, 131.43°) |
| OKLab | oklab(41.81% -0.0839 0.0771) |
| OKLCH | oklch(41.81% 0.114 137.4) |
| XYZ | xyz(4.7200, 7.8479, 1.8382) |
| Luminance | 0.0785 (WCAG relative) |
| Temperature | warm |
| Family | green |
Closest named colors
Forest
#0B5509
ΔE00 3.49
Deep Green
#02590F
ΔE00 3.84
Navy Green
#35530A
ΔE00 3.97
Forest Green
#2D5A27
ΔE00 4.09
Darkgreen
#006400
ΔE00 5.19
Bottle Green
#044A05
ΔE00 5.98
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2A5A12 #42125A
analogous
#4E5A12 #2A5A12 #125A1E
triadic
#2A5A12 #122A5A #5A122A
tetradic
#2A5A12 #124E5A #42125A #5A1E12
square
#2A5A12 #124E5A #42125A #5A1E12
split-complementary
#2A5A12 #1E125A #5A124E
monochromatic
#0C1A05 #122708 #2A5A12 #428D1C #5AC026
Accessibility & contrast
On white
8.17
#2A5A12 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.57
#2A5A12 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2A5A12
8.17:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2A5A12 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2A5A12 | 1.00 | 8.17 | 2.57 | 8.17 |
| #FFFFFF | 8.17 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.57 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 8.17 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#5D5204
Deuteranopia (green-blind)
#574E19
Tritanopia (blue-blind)
#27574C
Achromatopsia (no color)
#4F4F4F
Design tokens & code
CSS
--color: #2a5a12; /* rgb */ color: rgb(42, 90, 18); /* oklch */ color: oklch(41.8% 0.114 137.4);
Tailwind
colors: {
custom: {
50: '#698956',
500: '#2a5a12',
950: '#000000',
},
}SCSS
$custom: #2a5a12; $custom-light: #698956; $custom-dark: #000000;
JSON
{
"hex": "#2a5a12",
"rgb": {
"r": 42,
"g": 90,
"b": 18
},
"hsl": {
"h": 100,
"s": 66.667,
"l": 21.176
},
"oklch": {
"l": 0.41806,
"c": 0.11394,
"h": 137.4
},
"luminance": 0.07848
}Semantic roles & 50–950 ramp
primary
#2A5A12
secondary
#733593
accent
#3EEAB0
background
#F6F8F5
surface
#EBF0E9
border
#C6CBC5
text
#070B03
muted
#7A7C78