#521D9E#521D9E

#521D9E is a dark, vivid violet. Relative luminance 0.051; OKLCH L 39.5% C 0.188 H 294.6°. Best body text is #FFFFFF at 10.35:1 contrast (WCAG AA passes).

Color values

HEX#521D9E
RGBrgb(82, 29, 158)
HSLhsl(265, 69%, 37%)
HSVhsv(265, 82%, 62%)
CMYKcmyk(48.1%, 81.6%, 0%, 38%)
CIE-LABlab(27.13, 50.82, -59.71)
CIE-LCHlch(27.13, 78.41, 310.41°)
OKLaboklab(39.52% 0.0783 -0.1713)
OKLCHoklch(39.52% 0.188 294.6)
XYZxyz(10.0889, 5.1409, 32.8018)
Luminance0.0514 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#521D9E #699E1D
analogous
#1D299E #521D9E #931D9E
triadic
#521D9E #9E521D #1D9E52
tetradic
#521D9E #9E1D29 #699E1D #1D9E93
square
#521D9E #9E1D29 #699E1D #1D9E93
split-complementary
#521D9E #9E931D #299E1D
monochromatic
#1C0A37 #37146A #521D9E #6D26D2 #8E56E0

Accessibility & contrast

On white

10.35
#521D9E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.03
#521D9E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #521D9E
10.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##521D9E#FFFFFF#000000##FFFFFF
##521D9E1.0010.352.0310.35
#FFFFFF10.351.0021.001.00
#0000002.0321.001.0021.00
##FFFFFF10.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0041A1
Deuteranopia (green-blind)
#003E9C
Tritanopia (blue-blind)
#3B425E
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #521d9e;
/* rgb */ color: rgb(82, 29, 158);
/* oklch */ color: oklch(39.5% 0.188 294.6);
Tailwind
colors: {
  custom: {
    50: '#8b61bc',
    500: '#521d9e',
    950: '#000000',
  },
}
SCSS
$custom: #521d9e;
$custom-light: #8b61bc;
$custom-dark: #000000;
JSON
{
  "hex": "#521d9e",
  "rgb": {
    "r": 82,
    "g": 29,
    "b": 158
  },
  "hsl": {
    "h": 264.651,
    "s": 68.984,
    "l": 36.667
  },
  "oklch": {
    "l": 0.39515,
    "c": 0.18835,
    "h": 294.6
  },
  "luminance": 0.05141
}

Semantic roles & 50–950 ramp

primary
#521D9E
secondary
#95C354
accent
#EC3CA4
background
#F9F5FB
surface
#F1EAF6
border
#CBC6D0
text
#0D0512
muted
#7E7981

Preview Lab

Preview with #521D9E

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

Preview Lab → · Contrast checker → · Palette generator →

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