#520D50#520D50

#520D50 is a dark, vivid purple. Relative luminance 0.027; OKLCH L 31.6% C 0.128 H 329.4°. Best body text is #FFFFFF at 13.71:1 contrast (WCAG AA passes).

Color values

HEX#520D50
RGBrgb(82, 13, 80)
HSLhsl(302, 73%, 19%)
HSVhsv(302, 84%, 32%)
CMYKcmyk(0%, 84.1%, 2.4%, 67.8%)
CIE-LABlab(18.63, 38.96, -23.47)
CIE-LCHlch(18.63, 45.48, 328.93°)
OKLaboklab(31.55% 0.1098 -0.065)
OKLCHoklch(31.55% 0.128 329.4)
XYZxyz(5.0715, 2.6613, 7.8344)
Luminance0.0266 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#520D50 #0D520F
analogous
#310D52 #520D50 #520D2D
triadic
#520D50 #50520D #0D5052
tetradic
#520D50 #52310D #0D520F #0D2D52
square
#520D50 #52310D #0D520F #0D2D52
split-complementary
#520D50 #2D520D #0D5231
monochromatic
#1A041A #1D051C #520D50 #871584 #BC1EB7

Accessibility & contrast

On white

13.71
#520D50 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.53
#520D50 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #520D50
13.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##520D50#FFFFFF#000000##FFFFFF
##520D501.0013.711.5313.71
#FFFFFF13.711.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#022852
Deuteranopia (green-blind)
#22314E
Tritanopia (blue-blind)
#55182E
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #520d50;
/* rgb */ color: rgb(82, 13, 80);
/* oklch */ color: oklch(31.6% 0.128 329.4);
Tailwind
colors: {
  custom: {
    50: '#855581',
    500: '#520d50',
    950: '#000000',
  },
}
SCSS
$custom: #520d50;
$custom-light: #855581;
$custom-dark: #000000;
JSON
{
  "hex": "#520d50",
  "rgb": {
    "r": 82,
    "g": 13,
    "b": 80
  },
  "hsl": {
    "h": 301.739,
    "s": 72.632,
    "l": 18.627
  },
  "oklch": {
    "l": 0.3155,
    "c": 0.12759,
    "h": 329.4
  },
  "luminance": 0.02661
}

Semantic roles & 50–950 ramp

primary
#520D50
secondary
#2E8D31
accent
#EF3E38
background
#F8F5F7
surface
#F0E9EE
border
#CBC5C9
text
#0B030A
muted
#7C787C

Preview Lab

Preview with #520D50

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

Preview Lab → · Contrast checker → · Palette generator →

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