#520E51#520E51

#520E51 is a dark, vivid purple. Relative luminance 0.027; OKLCH L 31.7% C 0.127 H 328.7°. Best body text is #FFFFFF at 13.63:1 contrast (WCAG AA passes).

Color values

HEX#520E51
RGBrgb(82, 14, 81)
HSLhsl(301, 71%, 19%)
HSVhsv(301, 83%, 32%)
CMYKcmyk(0%, 82.9%, 1.2%, 67.8%)
CIE-LABlab(18.81, 38.81, -23.87)
CIE-LCHlch(18.81, 45.57, 328.41°)
OKLaboklab(31.7% 0.1089 -0.0661)
OKLCHoklch(31.7% 0.127 328.7)
XYZxyz(5.1219, 2.7024, 8.0348)
Luminance0.0270 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#520E51 #0E520F
analogous
#310E52 #520E51 #520E2F
triadic
#520E51 #51520E #0E5152
tetradic
#520E51 #52310E #0E520F #0E2F52
square
#520E51 #52310E #0E520F #0E2F52
split-complementary
#520E51 #2F520E #0E5231
monochromatic
#1A041A #1E051D #520E51 #861785 #BB20B8

Accessibility & contrast

On white

13.63
#520E51 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#520E51 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #520E51
13.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##520E51#FFFFFF#000000##FFFFFF
##520E511.0013.631.5413.63
#FFFFFF13.631.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#022853
Deuteranopia (green-blind)
#22314F
Tritanopia (blue-blind)
#55192F
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #520e51;
/* rgb */ color: rgb(82, 14, 81);
/* oklch */ color: oklch(31.7% 0.127 328.7);
Tailwind
colors: {
  custom: {
    50: '#855682',
    500: '#520e51',
    950: '#000000',
  },
}
SCSS
$custom: #520e51;
$custom-light: #855682;
$custom-dark: #000000;
JSON
{
  "hex": "#520e51",
  "rgb": {
    "r": 82,
    "g": 14,
    "b": 81
  },
  "hsl": {
    "h": 300.882,
    "s": 70.833,
    "l": 18.824
  },
  "oklch": {
    "l": 0.31697,
    "c": 0.12738,
    "h": 328.7
  },
  "luminance": 0.02702
}

Semantic roles & 50–950 ramp

primary
#520E51
secondary
#2F8C31
accent
#EE3D3A
background
#F8F5F8
surface
#F0E9EF
border
#CBC5CA
text
#0B030A
muted
#7C787C

Preview Lab

Preview with #520E51

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

Preview Lab → · Contrast checker → · Palette generator →

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