#2A5B17#2A5B17
#2A5B17 is a dark, moderate green. Relative luminance 0.080; OKLCH L 42.1% C 0.112 H 138.4°. Best body text is #FFFFFF at 8.05:1 contrast (WCAG AA passes).
Color values
| HEX | #2A5B17 |
|---|---|
| RGB | rgb(42, 91, 23) |
| HSL | hsl(103, 60%, 22%) |
| HSV | hsv(103, 75%, 36%) |
| CMYK | cmyk(53.8%, 0%, 74.7%, 64.3%) |
| CIE-LAB | lab(34.06, -30.31, 32.62) |
| CIE-LCH | lch(34.06, 44.53, 132.89°) |
| OKLab | oklab(42.14% -0.0836 0.0743) |
| OKLCH | oklch(42.14% 0.112 138.4) |
| XYZ | xyz(4.8504, 8.0359, 2.1059) |
| Luminance | 0.0804 (WCAG relative) |
| Temperature | warm |
| Family | green |
Closest named colors
Forest Green
#2D5A27
ΔE00 3.41
Forest
#0B5509
ΔE00 3.54
Deep Green
#02590F
ΔE00 3.66
Navy Green
#35530A
ΔE00 4.52
Darkgreen
#006400
ΔE00 5.20
Bottle Green
#044A05
ΔE00 6.11
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2A5B17 #48175B
analogous
#4C5B17 #2A5B17 #175B26
triadic
#2A5B17 #172A5B #5B172A
tetradic
#2A5B17 #174C5B #48175B #5B2617
square
#2A5B17 #174C5B #48175B #5B2617
split-complementary
#2A5B17 #26175B #5B174C
monochromatic
#0B1806 #132A0B #2A5B17 #418C23 #57BD30
Accessibility & contrast
On white
8.05
#2A5B17 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.61
#2A5B17 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2A5B17
8.05:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2A5B17 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2A5B17 | 1.00 | 8.05 | 2.61 | 8.05 |
| #FFFFFF | 8.05 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.61 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 8.05 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#5E530D
Deuteranopia (green-blind)
#584F1D
Tritanopia (blue-blind)
#26584D
Achromatopsia (no color)
#505050
Design tokens & code
CSS
--color: #2a5b17; /* rgb */ color: rgb(42, 91, 23); /* oklch */ color: oklch(42.1% 0.112 138.4);
Tailwind
colors: {
custom: {
50: '#698a58',
500: '#2a5b17',
950: '#000000',
},
}SCSS
$custom: #2a5b17; $custom-light: #698a58; $custom-dark: #000000;
JSON
{
"hex": "#2a5b17",
"rgb": {
"r": 42,
"g": 91,
"b": 23
},
"hsl": {
"h": 103.235,
"s": 59.649,
"l": 22.353
},
"oklch": {
"l": 0.42142,
"c": 0.11184,
"h": 138.4
},
"luminance": 0.08036
}Semantic roles & 50–950 ramp
primary
#2A5B17
secondary
#7A3C92
accent
#45E3B7
background
#F6F8F5
surface
#EBF0E9
border
#C6CBC5
text
#070C03
muted
#7A7D78