#521B97#521B97

#521B97 is a dark, vivid violet. Relative luminance 0.048; OKLCH L 38.7% C 0.183 H 296.7°. Best body text is #FFFFFF at 10.70:1 contrast (WCAG AA passes).

Color values

HEX#521B97
RGBrgb(82, 27, 151)
HSLhsl(267, 70%, 35%)
HSVhsv(267, 82%, 59%)
CMYKcmyk(45.7%, 82.1%, 0%, 40.8%)
CIE-LABlab(26.19, 49.82, -56.97)
CIE-LCHlch(26.19, 75.68, 311.17°)
OKLaboklab(38.66% 0.0821 -0.1633)
OKLCHoklch(38.66% 0.183 296.7)
XYZxyz(9.4560, 4.8119, 29.7027)
Luminance0.0481 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#521B97 #60971B
analogous
#1B2297 #521B97 #901B97
triadic
#521B97 #97521B #1B9752
tetradic
#521B97 #971B22 #60971B #1B9790
square
#521B97 #971B22 #60971B #1B9790
split-complementary
#521B97 #97901B #22971B
monochromatic
#1A082F #361263 #521B97 #6E24CB #8E4DDF

Accessibility & contrast

On white

10.70
#521B97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.96
#521B97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #521B97
10.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##521B97#FFFFFF#000000##FFFFFF
##521B971.0010.701.9610.70
#FFFFFF10.701.0021.001.00
#0000001.9621.001.0021.00
##FFFFFF10.701.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #521b97;
/* rgb */ color: rgb(82, 27, 151);
/* oklch */ color: oklch(38.7% 0.183 296.7);
Tailwind
colors: {
  custom: {
    50: '#8a5fb7',
    500: '#521b97',
    950: '#000000',
  },
}
SCSS
$custom: #521b97;
$custom-light: #8a5fb7;
$custom-dark: #000000;
JSON
{
  "hex": "#521b97",
  "rgb": {
    "r": 82,
    "g": 27,
    "b": 151
  },
  "hsl": {
    "h": 266.613,
    "s": 69.663,
    "l": 34.902
  },
  "oklch": {
    "l": 0.3866,
    "c": 0.18273,
    "h": 296.7
  },
  "luminance": 0.04812
}

Semantic roles & 50–950 ramp

primary
#521B97
secondary
#8EC14C
accent
#EC3B9E
background
#F8F5FB
surface
#F0EAF6
border
#CBC6D0
text
#0D0511
muted
#7D7980

Preview Lab

Preview with #521B97

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

Preview Lab → · Contrast checker → · Palette generator →

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