#520B56#520B56

#520B56 is a dark, vivid purple. Relative luminance 0.027; OKLCH L 31.8% C 0.135 H 325.7°. Best body text is #FFFFFF at 13.63:1 contrast (WCAG AA passes).

Color values

HEX#520B56
RGBrgb(82, 11, 86)
HSLhsl(297, 77%, 19%)
HSVhsv(297, 87%, 34%)
CMYKcmyk(4.7%, 87.2%, 0%, 66.3%)
CIE-LABlab(18.82, 40.67, -27.23)
CIE-LCHlch(18.82, 48.94, 326.19°)
OKLaboklab(31.81% 0.1112 -0.0759)
OKLCHoklch(31.81% 0.135 325.7)
XYZxyz(5.2789, 2.7054, 9.0465)
Luminance0.0271 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#520B56 #0F560B
analogous
#2D0B56 #520B56 #560B35
triadic
#520B56 #56520B #0B5652
tetradic
#520B56 #562D0B #0F560B #0B3556
square
#520B56 #562D0B #0F560B #0B3556
split-complementary
#520B56 #35560B #0B562D
monochromatic
#1A031B #1E0420 #520B56 #86128C #B919C3

Accessibility & contrast

On white

13.63
#520B56 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#520B56 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #520B56
13.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##520B56#FFFFFF#000000##FFFFFF
##520B561.0013.631.5413.63
#FFFFFF13.631.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002858
Deuteranopia (green-blind)
#1E3154
Tritanopia (blue-blind)
#541A31
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #520b56;
/* rgb */ color: rgb(82, 11, 86);
/* oklch */ color: oklch(31.8% 0.135 325.7);
Tailwind
colors: {
  custom: {
    50: '#865586',
    500: '#520b56',
    950: '#000000',
  },
}
SCSS
$custom: #520b56;
$custom-light: #865586;
$custom-dark: #000000;
JSON
{
  "hex": "#520b56",
  "rgb": {
    "r": 82,
    "g": 11,
    "b": 86
  },
  "hsl": {
    "h": 296.8,
    "s": 77.32,
    "l": 19.02
  },
  "oklch": {
    "l": 0.31814,
    "c": 0.13463,
    "h": 325.7
  },
  "luminance": 0.02705
}

Semantic roles & 50–950 ramp

primary
#520B56
secondary
#31912B
accent
#F4343E
background
#F8F5F8
surface
#F0E9EF
border
#CBC5CA
text
#0B030B
muted
#7C787C

Preview Lab

Preview with #520B56

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

Preview Lab → · Contrast checker → · Palette generator →

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