#520C47#520C47

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

Color values

HEX#520C47
RGBrgb(82, 12, 71)
HSLhsl(309, 74%, 18%)
HSVhsv(309, 85%, 32%)
CMYKcmyk(0%, 85.4%, 13.4%, 67.8%)
CIE-LABlab(17.97, 37.71, -18.35)
CIE-LCHlch(17.97, 41.94, 334.06°)
OKLaboklab(30.9% 0.1105 -0.0501)
OKLCHoklch(30.9% 0.121 335.6)
XYZxyz(4.7486, 2.5122, 6.1948)
Luminance0.0251 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#520C47 #0C5217
analogous
#3A0C52 #520C47 #520C24
triadic
#520C47 #47520C #0C4752
tetradic
#520C47 #523A0C #0C5217 #0C2452
square
#520C47 #523A0C #0C5217 #0C2452
split-complementary
#520C47 #24520C #0C523A
monochromatic
#1B0417 #1D0419 #520C47 #871475 #BD1CA3

Accessibility & contrast

On white

13.98
#520C47 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #520C47
13.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##520C47#FFFFFF#000000##FFFFFF
##520C471.0013.981.5013.98
#FFFFFF13.981.0021.001.00
#0000001.5021.001.0021.00
##FFFFFF13.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0C2549
Deuteranopia (green-blind)
#263045
Tritanopia (blue-blind)
#571229
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #520c47;
/* rgb */ color: rgb(82, 12, 71);
/* oklch */ color: oklch(30.9% 0.121 335.6);
Tailwind
colors: {
  custom: {
    50: '#86557a',
    500: '#520c47',
    950: '#000000',
  },
}
SCSS
$custom: #520c47;
$custom-light: #86557a;
$custom-dark: #000000;
JSON
{
  "hex": "#520c47",
  "rgb": {
    "r": 82,
    "g": 12,
    "b": 71
  },
  "hsl": {
    "h": 309.429,
    "s": 74.468,
    "l": 18.431
  },
  "oklch": {
    "l": 0.30901,
    "c": 0.12133,
    "h": 335.6
  },
  "luminance": 0.02512
}

Semantic roles & 50–950 ramp

primary
#520C47
secondary
#2C8D3C
accent
#F15437
background
#F8F5F7
surface
#F0E9ED
border
#CBC5C8
text
#0B0309
muted
#7C787B

Preview Lab

Preview with #520C47

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

Preview Lab → · Contrast checker → · Palette generator →

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