#20542F#20542F
#20542F is a dark, moderate green. Relative luminance 0.069; OKLCH L 40.0% C 0.083 H 150.4°. Best body text is #FFFFFF at 8.86:1 contrast (WCAG AA passes).
Color values
| HEX | #20542F |
|---|---|
| RGB | rgb(32, 84, 47) |
| HSL | hsl(137, 45%, 23%) |
| HSV | hsv(137, 62%, 33%) |
| CMYK | cmyk(61.9%, 0%, 44%, 67.1%) |
| CIE-LAB | lab(31.47, -26.74, 16.56) |
| CIE-LCH | lch(31.47, 31.45, 148.22°) |
| OKLab | oklab(40% -0.0724 0.0411) |
| OKLCH | oklch(40% 0.083 150.4) |
| XYZ | xyz(4.2788, 6.8526, 3.7860) |
| Luminance | 0.0685 (WCAG relative) |
| Temperature | neutral |
| Family | green |
Closest named colors
Pine
#2B5D34
ΔE00 3.17
Hunter Green
#355E3B
ΔE00 4.23
Spruce
#0A5F38
ΔE00 4.36
Pine Green
#0A481E
ΔE00 4.43
Forest Green
#2D5A27
ΔE00 4.60
Evergreen
#05472A
ΔE00 5.02
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#20542F #542045
analogous
#2B5420 #20542F #205449
triadic
#20542F #2F2054 #542F20
tetradic
#20542F #202B54 #542045 #544920
square
#20542F #202B54 #542045 #544920
split-complementary
#20542F #492054 #54202B
monochromatic
#08160C #0F2816 #20542F #318048 #42AD61
Accessibility & contrast
On white
8.86
#20542F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.37
#20542F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #20542F
8.86:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##20542F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##20542F | 1.00 | 8.86 | 2.37 | 8.86 |
| #FFFFFF | 8.86 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.37 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 8.86 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#544D2C
Deuteranopia (green-blind)
#4D4831
Tritanopia (blue-blind)
#12534B
Achromatopsia (no color)
#4A4A4A
Design tokens & code
CSS
--color: #20542f; /* rgb */ color: rgb(32, 84, 47); /* oklch */ color: oklch(40.0% 0.083 150.4);
Tailwind
colors: {
custom: {
50: '#618468',
500: '#20542f',
950: '#000000',
},
}SCSS
$custom: #20542f; $custom-light: #618468; $custom-dark: #000000;
JSON
{
"hex": "#20542f",
"rgb": {
"r": 32,
"g": 84,
"b": 47
},
"hsl": {
"h": 137.308,
"s": 44.828,
"l": 22.745
},
"oklch": {
"l": 0.40004,
"c": 0.08325,
"h": 150.4
},
"luminance": 0.06853
}Semantic roles & 50–950 ramp
primary
#20542F
secondary
#894776
accent
#53AFD5
background
#F5F8F6
surface
#EAEFEB
border
#C6CAC6
text
#050B06
muted
#797C7A