#520D4F#520D4F

#520D4F is a dark, vivid purple. Relative luminance 0.026; OKLCH L 31.5% C 0.127 H 330.1°. Best body text is #FFFFFF at 13.73:1 contrast (WCAG AA passes).

Color values

HEX#520D4F
RGBrgb(82, 13, 79)
HSLhsl(303, 73%, 19%)
HSVhsv(303, 84%, 32%)
CMYKcmyk(0%, 84.1%, 3.7%, 67.8%)
CIE-LABlab(18.57, 38.78, -22.89)
CIE-LCHlch(18.57, 45.03, 329.44°)
OKLaboklab(31.48% 0.1098 -0.0633)
OKLCHoklch(31.48% 0.127 330.1)
XYZxyz(5.0349, 2.6466, 7.6413)
Luminance0.0265 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#520D4F #0D5210
analogous
#320D52 #520D4F #520D2C
triadic
#520D4F #4F520D #0D4F52
tetradic
#520D4F #52320D #0D5210 #0D2C52
square
#520D4F #52320D #0D5210 #0D2C52
split-complementary
#520D4F #2C520D #0D5232
monochromatic
#1A0419 #1D051C #520D4F #871582 #BC1EB5

Accessibility & contrast

On white

13.73
#520D4F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #520D4F
13.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##520D4F#FFFFFF#000000##FFFFFF
##520D4F1.0013.731.5313.73
#FFFFFF13.731.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#042751
Deuteranopia (green-blind)
#23304D
Tritanopia (blue-blind)
#55172E
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #520d4f;
/* rgb */ color: rgb(82, 13, 79);
/* oklch */ color: oklch(31.5% 0.127 330.1);
Tailwind
colors: {
  custom: {
    50: '#855580',
    500: '#520d4f',
    950: '#000000',
  },
}
SCSS
$custom: #520d4f;
$custom-light: #855580;
$custom-dark: #000000;
JSON
{
  "hex": "#520d4f",
  "rgb": {
    "r": 82,
    "g": 13,
    "b": 79
  },
  "hsl": {
    "h": 302.609,
    "s": 72.632,
    "l": 18.627
  },
  "oklch": {
    "l": 0.31484,
    "c": 0.12675,
    "h": 330.1
  },
  "luminance": 0.02646
}

Semantic roles & 50–950 ramp

primary
#520D4F
secondary
#2E8D32
accent
#EF4038
background
#F8F5F7
surface
#F0E9EE
border
#CBC5C9
text
#0B030A
muted
#7C787C

Preview Lab

Preview with #520D4F

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

Preview Lab → · Contrast checker → · Palette generator →

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