#521D83#521D83

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

Color values

HEX#521D83
RGBrgb(82, 29, 131)
HSLhsl(271, 64%, 31%)
HSVhsv(271, 78%, 51%)
CMYKcmyk(37.4%, 77.9%, 0%, 48.6%)
CIE-LABlab(24.68, 43.93, -47.01)
CIE-LCHlch(24.68, 64.35, 313.06°)
OKLaboklab(37.05% 0.0863 -0.1341)
OKLCHoklch(37.05% 0.159 302.8)
XYZxyz(8.0148, 4.3113, 21.8782)
Luminance0.0431 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#521D83 #4E831D
analogous
#1F1D83 #521D83 #831D81
triadic
#521D83 #83521D #1D8352
tetradic
#521D83 #831F1D #4E831D #1D8183
square
#521D83 #831F1D #4E831D #1D8183
split-complementary
#521D83 #81831D #1D831F
monochromatic
#13071F #331251 #521D83 #7128B5 #9045D6

Accessibility & contrast

On white

11.28
#521D83 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #521D83
11.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##521D83#FFFFFF#000000##FFFFFF
##521D831.0011.281.8611.28
#FFFFFF11.281.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A86
Deuteranopia (green-blind)
#003A81
Tritanopia (blue-blind)
#48374F
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #521d83;
/* rgb */ color: rgb(82, 29, 131);
/* oklch */ color: oklch(37.0% 0.159 302.8);
Tailwind
colors: {
  custom: {
    50: '#885fa8',
    500: '#521d83',
    950: '#000000',
  },
}
SCSS
$custom: #521d83;
$custom-light: #885fa8;
$custom-dark: #000000;
JSON
{
  "hex": "#521d83",
  "rgb": {
    "r": 82,
    "g": 29,
    "b": 131
  },
  "hsl": {
    "h": 271.176,
    "s": 63.75,
    "l": 31.373
  },
  "oklch": {
    "l": 0.37047,
    "c": 0.15945,
    "h": 302.8
  },
  "luminance": 0.04311
}

Semantic roles & 50–950 ramp

primary
#521D83
secondary
#7CB646
accent
#E74191
background
#F8F5FA
surface
#F0EAF4
border
#CBC6CE
text
#0C0510
muted
#7D797F

Preview Lab

Preview with #521D83

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

Preview Lab → · Contrast checker → · Palette generator →

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