#521A97#521A97

#521A97 is a dark, vivid violet. Relative luminance 0.048; OKLCH L 38.6% C 0.184 H 296.8°. Best body text is #FFFFFF at 10.75:1 contrast (WCAG AA passes).

Color values

HEX#521A97
RGBrgb(82, 26, 151)
HSLhsl(267, 71%, 35%)
HSVhsv(267, 83%, 59%)
CMYKcmyk(45.7%, 82.8%, 0%, 40.8%)
CIE-LABlab(26.06, 50.21, -57.18)
CIE-LCHlch(26.06, 76.10, 311.28°)
OKLaboklab(38.57% 0.0828 -0.1639)
OKLCHoklch(38.57% 0.184 296.8)
XYZxyz(9.4335, 4.7668, 29.6952)
Luminance0.0477 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#521A97 #5F971A
analogous
#1A2197 #521A97 #911A97
triadic
#521A97 #97521A #1A9752
tetradic
#521A97 #971A21 #5F971A #1A9791
square
#521A97 #971A21 #5F971A #1A9791
split-complementary
#521A97 #97911A #21971A
monochromatic
#19082F #361163 #521A97 #6E23CB #8E4BE0

Accessibility & contrast

On white

10.75
#521A97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.95
#521A97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #521A97
10.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##521A97#FFFFFF#000000##FFFFFF
##521A971.0010.751.9510.75
#FFFFFF10.751.0021.001.00
#0000001.9521.001.0021.00
##FFFFFF10.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E9A
Deuteranopia (green-blind)
#003C95
Tritanopia (blue-blind)
#3F3E5A
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #521a97;
/* rgb */ color: rgb(82, 26, 151);
/* oklch */ color: oklch(38.6% 0.184 296.8);
Tailwind
colors: {
  custom: {
    50: '#8a5fb7',
    500: '#521a97',
    950: '#000000',
  },
}
SCSS
$custom: #521a97;
$custom-light: #8a5fb7;
$custom-dark: #000000;
JSON
{
  "hex": "#521a97",
  "rgb": {
    "r": 82,
    "g": 26,
    "b": 151
  },
  "hsl": {
    "h": 266.88,
    "s": 70.621,
    "l": 34.706
  },
  "oklch": {
    "l": 0.38569,
    "c": 0.18362,
    "h": 296.8
  },
  "luminance": 0.04767
}

Semantic roles & 50–950 ramp

primary
#521A97
secondary
#8DC24B
accent
#ED3A9D
background
#F8F5FB
surface
#F0EAF6
border
#CBC6D0
text
#0D0511
muted
#7D7980

Preview Lab

Preview with #521A97

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

Preview Lab → · Contrast checker → · Palette generator →

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