#520E49#520E49

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

Color values

HEX#520E49
RGBrgb(82, 14, 73)
HSLhsl(308, 71%, 19%)
HSVhsv(308, 83%, 32%)
CMYKcmyk(0%, 82.9%, 11%, 67.8%)
CIE-LABlab(18.32, 37.40, -19.18)
CIE-LCHlch(18.32, 42.03, 332.84°)
OKLaboklab(31.19% 0.1087 -0.0526)
OKLCHoklch(31.19% 0.121 334.2)
XYZxyz(4.8394, 2.5894, 6.5470)
Luminance0.0259 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#520E49 #0E5217
analogous
#390E52 #520E49 #520E27
triadic
#520E49 #49520E #0E4952
tetradic
#520E49 #52390E #0E5217 #0E2752
square
#520E49 #52390E #0E5217 #0E2752
split-complementary
#520E49 #27520E #0E5239
monochromatic
#1A0417 #1E051A #520E49 #861778 #BB20A6

Accessibility & contrast

On white

13.84
#520E49 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #520E49
13.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##520E49#FFFFFF#000000##FFFFFF
##520E491.0013.841.5213.84
#FFFFFF13.841.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0C264B
Deuteranopia (green-blind)
#263047
Tritanopia (blue-blind)
#56152B
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #520e49;
/* rgb */ color: rgb(82, 14, 73);
/* oklch */ color: oklch(31.2% 0.121 334.2);
Tailwind
colors: {
  custom: {
    50: '#85557c',
    500: '#520e49',
    950: '#000000',
  },
}
SCSS
$custom: #520e49;
$custom-light: #85557c;
$custom-dark: #000000;
JSON
{
  "hex": "#520e49",
  "rgb": {
    "r": 82,
    "g": 14,
    "b": 73
  },
  "hsl": {
    "h": 307.941,
    "s": 70.833,
    "l": 18.824
  },
  "oklch": {
    "l": 0.31186,
    "c": 0.12073,
    "h": 334.2
  },
  "luminance": 0.02589
}

Semantic roles & 50–950 ramp

primary
#520E49
secondary
#2F8C3C
accent
#EE523A
background
#F8F5F7
surface
#F0E9EE
border
#CBC5C9
text
#0B0309
muted
#7C787B

Preview Lab

Preview with #520E49

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

Preview Lab → · Contrast checker → · Palette generator →

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