#520D56#520D56

#520D56 is a dark, vivid purple. Relative luminance 0.028; OKLCH L 32.0% C 0.133 H 325.6°. Best body text is #FFFFFF at 13.54:1 contrast (WCAG AA passes).

Color values

HEX#520D56
RGBrgb(82, 13, 86)
HSLhsl(297, 74%, 19%)
HSVhsv(297, 85%, 34%)
CMYKcmyk(4.7%, 84.9%, 0%, 66.3%)
CIE-LABlab(19.03, 40.07, -26.90)
CIE-LCHlch(19.03, 48.26, 326.12°)
OKLaboklab(31.96% 0.1095 -0.0749)
OKLCHoklch(31.96% 0.133 325.6)
XYZxyz(5.3032, 2.7539, 9.0545)
Luminance0.0275 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#520D56 #11560D
analogous
#2E0D56 #520D56 #560D36
triadic
#520D56 #56520D #0D5652
tetradic
#520D56 #562E0D #11560D #0D3656
square
#520D56 #562E0D #11560D #0D3656
split-complementary
#520D56 #36560D #0D562E
monochromatic
#19041B #1F0521 #520D56 #85158B #B71DC0

Accessibility & contrast

On white

13.54
#520D56 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.55
#520D56 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #520D56
13.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##520D56#FFFFFF#000000##FFFFFF
##520D561.0013.541.5513.54
#FFFFFF13.541.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002958
Deuteranopia (green-blind)
#1E3154
Tritanopia (blue-blind)
#541B32
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #520d56;
/* rgb */ color: rgb(82, 13, 86);
/* oklch */ color: oklch(32.0% 0.133 325.6);
Tailwind
colors: {
  custom: {
    50: '#865686',
    500: '#520d56',
    950: '#000000',
  },
}
SCSS
$custom: #520d56;
$custom-light: #865686;
$custom-dark: #000000;
JSON
{
  "hex": "#520d56",
  "rgb": {
    "r": 82,
    "g": 13,
    "b": 86
  },
  "hsl": {
    "h": 296.712,
    "s": 73.737,
    "l": 19.412
  },
  "oklch": {
    "l": 0.31961,
    "c": 0.13272,
    "h": 325.6
  },
  "luminance": 0.02754
}

Semantic roles & 50–950 ramp

primary
#520D56
secondary
#34912E
accent
#F03742
background
#F8F5F8
surface
#F0E9EF
border
#CBC5CA
text
#0B030B
muted
#7C787C

Preview Lab

Preview with #520D56

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

Preview Lab → · Contrast checker → · Palette generator →

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