#521D82#521D82

#521D82 is a dark, vivid violet. Relative luminance 0.043; OKLCH L 37.0% C 0.158 H 303.1°. Best body text is #FFFFFF at 11.31:1 contrast (WCAG AA passes).

Color values

HEX#521D82
RGBrgb(82, 29, 130)
HSLhsl(271, 64%, 31%)
HSVhsv(271, 78%, 51%)
CMYKcmyk(36.9%, 77.7%, 0%, 49%)
CIE-LABlab(24.59, 43.68, -46.52)
CIE-LCHlch(24.59, 63.82, 313.20°)
OKLaboklab(36.96% 0.0866 -0.1326)
OKLCHoklch(36.96% 0.158 303.1)
XYZxyz(7.9474, 4.2843, 21.5230)
Luminance0.0428 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#521D82 #4D821D
analogous
#1F1D82 #521D82 #821D7F
triadic
#521D82 #82521D #1D8252
tetradic
#521D82 #821F1D #4D821D #1D7F82
square
#521D82 #821F1D #4D821D #1D7F82
split-complementary
#521D82 #7F821D #1D821F
monochromatic
#13071E #321250 #521D82 #7228B4 #9044D5

Accessibility & contrast

On white

11.31
#521D82 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.86
#521D82 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #521D82
11.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##521D82#FFFFFF#000000##FFFFFF
##521D821.0011.311.8611.31
#FFFFFF11.311.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003985
Deuteranopia (green-blind)
#003A80
Tritanopia (blue-blind)
#48374E
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #521d82;
/* rgb */ color: rgb(82, 29, 130);
/* oklch */ color: oklch(37.0% 0.158 303.1);
Tailwind
colors: {
  custom: {
    50: '#885fa7',
    500: '#521d82',
    950: '#000000',
  },
}
SCSS
$custom: #521d82;
$custom-light: #885fa7;
$custom-dark: #000000;
JSON
{
  "hex": "#521d82",
  "rgb": {
    "r": 82,
    "g": 29,
    "b": 130
  },
  "hsl": {
    "h": 271.485,
    "s": 63.522,
    "l": 31.176
  },
  "oklch": {
    "l": 0.3696,
    "c": 0.15837,
    "h": 303.1
  },
  "luminance": 0.04284
}

Semantic roles & 50–950 ramp

primary
#521D82
secondary
#7BB546
accent
#E74190
background
#F8F5FA
surface
#F0EAF4
border
#CBC6CE
text
#0C050F
muted
#7D797F

Preview Lab

Preview with #521D82

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

Preview Lab → · Contrast checker → · Palette generator →

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