#521DA1#521DA1

#521DA1 is a dark, vivid violet. Relative luminance 0.052; OKLCH L 39.8% C 0.192 H 293.8°. Best body text is #FFFFFF at 10.25:1 contrast (WCAG AA passes).

Color values

HEX#521DA1
RGBrgb(82, 29, 161)
HSLhsl(264, 69%, 37%)
HSVhsv(264, 82%, 63%)
CMYKcmyk(49.1%, 82%, 0%, 36.9%)
CIE-LABlab(27.42, 51.60, -61.06)
CIE-LCHlch(27.42, 79.94, 310.20°)
OKLaboklab(39.8% 0.0773 -0.1753)
OKLCHoklch(39.8% 0.192 293.8)
XYZxyz(10.3503, 5.2454, 34.1784)
Luminance0.0525 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#521DA1 #6CA11D
analogous
#1D2AA1 #521DA1 #941DA1
triadic
#521DA1 #A1521D #1DA152
tetradic
#521DA1 #A11D2A #6CA11D #1DA194
square
#521DA1 #A11D2A #6CA11D #1DA194
split-complementary
#521DA1 #A1941D #2AA11D
monochromatic
#1D0A39 #38146D #521DA1 #6C26D5 #8F58E1

Accessibility & contrast

On white

10.25
#521DA1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #521DA1
10.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##521DA1#FFFFFF#000000##FFFFFF
##521DA11.0010.252.0510.25
#FFFFFF10.251.0021.001.00
#0000002.0521.001.0021.00
##FFFFFF10.251.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #521da1;
/* rgb */ color: rgb(82, 29, 161);
/* oklch */ color: oklch(39.8% 0.192 293.8);
Tailwind
colors: {
  custom: {
    50: '#8b61be',
    500: '#521da1',
    950: '#000000',
  },
}
SCSS
$custom: #521da1;
$custom-light: #8b61be;
$custom-dark: #000000;
JSON
{
  "hex": "#521da1",
  "rgb": {
    "r": 82,
    "g": 29,
    "b": 161
  },
  "hsl": {
    "h": 264.091,
    "s": 69.474,
    "l": 37.255
  },
  "oklch": {
    "l": 0.39804,
    "c": 0.19155,
    "h": 293.8
  },
  "luminance": 0.05246
}

Semantic roles & 50–950 ramp

primary
#521DA1
secondary
#98C455
accent
#EC3CA5
background
#F9F6FB
surface
#F1EBF7
border
#CBC6D0
text
#0D0512
muted
#7E7A81

Preview Lab

Preview with #521DA1

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

Preview Lab → · Contrast checker → · Palette generator →

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