#520B49#520B49

#520B49 is a dark, vivid purple. Relative luminance 0.025; OKLCH L 30.9% C 0.124 H 334.1°. Best body text is #FFFFFF at 13.97:1 contrast (WCAG AA passes).

Color values

HEX#520B49
RGBrgb(82, 11, 73)
HSLhsl(308, 76%, 18%)
HSVhsv(308, 87%, 32%)
CMYKcmyk(0%, 86.6%, 11%, 67.8%)
CIE-LABlab(17.98, 38.35, -19.71)
CIE-LCHlch(17.98, 43.12, 332.80°)
OKLaboklab(30.95% 0.1115 -0.054)
OKLCHoklch(30.95% 0.124 334.1)
XYZxyz(4.8020, 2.5147, 6.5345)
Luminance0.0251 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#520B49 #0B5214
analogous
#370B52 #520B49 #520B25
triadic
#520B49 #49520B #0B4952
tetradic
#520B49 #52370B #0B5214 #0B2552
square
#520B49 #52370B #0B5214 #0B2552
split-complementary
#520B49 #25520B #0B5237
monochromatic
#1B0418 #1C0419 #520B49 #881279 #BE19A9

Accessibility & contrast

On white

13.97
#520B49 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.50
#520B49 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #520B49
13.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##520B49#FFFFFF#000000##FFFFFF
##520B491.0013.971.5013.97
#FFFFFF13.971.0021.001.00
#0000001.5021.001.0021.00
##FFFFFF13.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#09254B
Deuteranopia (green-blind)
#253047
Tritanopia (blue-blind)
#56132A
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #520b49;
/* rgb */ color: rgb(82, 11, 73);
/* oklch */ color: oklch(30.9% 0.124 334.1);
Tailwind
colors: {
  custom: {
    50: '#86547c',
    500: '#520b49',
    950: '#000000',
  },
}
SCSS
$custom: #520b49;
$custom-light: #86547c;
$custom-dark: #000000;
JSON
{
  "hex": "#520b49",
  "rgb": {
    "r": 82,
    "g": 11,
    "b": 73
  },
  "hsl": {
    "h": 307.606,
    "s": 76.344,
    "l": 18.235
  },
  "oklch": {
    "l": 0.30947,
    "c": 0.12392,
    "h": 334.1
  },
  "luminance": 0.02514
}

Semantic roles & 50–950 ramp

primary
#520B49
secondary
#2B8E38
accent
#F34D35
background
#F8F5F7
surface
#F0E9EE
border
#CBC5C9
text
#0B0309
muted
#7C787B

Preview Lab

Preview with #520B49

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

Preview Lab → · Contrast checker → · Palette generator →

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