#2A5E12#2A5E12
#2A5E12 is a dark, moderate green. Relative luminance 0.085; OKLCH L 43.0% C 0.119 H 137.9°. Best body text is #FFFFFF at 7.75:1 contrast (WCAG AA passes).
Color values
| HEX | #2A5E12 |
|---|---|
| RGB | rgb(42, 94, 18) |
| HSL | hsl(101, 68%, 22%) |
| HSV | hsv(101, 81%, 37%) |
| CMYK | cmyk(55.3%, 0%, 80.9%, 63.1%) |
| CIE-LAB | lab(35.08, -32.02, 35.72) |
| CIE-LCH | lch(35.08, 47.97, 131.87°) |
| OKLab | oklab(42.98% -0.0886 0.08) |
| OKLCH | oklch(42.98% 0.119 137.9) |
| XYZ | xyz(5.0666, 8.5409, 1.9537) |
| Luminance | 0.0854 (WCAG relative) |
| Temperature | warm |
| Family | green |
Closest named colors
Deep Green
#02590F
ΔE00 3.98
Forest
#0B5509
ΔE00 4.06
Darkgreen
#006400
ΔE00 4.15
Forest Green
#2D5A27
ΔE00 4.67
Navy Green
#35530A
ΔE00 4.94
Camouflage Green
#4B6113
ΔE00 6.88
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2A5E12 #46125E
analogous
#505E12 #2A5E12 #125E20
triadic
#2A5E12 #122A5E #5E122A
tetradic
#2A5E12 #12505E #46125E #5E2012
square
#2A5E12 #12505E #46125E #5E2012
split-complementary
#2A5E12 #20125E #5E1250
monochromatic
#0B1A05 #132B08 #2A5E12 #41911C #58C526
Accessibility & contrast
On white
7.75
#2A5E12 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.71
#2A5E12 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2A5E12
7.75:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2A5E12 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2A5E12 | 1.00 | 7.75 | 2.71 | 7.75 |
| #FFFFFF | 7.75 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.71 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.75 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#615503
Deuteranopia (green-blind)
#5B511A
Tritanopia (blue-blind)
#265A50
Achromatopsia (no color)
#525252
Design tokens & code
CSS
--color: #2a5e12; /* rgb */ color: rgb(42, 94, 18); /* oklch */ color: oklch(43.0% 0.119 137.9);
Tailwind
colors: {
custom: {
50: '#6a8c56',
500: '#2a5e12',
950: '#000000',
},
}SCSS
$custom: #2a5e12; $custom-light: #6a8c56; $custom-dark: #000000;
JSON
{
"hex": "#2a5e12",
"rgb": {
"r": 42,
"g": 94,
"b": 18
},
"hsl": {
"h": 101.053,
"s": 67.857,
"l": 21.961
},
"oklch": {
"l": 0.42976,
"c": 0.11936,
"h": 137.9
},
"luminance": 0.08541
}Semantic roles & 50–950 ramp
primary
#2A5E12
secondary
#783596
accent
#3DEBB4
background
#F6F8F5
surface
#EBF0E9
border
#C6CBC5
text
#070C03
muted
#7A7D78