#520E4D#520E4D

#520E4D is a dark, vivid purple. Relative luminance 0.026; OKLCH L 31.4% C 0.124 H 331.4°. Best body text is #FFFFFF at 13.74:1 contrast (WCAG AA passes).

Color values

HEX#520E4D
RGBrgb(82, 14, 77)
HSLhsl(304, 71%, 19%)
HSVhsv(304, 83%, 32%)
CMYKcmyk(0%, 82.9%, 6.1%, 67.8%)
CIE-LABlab(18.56, 38.09, -21.55)
CIE-LCHlch(18.56, 43.76, 330.51°)
OKLaboklab(31.44% 0.1089 -0.0594)
OKLCHoklch(31.44% 0.124 331.4)
XYZxyz(4.9763, 2.6441, 7.2680)
Luminance0.0264 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#520E4D #0E5213
analogous
#350E52 #520E4D #520E2B
triadic
#520E4D #4D520E #0E4D52
tetradic
#520E4D #52350E #0E5213 #0E2B52
square
#520E4D #52350E #0E5213 #0E2B52
split-complementary
#520E4D #2B520E #0E5235
monochromatic
#1A0419 #1E051C #520E4D #86177E #BB20AF

Accessibility & contrast

On white

13.74
#520E4D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.53
#520E4D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #520E4D
13.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##520E4D#FFFFFF#000000##FFFFFF
##520E4D1.0013.741.5313.74
#FFFFFF13.741.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#07274F
Deuteranopia (green-blind)
#24304B
Tritanopia (blue-blind)
#56172D
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #520e4d;
/* rgb */ color: rgb(82, 14, 77);
/* oklch */ color: oklch(31.4% 0.124 331.4);
Tailwind
colors: {
  custom: {
    50: '#85567f',
    500: '#520e4d',
    950: '#000000',
  },
}
SCSS
$custom: #520e4d;
$custom-light: #85567f;
$custom-dark: #000000;
JSON
{
  "hex": "#520e4d",
  "rgb": {
    "r": 82,
    "g": 14,
    "b": 77
  },
  "hsl": {
    "h": 304.412,
    "s": 70.833,
    "l": 18.824
  },
  "oklch": {
    "l": 0.31436,
    "c": 0.124,
    "h": 331.4
  },
  "luminance": 0.02644
}

Semantic roles & 50–950 ramp

primary
#520E4D
secondary
#2F8C36
accent
#EE473A
background
#F8F5F7
surface
#F0E9EE
border
#CBC5C9
text
#0B030A
muted
#7C787C

Preview Lab

Preview with #520E4D

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

Preview Lab → · Contrast checker → · Palette generator →

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