#520E7B#520E7B

#520E7B is a dark, vivid violet. Relative luminance 0.035; OKLCH L 35.0% C 0.166 H 307.4°. Best body text is #FFFFFF at 12.30:1 contrast (WCAG AA passes).

Color values

HEX#520E7B
RGBrgb(82, 14, 123)
HSLhsl(277, 80%, 27%)
HSVhsv(277, 89%, 48%)
CMYKcmyk(33.3%, 88.6%, 0%, 51.8%)
CIE-LABlab(22.08, 47.52, -46.18)
CIE-LCHlch(22.08, 66.27, 315.82°)
OKLaboklab(35.02% 0.1006 -0.1315)
OKLCHoklch(35.02% 0.166 307.4)
XYZxyz(7.2111, 3.5381, 19.0381)
Luminance0.0354 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#520E7B #377B0E
analogous
#1B0E7B #520E7B #7B0E6E
triadic
#520E7B #7B520E #0E7B52
tetradic
#520E7B #7B1B0E #377B0E #0E6E7B
square
#520E7B #7B1B0E #377B0E #0E6E7B
split-complementary
#520E7B #6E7B0E #0E7B1B
monochromatic
#12031B #2D0844 #520E7B #7714B2 #9A1EE5

Accessibility & contrast

On white

12.30
#520E7B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#520E7B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #520E7B
12.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##520E7B#FFFFFF#000000##FFFFFF
##520E7B1.0012.301.7112.30
#FFFFFF12.301.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00337E
Deuteranopia (green-blind)
#003579
Tritanopia (blue-blind)
#4B2D47
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #520e7b;
/* rgb */ color: rgb(82, 14, 123);
/* oklch */ color: oklch(35.0% 0.166 307.4);
Tailwind
colors: {
  custom: {
    50: '#8858a2',
    500: '#520e7b',
    950: '#000000',
  },
}
SCSS
$custom: #520e7b;
$custom-light: #8858a2;
$custom-dark: #000000;
JSON
{
  "hex": "#520e7b",
  "rgb": {
    "r": 82,
    "g": 14,
    "b": 123
  },
  "hsl": {
    "h": 277.431,
    "s": 79.562,
    "l": 26.863
  },
  "oklch": {
    "l": 0.35022,
    "c": 0.16558,
    "h": 307.4
  },
  "luminance": 0.03538
}

Semantic roles & 50–950 ramp

primary
#520E7B
secondary
#63B233
accent
#F6327C
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C040F
muted
#7D797F

Preview Lab

Preview with #520E7B

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

Preview Lab → · Contrast checker → · Palette generator →

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