#520F55#520F55

#520F55 is a dark, vivid purple. Relative luminance 0.028; OKLCH L 32.1% C 0.130 H 326.2°. Best body text is #FFFFFF at 13.48:1 contrast (WCAG AA passes).

Color values

HEX#520F55
RGBrgb(82, 15, 85)
HSLhsl(297, 70%, 20%)
HSVhsv(297, 82%, 33%)
CMYKcmyk(3.5%, 82.4%, 0%, 66.7%)
CIE-LABlab(19.19, 39.22, -25.97)
CIE-LCHlch(19.19, 47.04, 326.49°)
OKLaboklab(32.05% 0.1078 -0.0722)
OKLCHoklch(32.05% 0.13 326.2)
XYZxyz(5.2901, 2.7917, 8.8528)
Luminance0.0279 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#520F55 #12550F
analogous
#2F0F55 #520F55 #550F35
triadic
#520F55 #55520F #0F5552
tetradic
#520F55 #552F0F #12550F #0F3555
square
#520F55 #552F0F #12550F #0F3555
split-complementary
#520F55 #35550F #0F552F
monochromatic
#19051A #200621 #520F55 #841889 #B621BD

Accessibility & contrast

On white

13.48
#520F55 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.56
#520F55 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #520F55
13.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##520F55#FFFFFF#000000##FFFFFF
##520F551.0013.481.5613.48
#FFFFFF13.481.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002957
Deuteranopia (green-blind)
#203153
Tritanopia (blue-blind)
#541B32
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #520f55;
/* rgb */ color: rgb(82, 15, 85);
/* oklch */ color: oklch(32.1% 0.130 326.2);
Tailwind
colors: {
  custom: {
    50: '#855685',
    500: '#520f55',
    950: '#000000',
  },
}
SCSS
$custom: #520f55;
$custom-light: #855685;
$custom-dark: #000000;
JSON
{
  "hex": "#520f55",
  "rgb": {
    "r": 82,
    "g": 15,
    "b": 85
  },
  "hsl": {
    "h": 297.429,
    "s": 70,
    "l": 19.608
  },
  "oklch": {
    "l": 0.32052,
    "c": 0.12975,
    "h": 326.2
  },
  "luminance": 0.02791
}

Semantic roles & 50–950 ramp

primary
#520F55
secondary
#358F31
accent
#ED3B43
background
#F8F5F8
surface
#F0E9EF
border
#CBC5CA
text
#0B030B
muted
#7C787C

Preview Lab

Preview with #520F55

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

Preview Lab → · Contrast checker → · Palette generator →

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