#521E85#521E85

#521E85 is a dark, vivid violet. Relative luminance 0.044; OKLCH L 37.3% C 0.160 H 301.9°. Best body text is #FFFFFF at 11.15:1 contrast (WCAG AA passes).

Color values

HEX#521E85
RGBrgb(82, 30, 133)
HSLhsl(270, 63%, 32%)
HSVhsv(270, 77%, 52%)
CMYKcmyk(38.3%, 77.4%, 0%, 47.8%)
CIE-LABlab(25.00, 43.99, -47.74)
CIE-LCHlch(25.00, 64.92, 312.66°)
OKLaboklab(37.33% 0.0849 -0.1362)
OKLCHoklch(37.33% 0.16 301.9)
XYZxyz(8.1766, 4.4158, 22.6073)
Luminance0.0442 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#521E85 #51851E
analogous
#1E1E85 #521E85 #851E85
triadic
#521E85 #85521E #1E8552
tetradic
#521E85 #851E1E #51851E #1E8585
square
#521E85 #851E1E #51851E #1E8585
split-complementary
#521E85 #85851E #1E851E
monochromatic
#140721 #331353 #521E85 #7129B7 #8F48D6

Accessibility & contrast

On white

11.15
#521E85 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #521E85
11.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##521E85#FFFFFF#000000##FFFFFF
##521E851.0011.151.8811.15
#FFFFFF11.151.0021.001.00
#0000001.8821.001.0021.00
##FFFFFF11.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B88
Deuteranopia (green-blind)
#003B83
Tritanopia (blue-blind)
#473850
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #521e85;
/* rgb */ color: rgb(82, 30, 133);
/* oklch */ color: oklch(37.3% 0.160 301.9);
Tailwind
colors: {
  custom: {
    50: '#8860a9',
    500: '#521e85',
    950: '#000000',
  },
}
SCSS
$custom: #521e85;
$custom-light: #8860a9;
$custom-dark: #000000;
JSON
{
  "hex": "#521e85",
  "rgb": {
    "r": 82,
    "g": 30,
    "b": 133
  },
  "hsl": {
    "h": 270.291,
    "s": 63.19,
    "l": 31.961
  },
  "oklch": {
    "l": 0.37329,
    "c": 0.16048,
    "h": 301.9
  },
  "luminance": 0.04416
}

Semantic roles & 50–950 ramp

primary
#521E85
secondary
#7FB847
accent
#E64293
background
#F8F5FA
surface
#F0EAF4
border
#CBC6CE
text
#0C0510
muted
#7D797F

Preview Lab

Preview with #521E85

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

Preview Lab → · Contrast checker → · Palette generator →

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