#520C4A#520C4A

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

Color values

HEX#520C4A
RGBrgb(82, 12, 74)
HSLhsl(307, 74%, 18%)
HSVhsv(307, 85%, 32%)
CMYKcmyk(0%, 85.4%, 9.8%, 67.8%)
CIE-LABlab(18.15, 38.22, -20.14)
CIE-LCHlch(18.15, 43.20, 332.22°)
OKLaboklab(31.09% 0.1107 -0.0553)
OKLCHoklch(31.09% 0.124 333.5)
XYZxyz(4.8472, 2.5516, 6.7145)
Luminance0.0255 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#520C4A #0C5214
analogous
#370C52 #520C4A #520C27
triadic
#520C4A #4A520C #0C4A52
tetradic
#520C4A #52370C #0C5214 #0C2752
square
#520C4A #52370C #0C5214 #0C2752
split-complementary
#520C4A #27520C #0C5237
monochromatic
#1B0418 #1D041A #520C4A #87147A #BD1CAA

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##520C4A#FFFFFF#000000##FFFFFF
##520C4A1.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)
#09264C
Deuteranopia (green-blind)
#253048
Tritanopia (blue-blind)
#56142B
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #520c4a;
/* rgb */ color: rgb(82, 12, 74);
/* oklch */ color: oklch(31.1% 0.124 333.5);
Tailwind
colors: {
  custom: {
    50: '#85557d',
    500: '#520c4a',
    950: '#000000',
  },
}
SCSS
$custom: #520c4a;
$custom-light: #85557d;
$custom-dark: #000000;
JSON
{
  "hex": "#520c4a",
  "rgb": {
    "r": 82,
    "g": 12,
    "b": 74
  },
  "hsl": {
    "h": 306.857,
    "s": 74.468,
    "l": 18.431
  },
  "oklch": {
    "l": 0.31085,
    "c": 0.1237,
    "h": 333.5
  },
  "luminance": 0.02551
}

Semantic roles & 50–950 ramp

primary
#520C4A
secondary
#2C8D38
accent
#F14C37
background
#F8F5F7
surface
#F0E9EE
border
#CBC5C9
text
#0B0309
muted
#7C787B

Preview Lab

Preview with #520C4A

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

Preview Lab → · Contrast checker → · Palette generator →

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