#521D8A#521D8A

#521D8A is a dark, vivid violet. Relative luminance 0.045; OKLCH L 37.7% C 0.167 H 300.4°. Best body text is #FFFFFF at 11.04:1 contrast (WCAG AA passes).

Color values

HEX#521D8A
RGBrgb(82, 29, 138)
HSLhsl(269, 65%, 33%)
HSVhsv(269, 79%, 54%)
CMYKcmyk(40.6%, 79%, 0%, 45.9%)
CIE-LABlab(25.28, 45.70, -50.41)
CIE-LCHlch(25.28, 68.04, 312.20°)
OKLaboklab(37.66% 0.0845 -0.144)
OKLCHoklch(37.66% 0.167 300.4)
XYZxyz(8.5053, 4.5075, 24.4618)
Luminance0.0451 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#521D8A #558A1D
analogous
#1D1F8A #521D8A #881D8A
triadic
#521D8A #8A521D #1D8A52
tetradic
#521D8A #8A1D1F #558A1D #1D8A88
square
#521D8A #8A1D1F #558A1D #1D8A88
split-complementary
#521D8A #8A881D #1F8A1D
monochromatic
#160825 #341257 #521D8A #7028BD #8F49D9

Accessibility & contrast

On white

11.04
#521D8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.90
#521D8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #521D8A
11.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##521D8A#FFFFFF#000000##FFFFFF
##521D8A1.0011.041.9011.04
#FFFFFF11.041.0021.001.00
#0000001.9021.001.0021.00
##FFFFFF11.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C8D
Deuteranopia (green-blind)
#003B88
Tritanopia (blue-blind)
#453A53
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #521d8a;
/* rgb */ color: rgb(82, 29, 138);
/* oklch */ color: oklch(37.7% 0.167 300.4);
Tailwind
colors: {
  custom: {
    50: '#885fad',
    500: '#521d8a',
    950: '#000000',
  },
}
SCSS
$custom: #521d8a;
$custom-light: #885fad;
$custom-dark: #000000;
JSON
{
  "hex": "#521d8a",
  "rgb": {
    "r": 82,
    "g": 29,
    "b": 138
  },
  "hsl": {
    "h": 269.174,
    "s": 65.269,
    "l": 32.745
  },
  "oklch": {
    "l": 0.37662,
    "c": 0.16698,
    "h": 300.4
  },
  "luminance": 0.04508
}

Semantic roles & 50–950 ramp

primary
#521D8A
secondary
#83BB48
accent
#E84096
background
#F8F5FA
surface
#F0EAF4
border
#CBC6CE
text
#0C0510
muted
#7D797F

Preview Lab

Preview with #521D8A

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

Preview Lab → · Contrast checker → · Palette generator →

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