#520F51#520F51

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

Color values

HEX#520F51
RGBrgb(82, 15, 81)
HSLhsl(301, 69%, 19%)
HSVhsv(301, 82%, 32%)
CMYKcmyk(0%, 81.7%, 1.2%, 67.8%)
CIE-LABlab(18.93, 38.47, -23.68)
CIE-LCHlch(18.93, 45.18, 328.38°)
OKLaboklab(31.78% 0.1079 -0.0656)
OKLCHoklch(31.78% 0.126 328.7)
XYZxyz(5.1357, 2.7300, 8.0394)
Luminance0.0273 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#520F51 #0F5210
analogous
#320F52 #520F51 #520F30
triadic
#520F51 #51520F #0F5152
tetradic
#520F51 #52320F #0F5210 #0F3052
square
#520F51 #52320F #0F5210 #0F3052
split-complementary
#520F51 #30520F #0F5232
monochromatic
#1A051A #1E061E #520F51 #861884 #B922B7

Accessibility & contrast

On white

13.58
#520F51 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #520F51
13.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##520F51#FFFFFF#000000##FFFFFF
##520F511.0013.581.5513.58
#FFFFFF13.581.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.581.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #520f51;
/* rgb */ color: rgb(82, 15, 81);
/* oklch */ color: oklch(31.8% 0.126 328.7);
Tailwind
colors: {
  custom: {
    50: '#855682',
    500: '#520f51',
    950: '#000000',
  },
}
SCSS
$custom: #520f51;
$custom-light: #855682;
$custom-dark: #000000;
JSON
{
  "hex": "#520f51",
  "rgb": {
    "r": 82,
    "g": 15,
    "b": 81
  },
  "hsl": {
    "h": 300.896,
    "s": 69.072,
    "l": 19.02
  },
  "oklch": {
    "l": 0.31782,
    "c": 0.12627,
    "h": 328.7
  },
  "luminance": 0.0273
}

Semantic roles & 50–950 ramp

primary
#520F51
secondary
#318C32
accent
#EC3F3C
background
#F8F5F8
surface
#F0E9EF
border
#CBC5CA
text
#0B030A
muted
#7C787C

Preview Lab

Preview with #520F51

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

Preview Lab → · Contrast checker → · Palette generator →

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