#521E96#521E96

#521E96 is a dark, vivid violet. Relative luminance 0.049; OKLCH L 38.9% C 0.179 H 296.6°. Best body text is #FFFFFF at 10.58:1 contrast (WCAG AA passes).

Color values

HEX#521E96
RGBrgb(82, 30, 150)
HSLhsl(266, 67%, 35%)
HSVhsv(266, 80%, 59%)
CMYKcmyk(45.3%, 80%, 0%, 41.2%)
CIE-LABlab(26.52, 48.35, -55.82)
CIE-LCHlch(26.52, 73.84, 310.90°)
OKLaboklab(38.86% 0.0801 -0.1599)
OKLCHoklch(38.86% 0.179 296.6)
XYZxyz(9.4475, 4.9242, 29.3009)
Luminance0.0492 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#521E96 #62961E
analogous
#1E2696 #521E96 #8E1E96
triadic
#521E96 #96521E #1E9652
tetradic
#521E96 #961E26 #62961E #1E968E
square
#521E96 #961E26 #62961E #1E968E
split-complementary
#521E96 #968E1E #26961E
monochromatic
#1A0A30 #361463 #521E96 #6E28C9 #8E52DC

Accessibility & contrast

On white

10.58
#521E96 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.98
#521E96 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #521E96
10.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##521E96#FFFFFF#000000##FFFFFF
##521E961.0010.581.9810.58
#FFFFFF10.581.0021.001.00
#0000001.9821.001.0021.00
##FFFFFF10.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F99
Deuteranopia (green-blind)
#003D94
Tritanopia (blue-blind)
#3F405A
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #521e96;
/* rgb */ color: rgb(82, 30, 150);
/* oklch */ color: oklch(38.9% 0.179 296.6);
Tailwind
colors: {
  custom: {
    50: '#8a61b6',
    500: '#521e96',
    950: '#000000',
  },
}
SCSS
$custom: #521e96;
$custom-light: #8a61b6;
$custom-dark: #000000;
JSON
{
  "hex": "#521e96",
  "rgb": {
    "r": 82,
    "g": 30,
    "b": 150
  },
  "hsl": {
    "h": 266,
    "s": 66.667,
    "l": 35.294
  },
  "oklch": {
    "l": 0.38858,
    "c": 0.17887,
    "h": 296.6
  },
  "luminance": 0.04924
}

Semantic roles & 50–950 ramp

primary
#521E96
secondary
#8FBF50
accent
#EA3E9F
background
#F8F5FB
surface
#F0EAF6
border
#CBC6D0
text
#0D0511
muted
#7D7980

Preview Lab

Preview with #521E96

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

Preview Lab → · Contrast checker → · Palette generator →

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