#520F50#520F50

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

Color values

HEX#520F50
RGBrgb(82, 15, 80)
HSLhsl(302, 69%, 19%)
HSVhsv(302, 82%, 32%)
CMYKcmyk(0%, 81.7%, 2.4%, 67.8%)
CIE-LABlab(18.86, 38.29, -23.11)
CIE-LCHlch(18.86, 44.72, 328.89°)
OKLaboklab(31.72% 0.1079 -0.0639)
OKLCHoklch(31.72% 0.125 329.4)
XYZxyz(5.0984, 2.7151, 7.8434)
Luminance0.0272 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#520F50 #0F5211
analogous
#330F52 #520F50 #520F2F
triadic
#520F50 #50520F #0F5052
tetradic
#520F50 #52330F #0F5211 #0F2F52
square
#520F50 #52330F #0F5211 #0F2F52
split-complementary
#520F50 #2F520F #0F5233
monochromatic
#1A0519 #1E061E #520F50 #861882 #B922B5

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##520F50#FFFFFF#000000##FFFFFF
##520F501.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)
#052852
Deuteranopia (green-blind)
#23314E
Tritanopia (blue-blind)
#55192F
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #520f50;
/* rgb */ color: rgb(82, 15, 80);
/* oklch */ color: oklch(31.7% 0.125 329.4);
Tailwind
colors: {
  custom: {
    50: '#855681',
    500: '#520f50',
    950: '#000000',
  },
}
SCSS
$custom: #520f50;
$custom-light: #855681;
$custom-dark: #000000;
JSON
{
  "hex": "#520f50",
  "rgb": {
    "r": 82,
    "g": 15,
    "b": 80
  },
  "hsl": {
    "h": 301.791,
    "s": 69.072,
    "l": 19.02
  },
  "oklch": {
    "l": 0.31716,
    "c": 0.12541,
    "h": 329.4
  },
  "luminance": 0.02715
}

Semantic roles & 50–950 ramp

primary
#520F50
secondary
#318C33
accent
#EC413C
background
#F8F5F7
surface
#F0E9EE
border
#CBC5C9
text
#0B030A
muted
#7C787C

Preview Lab

Preview with #520F50

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

Preview Lab → · Contrast checker → · Palette generator →

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