#521D9A#521D9A

#521D9A is a dark, vivid violet. Relative luminance 0.050; OKLCH L 39.1% C 0.184 H 295.6°. Best body text is #FFFFFF at 10.49:1 contrast (WCAG AA passes).

Color values

HEX#521D9A
RGBrgb(82, 29, 154)
HSLhsl(265, 68%, 36%)
HSVhsv(265, 81%, 60%)
CMYKcmyk(46.8%, 81.2%, 0%, 39.6%)
CIE-LABlab(26.75, 49.79, -57.89)
CIE-LCHlch(26.75, 76.36, 310.70°)
OKLaboklab(39.13% 0.0796 -0.166)
OKLCHoklch(39.13% 0.184 295.6)
XYZxyz(9.7502, 5.0054, 31.0180)
Luminance0.0501 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#521D9A #659A1D
analogous
#1D269A #521D9A #901D9A
triadic
#521D9A #9A521D #1D9A52
tetradic
#521D9A #9A1D26 #659A1D #1D9A90
square
#521D9A #9A1D26 #659A1D #1D9A90
split-complementary
#521D9A #9A901D #269A1D
monochromatic
#1B0A33 #371366 #521D9A #6D27CE #8E53DF

Accessibility & contrast

On white

10.49
#521D9A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.00
#521D9A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #521D9A
10.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##521D9A#FFFFFF#000000##FFFFFF
##521D9A1.0010.492.0010.49
#FFFFFF10.491.0021.001.00
#0000002.0021.001.0021.00
##FFFFFF10.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00409D
Deuteranopia (green-blind)
#003D98
Tritanopia (blue-blind)
#3D415C
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #521d9a;
/* rgb */ color: rgb(82, 29, 154);
/* oklch */ color: oklch(39.1% 0.184 295.6);
Tailwind
colors: {
  custom: {
    50: '#8a60b9',
    500: '#521d9a',
    950: '#000000',
  },
}
SCSS
$custom: #521d9a;
$custom-light: #8a60b9;
$custom-dark: #000000;
JSON
{
  "hex": "#521d9a",
  "rgb": {
    "r": 82,
    "g": 29,
    "b": 154
  },
  "hsl": {
    "h": 265.44,
    "s": 68.306,
    "l": 35.882
  },
  "oklch": {
    "l": 0.39134,
    "c": 0.1841,
    "h": 295.6
  },
  "luminance": 0.05006
}

Semantic roles & 50–950 ramp

primary
#521D9A
secondary
#92C251
accent
#EB3DA1
background
#F9F5FB
surface
#F1EAF6
border
#CBC6D0
text
#0D0512
muted
#7E7981

Preview Lab

Preview with #521D9A

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

Preview Lab → · Contrast checker → · Palette generator →

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