#520D48#520D48

#520D48 is a dark, vivid purple. Relative luminance 0.025; OKLCH L 31.0% C 0.121 H 334.9°. Best body text is #FFFFFF at 13.91:1 contrast (WCAG AA passes).

Color values

HEX#520D48
RGBrgb(82, 13, 72)
HSLhsl(309, 73%, 19%)
HSVhsv(309, 84%, 32%)
CMYKcmyk(0%, 84.1%, 12.2%, 67.8%)
CIE-LABlab(18.14, 37.56, -18.77)
CIE-LCHlch(18.14, 41.99, 333.45°)
OKLaboklab(31.04% 0.1096 -0.0514)
OKLCHoklch(31.04% 0.121 334.9)
XYZxyz(4.7934, 2.5500, 6.3694)
Luminance0.0255 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#520D48 #0D5217
analogous
#390D52 #520D48 #520D25
triadic
#520D48 #48520D #0D4852
tetradic
#520D48 #52390D #0D5217 #0D2552
square
#520D48 #52390D #0D5217 #0D2552
split-complementary
#520D48 #25520D #0D5239
monochromatic
#1A0417 #1D051A #520D48 #871576 #BC1EA5

Accessibility & contrast

On white

13.91
#520D48 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.51
#520D48 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #520D48
13.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##520D48#FFFFFF#000000##FFFFFF
##520D481.0013.911.5113.91
#FFFFFF13.911.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0C264A
Deuteranopia (green-blind)
#263046
Tritanopia (blue-blind)
#56132A
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #520d48;
/* rgb */ color: rgb(82, 13, 72);
/* oklch */ color: oklch(31.0% 0.121 334.9);
Tailwind
colors: {
  custom: {
    50: '#85557b',
    500: '#520d48',
    950: '#000000',
  },
}
SCSS
$custom: #520d48;
$custom-light: #85557b;
$custom-dark: #000000;
JSON
{
  "hex": "#520d48",
  "rgb": {
    "r": 82,
    "g": 13,
    "b": 72
  },
  "hsl": {
    "h": 308.696,
    "s": 72.632,
    "l": 18.627
  },
  "oklch": {
    "l": 0.31042,
    "c": 0.12104,
    "h": 334.9
  },
  "luminance": 0.0255
}

Semantic roles & 50–950 ramp

primary
#520D48
secondary
#2E8D3C
accent
#EF5338
background
#F8F5F7
surface
#F0E9EE
border
#CBC5C9
text
#0B0309
muted
#7C787B

Preview Lab

Preview with #520D48

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

Preview Lab → · Contrast checker → · Palette generator →

#520D48 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva