#520D4D#520D4D

#520D4D is a dark, vivid purple. Relative luminance 0.026; OKLCH L 31.4% C 0.125 H 331.4°. Best body text is #FFFFFF at 13.78:1 contrast (WCAG AA passes).

Color values

HEX#520D4D
RGBrgb(82, 13, 77)
HSLhsl(304, 73%, 19%)
HSVhsv(304, 84%, 32%)
CMYKcmyk(0%, 84.1%, 6.1%, 67.8%)
CIE-LABlab(18.44, 38.42, -21.73)
CIE-LCHlch(18.44, 44.14, 330.51°)
OKLaboklab(31.35% 0.1098 -0.0599)
OKLCHoklch(31.35% 0.125 331.4)
XYZxyz(4.9632, 2.6179, 7.2636)
Luminance0.0262 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#520D4D #0D5212
analogous
#340D52 #520D4D #520D2A
triadic
#520D4D #4D520D #0D4D52
tetradic
#520D4D #52340D #0D5212 #0D2A52
square
#520D4D #52340D #0D5212 #0D2A52
split-complementary
#520D4D #2A520D #0D5234
monochromatic
#1A0419 #1D051B #520D4D #87157F #BC1EB0

Accessibility & contrast

On white

13.78
#520D4D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #520D4D
13.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##520D4D#FFFFFF#000000##FFFFFF
##520D4D1.0013.781.5213.78
#FFFFFF13.781.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#06274F
Deuteranopia (green-blind)
#24304B
Tritanopia (blue-blind)
#56162D
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #520d4d;
/* rgb */ color: rgb(82, 13, 77);
/* oklch */ color: oklch(31.4% 0.125 331.4);
Tailwind
colors: {
  custom: {
    50: '#85557f',
    500: '#520d4d',
    950: '#000000',
  },
}
SCSS
$custom: #520d4d;
$custom-light: #85557f;
$custom-dark: #000000;
JSON
{
  "hex": "#520d4d",
  "rgb": {
    "r": 82,
    "g": 13,
    "b": 77
  },
  "hsl": {
    "h": 304.348,
    "s": 72.632,
    "l": 18.627
  },
  "oklch": {
    "l": 0.31354,
    "c": 0.12509,
    "h": 331.4
  },
  "luminance": 0.02618
}

Semantic roles & 50–950 ramp

primary
#520D4D
secondary
#2E8D35
accent
#EF4638
background
#F8F5F7
surface
#F0E9EE
border
#CBC5C9
text
#0B030A
muted
#7C787C

Preview Lab

Preview with #520D4D

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

Preview Lab → · Contrast checker → · Palette generator →

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