#520B4A#520B4A

#520B4A is a dark, vivid purple. Relative luminance 0.025; OKLCH L 31.0% C 0.125 H 333.4°. Best body text is #FFFFFF at 13.95:1 contrast (WCAG AA passes).

Color values

HEX#520B4A
RGBrgb(82, 11, 74)
HSLhsl(307, 76%, 18%)
HSVhsv(307, 87%, 32%)
CMYKcmyk(0%, 86.6%, 9.8%, 67.8%)
CIE-LABlab(18.04, 38.52, -20.30)
CIE-LCHlch(18.04, 43.55, 332.21°)
OKLaboklab(31.01% 0.1116 -0.0558)
OKLCHoklch(31.01% 0.125 333.4)
XYZxyz(4.8354, 2.5280, 6.7105)
Luminance0.0253 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#520B4A #0B5213
analogous
#360B52 #520B4A #520B26
triadic
#520B4A #4A520B #0B4A52
tetradic
#520B4A #52360B #0B5213 #0B2652
square
#520B4A #52360B #0B5213 #0B2652
split-complementary
#520B4A #26520B #0B5236
monochromatic
#1B0418 #1C0419 #520B4A #88127B #BE19AB

Accessibility & contrast

On white

13.95
#520B4A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.51
#520B4A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #520B4A
13.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##520B4A#FFFFFF#000000##FFFFFF
##520B4A1.0013.951.5113.95
#FFFFFF13.951.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#08264C
Deuteranopia (green-blind)
#253048
Tritanopia (blue-blind)
#56132A
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #520b4a;
/* rgb */ color: rgb(82, 11, 74);
/* oklch */ color: oklch(31.0% 0.125 333.4);
Tailwind
colors: {
  custom: {
    50: '#86547d',
    500: '#520b4a',
    950: '#000000',
  },
}
SCSS
$custom: #520b4a;
$custom-light: #86547d;
$custom-dark: #000000;
JSON
{
  "hex": "#520b4a",
  "rgb": {
    "r": 82,
    "g": 11,
    "b": 74
  },
  "hsl": {
    "h": 306.761,
    "s": 76.344,
    "l": 18.235
  },
  "oklch": {
    "l": 0.3101,
    "c": 0.12471,
    "h": 333.4
  },
  "luminance": 0.02528
}

Semantic roles & 50–950 ramp

primary
#520B4A
secondary
#2B8E36
accent
#F34A35
background
#F8F5F7
surface
#F0E9EE
border
#CBC5C9
text
#0B0309
muted
#7C787B

Preview Lab

Preview with #520B4A

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

Preview Lab → · Contrast checker → · Palette generator →

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