#520E7E#520E7E

#520E7E is a dark, vivid violet. Relative luminance 0.036; OKLCH L 35.3% C 0.168 H 306.3°. Best body text is #FFFFFF at 12.19:1 contrast (WCAG AA passes).

Color values

HEX#520E7E
RGBrgb(82, 14, 126)
HSLhsl(276, 80%, 27%)
HSVhsv(276, 89%, 49%)
CMYKcmyk(34.9%, 88.9%, 0%, 50.6%)
CIE-LABlab(22.35, 48.20, -47.64)
CIE-LCHlch(22.35, 67.78, 315.34°)
OKLaboklab(35.29% 0.0996 -0.1358)
OKLCHoklch(35.29% 0.168 306.3)
XYZxyz(7.4018, 3.6143, 20.0423)
Luminance0.0361 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#520E7E #3A7E0E
analogous
#1A0E7E #520E7E #7E0E72
triadic
#520E7E #7E520E #0E7E52
tetradic
#520E7E #7E1A0E #3A7E0E #0E727E
square
#520E7E #7E1A0E #3A7E0E #0E727E
split-complementary
#520E7E #727E0E #0E7E1A
monochromatic
#12031C #2E0847 #520E7E #7614B5 #9820E6

Accessibility & contrast

On white

12.19
#520E7E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#520E7E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #520E7E
12.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##520E7E#FFFFFF#000000##FFFFFF
##520E7E1.0012.191.7212.19
#FFFFFF12.191.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003481
Deuteranopia (green-blind)
#00367C
Tritanopia (blue-blind)
#4A2F49
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #520e7e;
/* rgb */ color: rgb(82, 14, 126);
/* oklch */ color: oklch(35.3% 0.168 306.3);
Tailwind
colors: {
  custom: {
    50: '#8859a4',
    500: '#520e7e',
    950: '#000000',
  },
}
SCSS
$custom: #520e7e;
$custom-light: #8859a4;
$custom-dark: #000000;
JSON
{
  "hex": "#520e7e",
  "rgb": {
    "r": 82,
    "g": 14,
    "b": 126
  },
  "hsl": {
    "h": 276.429,
    "s": 80,
    "l": 27.451
  },
  "oklch": {
    "l": 0.35293,
    "c": 0.16841,
    "h": 306.3
  },
  "luminance": 0.03614
}

Semantic roles & 50–950 ramp

primary
#520E7E
secondary
#66B533
accent
#F6317F
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C040F
muted
#7D797F

Preview Lab

Preview with #520E7E

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

Preview Lab → · Contrast checker → · Palette generator →

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