#20121E#20121E

#20121E is a very dark, muted purple. Relative luminance 0.008; OKLCH L 20.7% C 0.032 H 331.8°. Best body text is #FFFFFF at 18.00:1 contrast (WCAG AA passes).

Color values

HEX#20121E
RGBrgb(32, 18, 30)
HSLhsl(309, 28%, 10%)
HSVhsv(309, 44%, 13%)
CMYKcmyk(0%, 43.8%, 6.2%, 87.5%)
CIE-LABlab(7.53, 9.81, -5.54)
CIE-LCHlch(7.53, 11.26, 330.56°)
OKLaboklab(20.67% 0.0279 -0.0149)
OKLCHoklch(20.67% 0.032 331.8)
XYZxyz(1.0463, 0.8335, 1.3338)
Luminance0.0083 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20121E #122014
analogous
#1B1220 #20121E #201217
triadic
#20121E #1E2012 #121E20
tetradic
#20121E #201B12 #122014 #121720
square
#20121E #201B12 #122014 #121720
split-complementary
#20121E #172012 #12201B
monochromatic
#140B12 #140B12 #20121E #472843 #6E3E67

Accessibility & contrast

On white

18.00
#20121E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.17
#20121E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #20121E
18.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20121E#FFFFFF#000000##FFFFFF
##20121E1.0018.001.1718.00
#FFFFFF18.001.0021.001.00
#0000001.1721.001.0021.00
##FFFFFF18.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#12151E
Deuteranopia (green-blind)
#15171E
Tritanopia (blue-blind)
#211316
Achromatopsia (no color)
#171717

Design tokens & code

CSS
--color: #20121e;
/* rgb */ color: rgb(32, 18, 30);
/* oklch */ color: oklch(20.7% 0.032 331.8);
Tailwind
colors: {
  custom: {
    50: '#5b5059',
    500: '#20121e',
    950: '#000000',
  },
}
SCSS
$custom: #20121e;
$custom-light: #5b5059;
$custom-dark: #000000;
JSON
{
  "hex": "#20121e",
  "rgb": {
    "r": 32,
    "g": 18,
    "b": 30
  },
  "hsl": {
    "h": 308.571,
    "s": 28,
    "l": 9.804
  },
  "oklch": {
    "l": 0.20665,
    "c": 0.03164,
    "h": 331.8
  },
  "luminance": 0.00833
}

Semantic roles & 50–950 ramp

primary
#20121E
secondary
#39553D
accent
#C47163
background
#F5F4F5
surface
#E9E7E9
border
#C5C3C5
text
#040203
muted
#797878

Preview Lab

Preview with #20121E

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

Preview Lab → · Contrast checker → · Palette generator →

#20121E Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva