#520C55#520C55

#520C55 is a dark, vivid purple. Relative luminance 0.027; OKLCH L 31.8% C 0.133 H 326.3°. Best body text is #FFFFFF at 13.61:1 contrast (WCAG AA passes).

Color values

HEX#520C55
RGBrgb(82, 12, 85)
HSLhsl(298, 75%, 19%)
HSVhsv(298, 86%, 33%)
CMYKcmyk(3.5%, 85.9%, 0%, 66.7%)
CIE-LABlab(18.86, 40.19, -26.50)
CIE-LCHlch(18.86, 48.14, 326.59°)
OKLaboklab(31.82% 0.1105 -0.0738)
OKLCHoklch(31.82% 0.133 326.3)
XYZxyz(5.2507, 2.7130, 8.8397)
Luminance0.0271 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#520C55 #0F550C
analogous
#2E0C55 #520C55 #550C34
triadic
#520C55 #55520C #0C5552
tetradic
#520C55 #552E0C #0F550C #0C3455
square
#520C55 #552E0C #0F550C #0C3455
split-complementary
#520C55 #34550C #0C552E
monochromatic
#1A041B #1E041F #520C55 #86148B #B91BC0

Accessibility & contrast

On white

13.61
#520C55 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #520C55
13.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##520C55#FFFFFF#000000##FFFFFF
##520C551.0013.611.5413.61
#FFFFFF13.611.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002857
Deuteranopia (green-blind)
#1F3153
Tritanopia (blue-blind)
#541A31
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #520c55;
/* rgb */ color: rgb(82, 12, 85);
/* oklch */ color: oklch(31.8% 0.133 326.3);
Tailwind
colors: {
  custom: {
    50: '#865585',
    500: '#520c55',
    950: '#000000',
  },
}
SCSS
$custom: #520c55;
$custom-light: #865585;
$custom-dark: #000000;
JSON
{
  "hex": "#520c55",
  "rgb": {
    "r": 82,
    "g": 12,
    "b": 85
  },
  "hsl": {
    "h": 297.534,
    "s": 75.258,
    "l": 19.02
  },
  "oklch": {
    "l": 0.31815,
    "c": 0.13284,
    "h": 326.3
  },
  "luminance": 0.02713
}

Semantic roles & 50–950 ramp

primary
#520C55
secondary
#31902D
accent
#F2363E
background
#F8F5F8
surface
#F0E9EF
border
#CBC5CA
text
#0B030B
muted
#7C787C

Preview Lab

Preview with #520C55

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

Preview Lab → · Contrast checker → · Palette generator →

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