#2A5F12#2A5F12
#2A5F12 is a dark, vivid green. Relative luminance 0.087; OKLCH L 43.3% C 0.121 H 138.0°. Best body text is #FFFFFF at 7.65:1 contrast (WCAG AA passes).
Color values
| HEX | #2A5F12 |
|---|---|
| RGB | rgb(42, 95, 18) |
| HSL | hsl(101, 68%, 22%) |
| HSV | hsv(101, 81%, 37%) |
| CMYK | cmyk(55.8%, 0%, 81.1%, 62.7%) |
| CIE-LAB | lab(35.44, -32.44, 36.06) |
| CIE-LCH | lch(35.44, 48.51, 131.98°) |
| OKLab | oklab(43.27% -0.0897 0.0807) |
| OKLCH | oklch(43.27% 0.121 138) |
| XYZ | xyz(5.1561, 8.7199, 1.9836) |
| Luminance | 0.0872 (WCAG relative) |
| Temperature | warm |
| Family | green |
Closest named colors
Darkgreen
#006400
ΔE00 3.93
Deep Green
#02590F
ΔE00 4.08
Forest
#0B5509
ΔE00 4.26
Forest Green
#2D5A27
ΔE00 4.86
Navy Green
#35530A
ΔE00 5.20
Camouflage Green
#4B6113
ΔE00 6.87
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2A5F12 #47125F
analogous
#515F12 #2A5F12 #125F21
triadic
#2A5F12 #122A5F #5F122A
tetradic
#2A5F12 #12515F #47125F #5F2112
square
#2A5F12 #12515F #47125F #5F2112
split-complementary
#2A5F12 #21125F #5F1251
monochromatic
#0B1A05 #132C08 #2A5F12 #41921C #57C625
Accessibility & contrast
On white
7.65
#2A5F12 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.74
#2A5F12 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2A5F12
7.65:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2A5F12 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2A5F12 | 1.00 | 7.65 | 2.74 | 7.65 |
| #FFFFFF | 7.65 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.74 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.65 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#625603
Deuteranopia (green-blind)
#5B521A
Tritanopia (blue-blind)
#265B50
Achromatopsia (no color)
#535353
Design tokens & code
CSS
--color: #2a5f12; /* rgb */ color: rgb(42, 95, 18); /* oklch */ color: oklch(43.3% 0.121 138.0);
Tailwind
colors: {
custom: {
50: '#6a8d56',
500: '#2a5f12',
950: '#000000',
},
}SCSS
$custom: #2a5f12; $custom-light: #6a8d56; $custom-dark: #000000;
JSON
{
"hex": "#2a5f12",
"rgb": {
"r": 42,
"g": 95,
"b": 18
},
"hsl": {
"h": 101.299,
"s": 68.142,
"l": 22.157
},
"oklch": {
"l": 0.43268,
"c": 0.1207,
"h": 138
},
"luminance": 0.0872
}Semantic roles & 50–950 ramp
primary
#2A5F12
secondary
#793697
accent
#3DEBB5
background
#F6F8F5
surface
#EBF0E9
border
#C6CBC5
text
#070C03
muted
#7A7D78