#521548#521548

#521548 is a dark, moderate purple. Relative luminance 0.028; OKLCH L 31.8% C 0.111 H 335.1°. Best body text is #FFFFFF at 13.46:1 contrast (WCAG AA passes).

Color values

HEX#521548
RGBrgb(82, 21, 72)
HSLhsl(310, 59%, 20%)
HSVhsv(310, 74%, 32%)
CMYKcmyk(0%, 74.4%, 12.2%, 67.8%)
CIE-LABlab(19.22, 34.51, -17.09)
CIE-LCHlch(19.22, 38.51, 333.66°)
OKLaboklab(31.82% 0.1006 -0.0466)
OKLCHoklch(31.82% 0.111 335.1)
XYZxyz(4.9176, 2.7985, 6.4108)
Luminance0.0280 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#521548 #15521F
analogous
#3D1552 #521548 #521529
triadic
#521548 #485215 #154852
tetradic
#521548 #523D15 #15521F #152952
square
#521548 #523D15 #15521F #152952
split-complementary
#521548 #295215 #15523D
monochromatic
#180615 #21091D #521548 #832173 #B32E9E

Accessibility & contrast

On white

13.46
#521548 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.56
#521548 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #521548
13.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##521548#FFFFFF#000000##FFFFFF
##5215481.0013.461.5613.46
#FFFFFF13.461.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#152949
Deuteranopia (green-blind)
#2A3246
Tritanopia (blue-blind)
#56192C
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #521548;
/* rgb */ color: rgb(82, 21, 72);
/* oklch */ color: oklch(31.8% 0.111 335.1);
Tailwind
colors: {
  custom: {
    50: '#85587b',
    500: '#521548',
    950: '#000000',
  },
}
SCSS
$custom: #521548;
$custom-light: #85587b;
$custom-dark: #000000;
JSON
{
  "hex": "#521548",
  "rgb": {
    "r": 82,
    "g": 21,
    "b": 72
  },
  "hsl": {
    "h": 309.836,
    "s": 59.223,
    "l": 20.196
  },
  "oklch": {
    "l": 0.31817,
    "c": 0.11086,
    "h": 335.1
  },
  "luminance": 0.02798
}

Semantic roles & 50–950 ramp

primary
#521548
secondary
#398A46
accent
#E25F45
background
#F8F5F7
surface
#EFE9ED
border
#CAC5C8
text
#0B0409
muted
#7C797B

Preview Lab

Preview with #521548

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

Preview Lab → · Contrast checker → · Palette generator →

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