#12542B#12542B
#12542B is a dark, moderate green. Relative luminance 0.066; OKLCH L 39.5% C 0.094 H 151.5°. Best body text is #FFFFFF at 9.02:1 contrast (WCAG AA passes).
Color values
| HEX | #12542B |
|---|---|
| RGB | rgb(18, 84, 43) |
| HSL | hsl(143, 65%, 20%) |
| HSV | hsv(143, 79%, 33%) |
| CMYK | cmyk(78.6%, 0%, 48.8%, 67.1%) |
| CIE-LAB | lab(30.98, -30.70, 18.24) |
| CIE-LCH | lch(30.98, 35.72, 149.28°) |
| OKLab | oklab(39.46% -0.0826 0.0449) |
| OKLCH | oklch(39.46% 0.094 151.5) |
| XYZ | xyz(3.8555, 6.6432, 3.3641) |
| Luminance | 0.0664 (WCAG relative) |
| Temperature | neutral |
| Family | green |
Closest named colors
Pine
#2B5D34
ΔE00 3.84
Pine Green
#0A481E
ΔE00 3.85
Spruce
#0A5F38
ΔE00 3.90
Forest Green
#2D5A27
ΔE00 4.83
Evergreen
#05472A
ΔE00 5.09
Hunter Green
#355E3B
ΔE00 5.51
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#12542B #54123B
analogous
#1A5412 #12542B #12544C
triadic
#12542B #2B1254 #542B12
tetradic
#12542B #121A54 #54123B #544C12
square
#12542B #121A54 #54123B #544C12
split-complementary
#12542B #4C1254 #54121A
monochromatic
#05190D #072211 #12542B #1D8645 #28B95F
Accessibility & contrast
On white
9.02
#12542B on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.33
#12542B on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #12542B
9.02:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##12542B | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##12542B | 1.00 | 9.02 | 2.33 | 9.02 |
| #FFFFFF | 9.02 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.33 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.02 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#544C28
Deuteranopia (green-blind)
#4C472E
Tritanopia (blue-blind)
#00534A
Achromatopsia (no color)
#494949
Design tokens & code
CSS
--color: #12542b; /* rgb */ color: rgb(18, 84, 43); /* oklch */ color: oklch(39.5% 0.094 151.5);
Tailwind
colors: {
custom: {
50: '#5b8565',
500: '#12542b',
950: '#000000',
},
}SCSS
$custom: #12542b; $custom-light: #5b8565; $custom-dark: #000000;
JSON
{
"hex": "#12542b",
"rgb": {
"r": 18,
"g": 84,
"b": 43
},
"hsl": {
"h": 142.727,
"s": 64.706,
"l": 20
},
"oklch": {
"l": 0.39461,
"c": 0.09404,
"h": 151.5
},
"luminance": 0.06644
}Semantic roles & 50–950 ramp
primary
#12542B
secondary
#8D356C
accent
#40A8E8
background
#F5F8F6
surface
#E9EFEB
border
#C5CAC6
text
#040B05
muted
#797C7A