#521EA0#521EA0

#521EA0 is a dark, vivid violet. Relative luminance 0.053; OKLCH L 39.8% C 0.190 H 293.9°. Best body text is #FFFFFF at 10.23:1 contrast (WCAG AA passes).

Color values

HEX#521EA0
RGBrgb(82, 30, 160)
HSLhsl(264, 68%, 37%)
HSVhsv(264, 81%, 63%)
CMYKcmyk(48.8%, 81.3%, 0%, 37.3%)
CIE-LABlab(27.46, 50.94, -60.38)
CIE-LCHlch(27.46, 79.00, 310.15°)
OKLaboklab(39.8% 0.0769 -0.1733)
OKLCHoklch(39.8% 0.19 293.9)
XYZxyz(10.2874, 5.2601, 33.7242)
Luminance0.0526 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#521EA0 #6CA01E
analogous
#1E2BA0 #521EA0 #931EA0
triadic
#521EA0 #A0521E #1EA052
tetradic
#521EA0 #A01E2B #6CA01E #1EA093
square
#521EA0 #A01E2B #6CA01E #1EA093
split-complementary
#521EA0 #A0931E #2BA01E
monochromatic
#1D0B39 #38146C #521EA0 #6C28D4 #8F59E0

Accessibility & contrast

On white

10.23
#521EA0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.05
#521EA0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #521EA0
10.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##521EA0#FFFFFF#000000##FFFFFF
##521EA01.0010.232.0510.23
#FFFFFF10.231.0021.001.00
#0000002.0521.001.0021.00
##FFFFFF10.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0042A4
Deuteranopia (green-blind)
#003F9E
Tritanopia (blue-blind)
#3A4460
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #521ea0;
/* rgb */ color: rgb(82, 30, 160);
/* oklch */ color: oklch(39.8% 0.190 293.9);
Tailwind
colors: {
  custom: {
    50: '#8b61bd',
    500: '#521ea0',
    950: '#000000',
  },
}
SCSS
$custom: #521ea0;
$custom-light: #8b61bd;
$custom-dark: #000000;
JSON
{
  "hex": "#521ea0",
  "rgb": {
    "r": 82,
    "g": 30,
    "b": 160
  },
  "hsl": {
    "h": 264,
    "s": 68.421,
    "l": 37.255
  },
  "oklch": {
    "l": 0.39803,
    "c": 0.1896,
    "h": 293.9
  },
  "luminance": 0.0526
}

Semantic roles & 50–950 ramp

primary
#521EA0
secondary
#98C456
accent
#EB3DA5
background
#F9F6FB
surface
#F1EBF7
border
#CBC6D0
text
#0D0512
muted
#7E7A81

Preview Lab

Preview with #521EA0

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

Preview Lab → · Contrast checker → · Palette generator →

#521EA0 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva