#521C97#521C97

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

Color values

HEX#521C97
RGBrgb(82, 28, 151)
HSLhsl(266, 69%, 35%)
HSVhsv(266, 81%, 59%)
CMYKcmyk(45.7%, 81.5%, 0%, 40.8%)
CIE-LABlab(26.33, 49.43, -56.74)
CIE-LCHlch(26.33, 75.25, 311.06°)
OKLaboklab(38.76% 0.0814 -0.1626)
OKLCHoklch(38.76% 0.182 296.6)
XYZxyz(9.4794, 4.8585, 29.7105)
Luminance0.0486 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#521C97 #61971C
analogous
#1C2497 #521C97 #8F1C97
triadic
#521C97 #97521C #1C9752
tetradic
#521C97 #971C24 #61971C #1C978F
square
#521C97 #971C24 #61971C #1C978F
split-complementary
#521C97 #978F1C #24971C
monochromatic
#1A0930 #361263 #521C97 #6E26CB #8E4FDE

Accessibility & contrast

On white

10.65
#521C97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.97
#521C97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #521C97
10.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##521C97#FFFFFF#000000##FFFFFF
##521C971.0010.651.9710.65
#FFFFFF10.651.0021.001.00
#0000001.9721.001.0021.00
##FFFFFF10.651.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #521c97;
/* rgb */ color: rgb(82, 28, 151);
/* oklch */ color: oklch(38.8% 0.182 296.6);
Tailwind
colors: {
  custom: {
    50: '#8a60b7',
    500: '#521c97',
    950: '#000000',
  },
}
SCSS
$custom: #521c97;
$custom-light: #8a60b7;
$custom-dark: #000000;
JSON
{
  "hex": "#521c97",
  "rgb": {
    "r": 82,
    "g": 28,
    "b": 151
  },
  "hsl": {
    "h": 266.341,
    "s": 68.715,
    "l": 35.098
  },
  "oklch": {
    "l": 0.38755,
    "c": 0.18183,
    "h": 296.6
  },
  "luminance": 0.04859
}

Semantic roles & 50–950 ramp

primary
#521C97
secondary
#8EC14E
accent
#EC3C9F
background
#F8F5FB
surface
#F0EAF6
border
#CBC6D0
text
#0D0511
muted
#7D7980

Preview Lab

Preview with #521C97

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

Preview Lab → · Contrast checker → · Palette generator →

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