#12542F#12542F
#12542F is a dark, moderate green. Relative luminance 0.067; OKLCH L 39.5% C 0.090 H 153.8°. Best body text is #FFFFFF at 8.99:1 contrast (WCAG AA passes).
Color values
| HEX | #12542F |
|---|---|
| RGB | rgb(18, 84, 47) |
| HSL | hsl(146, 65%, 20%) |
| HSV | hsv(146, 79%, 33%) |
| CMYK | cmyk(78.6%, 0%, 44%, 67.1%) |
| CIE-LAB | lab(31.05, -29.88, 15.94) |
| CIE-LCH | lch(31.05, 33.87, 151.92°) |
| OKLab | oklab(39.54% -0.0806 0.0396) |
| OKLCH | oklch(39.54% 0.09 153.8) |
| XYZ | xyz(3.9325, 6.6740, 3.7697) |
| Luminance | 0.0667 (WCAG relative) |
| Temperature | neutral |
| Family | green |
Closest named colors
Spruce
#0A5F38
ΔE00 3.63
Pine
#2B5D34
ΔE00 4.03
Pine Green
#0A481E
ΔE00 4.30
Evergreen
#05472A
ΔE00 4.48
Hunter Green
#355E3B
ΔE00 5.35
Forest Green
#2D5A27
ΔE00 5.64
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#12542F #541237
analogous
#165412 #12542F #125450
triadic
#12542F #2F1254 #542F12
tetradic
#12542F #121654 #541237 #545012
square
#12542F #121654 #541237 #545012
split-complementary
#12542F #501254 #541216
monochromatic
#05190E #072213 #12542F #1D864B #28B967
Accessibility & contrast
On white
8.99
#12542F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.33
#12542F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #12542F
8.99:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##12542F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##12542F | 1.00 | 8.99 | 2.33 | 8.99 |
| #FFFFFF | 8.99 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.33 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 8.99 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#544C2C
Deuteranopia (green-blind)
#4C4731
Tritanopia (blue-blind)
#00534B
Achromatopsia (no color)
#494949
Design tokens & code
CSS
--color: #12542f; /* rgb */ color: rgb(18, 84, 47); /* oklch */ color: oklch(39.5% 0.090 153.8);
Tailwind
colors: {
custom: {
50: '#5b8568',
500: '#12542f',
950: '#000000',
},
}SCSS
$custom: #12542f; $custom-light: #5b8568; $custom-dark: #000000;
JSON
{
"hex": "#12542f",
"rgb": {
"r": 18,
"g": 84,
"b": 47
},
"hsl": {
"h": 146.364,
"s": 64.706,
"l": 20
},
"oklch": {
"l": 0.39544,
"c": 0.08979,
"h": 153.8
},
"luminance": 0.06674
}Semantic roles & 50–950 ramp
primary
#12542F
secondary
#8D3566
accent
#409EE8
background
#F5F8F6
surface
#E9EFEB
border
#C5CAC6
text
#040B06
muted
#797C7A