#521D87#521D87

#521D87 is a dark, vivid violet. Relative luminance 0.044; OKLCH L 37.4% C 0.164 H 301.4°. Best body text is #FFFFFF at 11.14:1 contrast (WCAG AA passes).

Color values

HEX#521D87
RGBrgb(82, 29, 135)
HSLhsl(270, 65%, 32%)
HSVhsv(270, 79%, 53%)
CMYKcmyk(39.3%, 78.5%, 0%, 47.1%)
CIE-LABlab(25.02, 44.94, -48.96)
CIE-LCHlch(25.02, 66.46, 312.55°)
OKLaboklab(37.4% 0.0853 -0.1398)
OKLCHoklch(37.4% 0.164 301.4)
XYZxyz(8.2911, 4.4218, 23.3337)
Luminance0.0442 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#521D87 #52871D
analogous
#1D1D87 #521D87 #871D87
triadic
#521D87 #87521D #1D8752
tetradic
#521D87 #871D1D #52871D #1D8787
square
#521D87 #871D1D #52871D #1D8787
split-complementary
#521D87 #87871D #1D871D
monochromatic
#150722 #331255 #521D87 #7128B9 #8F47D7

Accessibility & contrast

On white

11.14
#521D87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.88
#521D87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #521D87
11.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##521D87#FFFFFF#000000##FFFFFF
##521D871.0011.141.8811.14
#FFFFFF11.141.0021.001.00
#0000001.8821.001.0021.00
##FFFFFF11.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B8A
Deuteranopia (green-blind)
#003B85
Tritanopia (blue-blind)
#463951
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #521d87;
/* rgb */ color: rgb(82, 29, 135);
/* oklch */ color: oklch(37.4% 0.164 301.4);
Tailwind
colors: {
  custom: {
    50: '#885fab',
    500: '#521d87',
    950: '#000000',
  },
}
SCSS
$custom: #521d87;
$custom-light: #885fab;
$custom-dark: #000000;
JSON
{
  "hex": "#521d87",
  "rgb": {
    "r": 82,
    "g": 29,
    "b": 135
  },
  "hsl": {
    "h": 270,
    "s": 64.634,
    "l": 32.157
  },
  "oklch": {
    "l": 0.37396,
    "c": 0.16375,
    "h": 301.4
  },
  "luminance": 0.04422
}

Semantic roles & 50–950 ramp

primary
#521D87
secondary
#80B946
accent
#E84094
background
#F8F5FA
surface
#F0EAF4
border
#CBC6CE
text
#0C0510
muted
#7D797F

Preview Lab

Preview with #521D87

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

Preview Lab → · Contrast checker → · Palette generator →

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