#521C91#521C91

#521C91 is a dark, vivid violet. Relative luminance 0.047; OKLCH L 38.2% C 0.175 H 298.3°. Best body text is #FFFFFF at 10.86:1 contrast (WCAG AA passes).

Color values

HEX#521C91
RGBrgb(82, 28, 145)
HSLhsl(268, 68%, 34%)
HSVhsv(268, 81%, 57%)
CMYKcmyk(43.4%, 80.7%, 0%, 43.1%)
CIE-LABlab(25.77, 47.90, -53.96)
CIE-LCHlch(25.77, 72.15, 311.59°)
OKLaboklab(38.2% 0.0833 -0.1545)
OKLCHoklch(38.2% 0.175 298.3)
XYZxyz(9.0044, 4.6685, 27.2093)
Luminance0.0467 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#521C91 #5B911C
analogous
#1C2191 #521C91 #8D1C91
triadic
#521C91 #91521C #1C9152
tetradic
#521C91 #911C21 #5B911C #1C918D
square
#521C91 #911C21 #5B911C #1C918D
split-complementary
#521C91 #918D1C #21911C
monochromatic
#18082A #35125E #521C91 #6F26C4 #8E4BDC

Accessibility & contrast

On white

10.86
#521C91 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.93
#521C91 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #521C91
10.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##521C91#FFFFFF#000000##FFFFFF
##521C911.0010.861.9310.86
#FFFFFF10.861.0021.001.00
#0000001.9321.001.0021.00
##FFFFFF10.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D94
Deuteranopia (green-blind)
#003C8F
Tritanopia (blue-blind)
#423D57
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #521c91;
/* rgb */ color: rgb(82, 28, 145);
/* oklch */ color: oklch(38.2% 0.175 298.3);
Tailwind
colors: {
  custom: {
    50: '#895fb2',
    500: '#521c91',
    950: '#000000',
  },
}
SCSS
$custom: #521c91;
$custom-light: #895fb2;
$custom-dark: #000000;
JSON
{
  "hex": "#521c91",
  "rgb": {
    "r": 82,
    "g": 28,
    "b": 145
  },
  "hsl": {
    "h": 267.692,
    "s": 67.63,
    "l": 33.922
  },
  "oklch": {
    "l": 0.38195,
    "c": 0.17547,
    "h": 298.3
  },
  "luminance": 0.04669
}

Semantic roles & 50–950 ramp

primary
#521C91
secondary
#89BE4A
accent
#EB3D9B
background
#F8F5FB
surface
#F0EAF6
border
#CBC6D0
text
#0C0511
muted
#7D7980

Preview Lab

Preview with #521C91

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

Preview Lab → · Contrast checker → · Palette generator →

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