#521E97#521E97

#521E97 is a dark, vivid violet. Relative luminance 0.050; OKLCH L 39.0% C 0.180 H 296.3°. Best body text is #FFFFFF at 10.55:1 contrast (WCAG AA passes).

Color values

HEX#521E97
RGBrgb(82, 30, 151)
HSLhsl(266, 67%, 35%)
HSVhsv(266, 80%, 59%)
CMYKcmyk(45.7%, 80.1%, 0%, 40.8%)
CIE-LABlab(26.61, 48.61, -56.28)
CIE-LCHlch(26.61, 74.36, 310.82°)
OKLaboklab(38.95% 0.0798 -0.1613)
OKLCHoklch(38.95% 0.18 296.3)
XYZxyz(9.5284, 4.9565, 29.7268)
Luminance0.0496 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#521E97 #63971E
analogous
#1E2697 #521E97 #8E1E97
triadic
#521E97 #97521E #1E9752
tetradic
#521E97 #971E26 #63971E #1E978E
square
#521E97 #971E26 #63971E #1E978E
split-complementary
#521E97 #978E1E #26971E
monochromatic
#1B0A31 #361464 #521E97 #6E28CA #8E53DD

Accessibility & contrast

On white

10.55
#521E97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.99
#521E97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #521E97
10.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##521E97#FFFFFF#000000##FFFFFF
##521E971.0010.551.9910.55
#FFFFFF10.551.0021.001.00
#0000001.9921.001.0021.00
##FFFFFF10.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00409A
Deuteranopia (green-blind)
#003D95
Tritanopia (blue-blind)
#3F405A
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #521e97;
/* rgb */ color: rgb(82, 30, 151);
/* oklch */ color: oklch(39.0% 0.180 296.3);
Tailwind
colors: {
  custom: {
    50: '#8a61b7',
    500: '#521e97',
    950: '#000000',
  },
}
SCSS
$custom: #521e97;
$custom-light: #8a61b7;
$custom-dark: #000000;
JSON
{
  "hex": "#521e97",
  "rgb": {
    "r": 82,
    "g": 30,
    "b": 151
  },
  "hsl": {
    "h": 265.785,
    "s": 66.851,
    "l": 35.49
  },
  "oklch": {
    "l": 0.38951,
    "c": 0.17995,
    "h": 296.3
  },
  "luminance": 0.04957
}

Semantic roles & 50–950 ramp

primary
#521E97
secondary
#90C051
accent
#EA3EA0
background
#F8F5FB
surface
#F0EAF6
border
#CBC6D0
text
#0D0511
muted
#7D7980

Preview Lab

Preview with #521E97

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

Preview Lab → · Contrast checker → · Palette generator →

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