#520D4A#520D4A

#520D4A is a dark, vivid purple. Relative luminance 0.026; OKLCH L 31.2% C 0.123 H 333.5°. Best body text is #FFFFFF at 13.86:1 contrast (WCAG AA passes).

Color values

HEX#520D4A
RGBrgb(82, 13, 74)
HSLhsl(307, 73%, 19%)
HSVhsv(307, 84%, 32%)
CMYKcmyk(0%, 84.1%, 9.8%, 67.8%)
CIE-LABlab(18.26, 37.90, -19.96)
CIE-LCHlch(18.26, 42.84, 332.23°)
OKLaboklab(31.17% 0.1097 -0.0548)
OKLCHoklch(31.17% 0.123 333.5)
XYZxyz(4.8597, 2.5765, 6.7186)
Luminance0.0258 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#520D4A #0D5215
analogous
#370D52 #520D4A #520D27
triadic
#520D4A #4A520D #0D4A52
tetradic
#520D4A #52370D #0D5215 #0D2752
square
#520D4A #52370D #0D5215 #0D2752
split-complementary
#520D4A #27520D #0D5237
monochromatic
#1A0418 #1D051A #520D4A #87157A #BC1EA9

Accessibility & contrast

On white

13.86
#520D4A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.52
#520D4A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #520D4A
13.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##520D4A#FFFFFF#000000##FFFFFF
##520D4A1.0013.861.5213.86
#FFFFFF13.861.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0A264C
Deuteranopia (green-blind)
#253048
Tritanopia (blue-blind)
#56142B
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #520d4a;
/* rgb */ color: rgb(82, 13, 74);
/* oklch */ color: oklch(31.2% 0.123 333.5);
Tailwind
colors: {
  custom: {
    50: '#85557d',
    500: '#520d4a',
    950: '#000000',
  },
}
SCSS
$custom: #520d4a;
$custom-light: #85557d;
$custom-dark: #000000;
JSON
{
  "hex": "#520d4a",
  "rgb": {
    "r": 82,
    "g": 13,
    "b": 74
  },
  "hsl": {
    "h": 306.957,
    "s": 72.632,
    "l": 18.627
  },
  "oklch": {
    "l": 0.31165,
    "c": 0.12264,
    "h": 333.5
  },
  "luminance": 0.02576
}

Semantic roles & 50–950 ramp

primary
#520D4A
secondary
#2E8D39
accent
#EF4E38
background
#F8F5F7
surface
#F0E9EE
border
#CBC5C9
text
#0B0309
muted
#7C787B

Preview Lab

Preview with #520D4A

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

Preview Lab → · Contrast checker → · Palette generator →

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