#520B48#520B48

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

Color values

HEX#520B48
RGBrgb(82, 11, 72)
HSLhsl(308, 76%, 18%)
HSVhsv(308, 87%, 32%)
CMYKcmyk(0%, 86.6%, 12.2%, 67.8%)
CIE-LABlab(17.93, 38.19, -19.11)
CIE-LCHlch(17.93, 42.70, 333.41°)
OKLaboklab(30.89% 0.1115 -0.0523)
OKLCHoklch(30.89% 0.123 334.9)
XYZxyz(4.7691, 2.5015, 6.3613)
Luminance0.0250 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#520B48 #0B5215
analogous
#380B52 #520B48 #520B24
triadic
#520B48 #48520B #0B4852
tetradic
#520B48 #52380B #0B5215 #0B2452
square
#520B48 #52380B #0B5215 #0B2452
split-complementary
#520B48 #24520B #0B5238
monochromatic
#1B0418 #1C0419 #520B48 #881277 #BE19A7

Accessibility & contrast

On white

14.00
#520B48 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #520B48
14.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##520B48#FFFFFF#000000##FFFFFF
##520B481.0014.001.5014.00
#FFFFFF14.001.0021.001.00
#0000001.5021.001.0021.00
##FFFFFF14.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0A254A
Deuteranopia (green-blind)
#262F46
Tritanopia (blue-blind)
#561229
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #520b48;
/* rgb */ color: rgb(82, 11, 72);
/* oklch */ color: oklch(30.9% 0.123 334.9);
Tailwind
colors: {
  custom: {
    50: '#86547b',
    500: '#520b48',
    950: '#000000',
  },
}
SCSS
$custom: #520b48;
$custom-light: #86547b;
$custom-dark: #000000;
JSON
{
  "hex": "#520b48",
  "rgb": {
    "r": 82,
    "g": 11,
    "b": 72
  },
  "hsl": {
    "h": 308.451,
    "s": 76.344,
    "l": 18.235
  },
  "oklch": {
    "l": 0.30886,
    "c": 0.12313,
    "h": 334.9
  },
  "luminance": 0.02501
}

Semantic roles & 50–950 ramp

primary
#520B48
secondary
#2B8E39
accent
#F35035
background
#F8F5F7
surface
#F0E9EE
border
#CBC5C9
text
#0B0309
muted
#7C787B

Preview Lab

Preview with #520B48

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

Preview Lab → · Contrast checker → · Palette generator →

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