#520B4C#520B4C

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

Color values

HEX#520B4C
RGBrgb(82, 11, 76)
HSLhsl(305, 76%, 18%)
HSVhsv(305, 87%, 32%)
CMYKcmyk(0%, 86.6%, 7.3%, 67.8%)
CIE-LABlab(18.17, 38.87, -21.48)
CIE-LCHlch(18.17, 44.41, 331.07°)
OKLaboklab(31.14% 0.1116 -0.0592)
OKLCHoklch(31.14% 0.126 332.1)
XYZxyz(4.9039, 2.5554, 7.0710)
Luminance0.0255 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#520B4C #0B5211
analogous
#340B52 #520B4C #520B28
triadic
#520B4C #4C520B #0B4C52
tetradic
#520B4C #52340B #0B5211 #0B2852
square
#520B4C #52340B #0B5211 #0B2852
split-complementary
#520B4C #28520B #0B5234
monochromatic
#1B0419 #1C041A #520B4C #88127E #BE19B0

Accessibility & contrast

On white

13.90
#520B4C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #520B4C
13.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##520B4C#FFFFFF#000000##FFFFFF
##520B4C1.0013.901.5113.90
#FFFFFF13.901.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#05264E
Deuteranopia (green-blind)
#24304A
Tritanopia (blue-blind)
#56142C
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #520b4c;
/* rgb */ color: rgb(82, 11, 76);
/* oklch */ color: oklch(31.1% 0.126 332.1);
Tailwind
colors: {
  custom: {
    50: '#86557e',
    500: '#520b4c',
    950: '#000000',
  },
}
SCSS
$custom: #520b4c;
$custom-light: #86557e;
$custom-dark: #000000;
JSON
{
  "hex": "#520b4c",
  "rgb": {
    "r": 82,
    "g": 11,
    "b": 76
  },
  "hsl": {
    "h": 305.07,
    "s": 76.344,
    "l": 18.235
  },
  "oklch": {
    "l": 0.31137,
    "c": 0.12632,
    "h": 332.1
  },
  "luminance": 0.02555
}

Semantic roles & 50–950 ramp

primary
#520B4C
secondary
#2B8E33
accent
#F34535
background
#F8F5F7
surface
#F0E9EE
border
#CBC5C9
text
#0B030A
muted
#7C787C

Preview Lab

Preview with #520B4C

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

Preview Lab → · Contrast checker → · Palette generator →

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