#521EA1#521EA1

#521EA1 is a dark, vivid violet. Relative luminance 0.053; OKLCH L 39.9% C 0.191 H 293.7°. Best body text is #FFFFFF at 10.20:1 contrast (WCAG AA passes).

Color values

HEX#521EA1
RGBrgb(82, 30, 161)
HSLhsl(264, 69%, 37%)
HSVhsv(264, 81%, 63%)
CMYKcmyk(49.1%, 81.4%, 0%, 36.9%)
CIE-LABlab(27.56, 51.20, -60.83)
CIE-LCHlch(27.56, 79.51, 310.09°)
OKLaboklab(39.9% 0.0766 -0.1746)
OKLCHoklch(39.9% 0.191 293.7)
XYZxyz(10.3752, 5.2953, 34.1867)
Luminance0.0530 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#521EA1 #6DA11E
analogous
#1E2BA1 #521EA1 #941EA1
triadic
#521EA1 #A1521E #1EA152
tetradic
#521EA1 #A11E2B #6DA11E #1EA194
square
#521EA1 #A11E2B #6DA11E #1EA194
split-complementary
#521EA1 #A1941E #2BA11E
monochromatic
#1D0B3A #38146D #521EA1 #6C28D5 #8F59E0

Accessibility & contrast

On white

10.20
#521EA1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.06
#521EA1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #521EA1
10.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##521EA1#FFFFFF#000000##FFFFFF
##521EA11.0010.202.0610.20
#FFFFFF10.201.0021.001.00
#0000002.0621.001.0021.00
##FFFFFF10.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0042A5
Deuteranopia (green-blind)
#003F9F
Tritanopia (blue-blind)
#394460
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #521ea1;
/* rgb */ color: rgb(82, 30, 161);
/* oklch */ color: oklch(39.9% 0.191 293.7);
Tailwind
colors: {
  custom: {
    50: '#8b61be',
    500: '#521ea1',
    950: '#000000',
  },
}
SCSS
$custom: #521ea1;
$custom-light: #8b61be;
$custom-dark: #000000;
JSON
{
  "hex": "#521ea1",
  "rgb": {
    "r": 82,
    "g": 30,
    "b": 161
  },
  "hsl": {
    "h": 263.817,
    "s": 68.586,
    "l": 37.451
  },
  "oklch": {
    "l": 0.39899,
    "c": 0.19067,
    "h": 293.7
  },
  "luminance": 0.05296
}

Semantic roles & 50–950 ramp

primary
#521EA1
secondary
#99C457
accent
#EB3CA6
background
#F9F6FB
surface
#F1EBF7
border
#CBC6D0
text
#0D0512
muted
#7E7A81

Preview Lab

Preview with #521EA1

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

Preview Lab → · Contrast checker → · Palette generator →

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