#520B4B#520B4B

#520B4B is a dark, vivid purple. Relative luminance 0.025; OKLCH L 31.1% C 0.126 H 332.7°. Best body text is #FFFFFF at 13.92:1 contrast (WCAG AA passes).

Color values

HEX#520B4B
RGBrgb(82, 11, 75)
HSLhsl(306, 76%, 18%)
HSVhsv(306, 87%, 32%)
CMYKcmyk(0%, 86.6%, 8.5%, 67.8%)
CIE-LABlab(18.11, 38.69, -20.89)
CIE-LCHlch(18.11, 43.97, 331.63°)
OKLaboklab(31.07% 0.1116 -0.0575)
OKLCHoklch(31.07% 0.126 332.7)
XYZxyz(4.8694, 2.5416, 6.8894)
Luminance0.0254 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#520B4B #0B5212
analogous
#350B52 #520B4B #520B27
triadic
#520B4B #4B520B #0B4B52
tetradic
#520B4B #52350B #0B5212 #0B2752
square
#520B4B #52350B #0B5212 #0B2752
split-complementary
#520B4B #27520B #0B5235
monochromatic
#1B0419 #1C041A #520B4B #88127C #BE19AE

Accessibility & contrast

On white

13.92
#520B4B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #520B4B
13.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##520B4B#FFFFFF#000000##FFFFFF
##520B4B1.0013.921.5113.92
#FFFFFF13.921.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#06264D
Deuteranopia (green-blind)
#243049
Tritanopia (blue-blind)
#56142B
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #520b4b;
/* rgb */ color: rgb(82, 11, 75);
/* oklch */ color: oklch(31.1% 0.126 332.7);
Tailwind
colors: {
  custom: {
    50: '#86557d',
    500: '#520b4b',
    950: '#000000',
  },
}
SCSS
$custom: #520b4b;
$custom-light: #86557d;
$custom-dark: #000000;
JSON
{
  "hex": "#520b4b",
  "rgb": {
    "r": 82,
    "g": 11,
    "b": 75
  },
  "hsl": {
    "h": 305.915,
    "s": 76.344,
    "l": 18.235
  },
  "oklch": {
    "l": 0.31073,
    "c": 0.12551,
    "h": 332.7
  },
  "luminance": 0.02541
}

Semantic roles & 50–950 ramp

primary
#520B4B
secondary
#2B8E35
accent
#F34835
background
#F8F5F7
surface
#F0E9EE
border
#CBC5C9
text
#0B0309
muted
#7C787B

Preview Lab

Preview with #520B4B

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

Preview Lab → · Contrast checker → · Palette generator →

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