#2A5C12#2A5C12
#2A5C12 is a dark, moderate green. Relative luminance 0.082; OKLCH L 42.4% C 0.117 H 137.7°. Best body text is #FFFFFF at 7.96:1 contrast (WCAG AA passes).
Color values
| HEX | #2A5C12 |
|---|---|
| RGB | rgb(42, 92, 18) |
| HSL | hsl(101, 67%, 22%) |
| HSV | hsv(101, 80%, 36%) |
| CMYK | cmyk(54.3%, 0%, 80.4%, 63.9%) |
| CIE-LAB | lab(34.38, -31.16, 35.02) |
| CIE-LCH | lch(34.38, 46.88, 131.66°) |
| OKLab | oklab(42.39% -0.0863 0.0785) |
| OKLCH | oklch(42.39% 0.117 137.7) |
| XYZ | xyz(4.8910, 8.1898, 1.8952) |
| Luminance | 0.0819 (WCAG relative) |
| Temperature | warm |
| Family | green |
Closest named colors
Forest
#0B5509
ΔE00 3.72
Deep Green
#02590F
ΔE00 3.85
Forest Green
#2D5A27
ΔE00 4.34
Navy Green
#35530A
ΔE00 4.43
Darkgreen
#006400
ΔE00 4.64
Bottle Green
#044A05
ΔE00 6.48
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2A5C12 #44125C
analogous
#4F5C12 #2A5C12 #125C1F
triadic
#2A5C12 #122A5C #5C122A
tetradic
#2A5C12 #124F5C #44125C #5C1F12
square
#2A5C12 #124F5C #44125C #5C1F12
split-complementary
#2A5C12 #1F125C #5C124F
monochromatic
#0C1A05 #132908 #2A5C12 #418F1C #59C226
Accessibility & contrast
On white
7.96
#2A5C12 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.64
#2A5C12 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2A5C12
7.96:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2A5C12 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2A5C12 | 1.00 | 7.96 | 2.64 | 7.96 |
| #FFFFFF | 7.96 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.64 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.96 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#5F5304
Deuteranopia (green-blind)
#594F1A
Tritanopia (blue-blind)
#26584E
Achromatopsia (no color)
#515151
Design tokens & code
CSS
--color: #2a5c12; /* rgb */ color: rgb(42, 92, 18); /* oklch */ color: oklch(42.4% 0.117 137.7);
Tailwind
colors: {
custom: {
50: '#6a8b56',
500: '#2a5c12',
950: '#000000',
},
}SCSS
$custom: #2a5c12; $custom-light: #6a8b56; $custom-dark: #000000;
JSON
{
"hex": "#2a5c12",
"rgb": {
"r": 42,
"g": 92,
"b": 18
},
"hsl": {
"h": 100.541,
"s": 67.273,
"l": 21.569
},
"oklch": {
"l": 0.42391,
"c": 0.11666,
"h": 137.7
},
"luminance": 0.0819
}Semantic roles & 50–950 ramp
primary
#2A5C12
secondary
#763594
accent
#3EEAB2
background
#F6F8F5
surface
#EBF0E9
border
#C6CBC5
text
#070C03
muted
#7A7D78