#180820#180820

#180820 is a very dark, muted purple. Relative luminance 0.005; OKLCH L 17.4% C 0.052 H 313.1°. Best body text is #FFFFFF at 19.19:1 contrast (WCAG AA passes).

Color values

HEX#180820
RGBrgb(24, 8, 32)
HSLhsl(280, 60%, 8%)
HSVhsv(280, 75%, 13%)
CMYKcmyk(25%, 75%, 0%, 87.5%)
CIE-LABlab(4.27, 11.28, -12.13)
CIE-LCHlch(4.27, 16.56, 312.93°)
OKLaboklab(17.39% 0.0354 -0.0378)
OKLCHoklch(17.39% 0.052 313.1)
XYZxyz(0.7242, 0.4722, 1.4192)
Luminance0.0047 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#180820 #102008
analogous
#0C0820 #180820 #20081C
triadic
#180820 #201808 #082018
tetradic
#180820 #200C08 #102008 #081C20
square
#180820 #200C08 #102008 #081C20
split-complementary
#180820 #1C2008 #08200C
monochromatic
#120618 #120618 #180820 #3D1451 #612082

Accessibility & contrast

On white

19.19
#180820 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.09
#180820 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #180820
19.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##180820#FFFFFF#000000##FFFFFF
##1808201.0019.191.0919.19
#FFFFFF19.191.0021.001.00
#0000001.0921.001.0021.00
##FFFFFF19.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#030E21
Deuteranopia (green-blind)
#070F1F
Tritanopia (blue-blind)
#170C12
Achromatopsia (no color)
#0F0F0F

Design tokens & code

CSS
--color: #180820;
/* rgb */ color: rgb(24, 8, 32);
/* oklch */ color: oklch(17.4% 0.052 313.1);
Tailwind
colors: {
  custom: {
    50: '#544a5b',
    500: '#180820',
    950: '#000000',
  },
}
SCSS
$custom: #180820;
$custom-light: #544a5b;
$custom-dark: #000000;
JSON
{
  "hex": "#180820",
  "rgb": {
    "r": 24,
    "g": 8,
    "b": 32
  },
  "hsl": {
    "h": 280,
    "s": 60,
    "l": 7.843
  },
  "oklch": {
    "l": 0.1739,
    "c": 0.05184,
    "h": 313.1
  },
  "luminance": 0.00472
}

Semantic roles & 50–950 ramp

primary
#180820
secondary
#395E26
accent
#E34579
background
#F4F4F5
surface
#E7E7E9
border
#C3C3C5
text
#020104
muted
#787779

Preview Lab

Preview with #180820

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

Preview Lab → · Contrast checker → · Palette generator →

#180820 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva