#521D89#521D89

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

Color values

HEX#521D89
RGBrgb(82, 29, 137)
HSLhsl(269, 65%, 33%)
HSVhsv(269, 79%, 54%)
CMYKcmyk(40.1%, 78.8%, 0%, 46.3%)
CIE-LABlab(25.19, 45.45, -49.93)
CIE-LCHlch(25.19, 67.51, 312.31°)
OKLaboklab(37.57% 0.0848 -0.1426)
OKLCHoklch(37.57% 0.166 300.7)
XYZxyz(8.4333, 4.4786, 24.0822)
Luminance0.0448 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#521D89 #54891D
analogous
#1D1E89 #521D89 #881D89
triadic
#521D89 #89521D #1D8952
tetradic
#521D89 #891D1E #54891D #1D8988
square
#521D89 #891D1E #54891D #1D8988
split-complementary
#521D89 #89881D #1E891D
monochromatic
#160824 #341256 #521D89 #7028BC #8F48D8

Accessibility & contrast

On white

11.08
#521D89 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #521D89
11.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##521D89#FFFFFF#000000##FFFFFF
##521D891.0011.081.9011.08
#FFFFFF11.081.0021.001.00
#0000001.9021.001.0021.00
##FFFFFF11.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B8C
Deuteranopia (green-blind)
#003B87
Tritanopia (blue-blind)
#453A52
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #521d89;
/* rgb */ color: rgb(82, 29, 137);
/* oklch */ color: oklch(37.6% 0.166 300.7);
Tailwind
colors: {
  custom: {
    50: '#885fac',
    500: '#521d89',
    950: '#000000',
  },
}
SCSS
$custom: #521d89;
$custom-light: #885fac;
$custom-dark: #000000;
JSON
{
  "hex": "#521d89",
  "rgb": {
    "r": 82,
    "g": 29,
    "b": 137
  },
  "hsl": {
    "h": 269.444,
    "s": 65.06,
    "l": 32.549
  },
  "oklch": {
    "l": 0.37573,
    "c": 0.1659,
    "h": 300.7
  },
  "luminance": 0.04479
}

Semantic roles & 50–950 ramp

primary
#521D89
secondary
#82BA47
accent
#E84095
background
#F8F5FA
surface
#F0EAF4
border
#CBC6CE
text
#0C0510
muted
#7D797F

Preview Lab

Preview with #521D89

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

Preview Lab → · Contrast checker → · Palette generator →

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