#521C8A#521C8A

#521C8A is a dark, vivid violet. Relative luminance 0.045; OKLCH L 37.6% C 0.168 H 300.5°. Best body text is #FFFFFF at 11.10:1 contrast (WCAG AA passes).

Color values

HEX#521C8A
RGBrgb(82, 28, 138)
HSLhsl(269, 66%, 33%)
HSVhsv(269, 80%, 54%)
CMYKcmyk(40.6%, 79.7%, 0%, 45.9%)
CIE-LABlab(25.13, 46.13, -50.65)
CIE-LCHlch(25.13, 68.50, 312.32°)
OKLaboklab(37.56% 0.0854 -0.1447)
OKLCHoklch(37.56% 0.168 300.5)
XYZxyz(8.4812, 4.4592, 24.4537)
Luminance0.0446 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#521C8A #548A1C
analogous
#1C1D8A #521C8A #891C8A
triadic
#521C8A #8A521C #1C8A52
tetradic
#521C8A #8A1C1D #548A1C #1C8A89
square
#521C8A #8A1C1D #548A1C #1C8A89
split-complementary
#521C8A #8A891C #1D8A1C
monochromatic
#160724 #341257 #521C8A #7026BD #8F47DA

Accessibility & contrast

On white

11.10
#521C8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.89
#521C8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #521C8A
11.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##521C8A#FFFFFF#000000##FFFFFF
##521C8A1.0011.101.8911.10
#FFFFFF11.101.0021.001.00
#0000001.8921.001.0021.00
##FFFFFF11.101.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #521c8a;
/* rgb */ color: rgb(82, 28, 138);
/* oklch */ color: oklch(37.6% 0.168 300.5);
Tailwind
colors: {
  custom: {
    50: '#895fad',
    500: '#521c8a',
    950: '#000000',
  },
}
SCSS
$custom: #521c8a;
$custom-light: #895fad;
$custom-dark: #000000;
JSON
{
  "hex": "#521c8a",
  "rgb": {
    "r": 82,
    "g": 28,
    "b": 138
  },
  "hsl": {
    "h": 269.455,
    "s": 66.265,
    "l": 32.549
  },
  "oklch": {
    "l": 0.37558,
    "c": 0.16802,
    "h": 300.5
  },
  "luminance": 0.04459
}

Semantic roles & 50–950 ramp

primary
#521C8A
secondary
#82BB46
accent
#E93F95
background
#F8F5FA
surface
#F0EAF4
border
#CBC6CE
text
#0C0510
muted
#7D797F

Preview Lab

Preview with #521C8A

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

Preview Lab → · Contrast checker → · Palette generator →

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