#520F56#520F56

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

Color values

HEX#520F56
RGBrgb(82, 15, 86)
HSLhsl(297, 70%, 20%)
HSVhsv(297, 83%, 34%)
CMYKcmyk(4.7%, 82.6%, 0%, 66.3%)
CIE-LABlab(19.26, 39.41, -26.54)
CIE-LCHlch(19.26, 47.52, 326.05°)
OKLaboklab(32.12% 0.1077 -0.0739)
OKLCHoklch(32.12% 0.131 325.6)
XYZxyz(5.3301, 2.8077, 9.0635)
Luminance0.0281 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#520F56 #13560F
analogous
#2F0F56 #520F56 #560F36
triadic
#520F56 #56520F #0F5652
tetradic
#520F56 #562F0F #13560F #0F3656
square
#520F56 #562F0F #13560F #0F3656
split-complementary
#520F56 #36560F #0F562F
monochromatic
#19051A #200622 #520F56 #84188A #B521BE

Accessibility & contrast

On white

13.45
#520F56 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #520F56
13.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##520F56#FFFFFF#000000##FFFFFF
##520F561.0013.451.5613.45
#FFFFFF13.451.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002958
Deuteranopia (green-blind)
#1F3154
Tritanopia (blue-blind)
#541C32
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #520f56;
/* rgb */ color: rgb(82, 15, 86);
/* oklch */ color: oklch(32.1% 0.131 325.6);
Tailwind
colors: {
  custom: {
    50: '#855786',
    500: '#520f56',
    950: '#000000',
  },
}
SCSS
$custom: #520f56;
$custom-light: #855786;
$custom-dark: #000000;
JSON
{
  "hex": "#520f56",
  "rgb": {
    "r": 82,
    "g": 15,
    "b": 86
  },
  "hsl": {
    "h": 296.62,
    "s": 70.297,
    "l": 19.804
  },
  "oklch": {
    "l": 0.32121,
    "c": 0.13063,
    "h": 325.6
  },
  "luminance": 0.02807
}

Semantic roles & 50–950 ramp

primary
#520F56
secondary
#369031
accent
#ED3B45
background
#F8F5F8
surface
#F0E9EF
border
#CBC5CA
text
#0B030B
muted
#7C787C

Preview Lab

Preview with #520F56

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

Preview Lab → · Contrast checker → · Palette generator →

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