#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
RGBrgb(32, 84, 47)
HSLhsl(137, 45%, 23%)
HSVhsv(137, 62%, 33%)
CMYKcmyk(61.9%, 0%, 44%, 67.1%)
CIE-LABlab(31.47, -26.74, 16.56)
CIE-LCHlch(31.47, 31.45, 148.22°)
OKLaboklab(40% -0.0724 0.0411)
OKLCHoklch(40% 0.083 150.4)
XYZxyz(4.2788, 6.8526, 3.7860)
Luminance0.0685 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

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
##20542F1.008.862.378.86
#FFFFFF8.861.0021.001.00
#0000002.3721.001.0021.00
##FFFFFF8.861.0021.001.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

Preview Lab

Preview with #20542F

Body copy rendered with the generated semantic roles for this colour.

Preview Lab → · Contrast checker → · Palette generator →

#20542F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva