#521571#521571

#521571 is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.7% C 0.150 H 311.0°. Best body text is #FFFFFF at 12.32:1 contrast (WCAG AA passes).

Color values

HEX#521571
RGBrgb(82, 21, 113)
HSLhsl(280, 69%, 26%)
HSVhsv(280, 81%, 44%)
CMYKcmyk(27.4%, 81.4%, 0%, 55.7%)
CIE-LABlab(22.03, 42.93, -39.86)
CIE-LCHlch(22.03, 58.58, 317.12°)
OKLaboklab(34.72% 0.0981 -0.113)
OKLCHoklch(34.72% 0.15 311)
XYZxyz(6.7279, 3.5226, 15.9451)
Luminance0.0352 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#521571 #347115
analogous
#241571 #521571 #711562
triadic
#521571 #715215 #157152
tetradic
#521571 #712415 #347115 #156271
square
#521571 #712415 #347115 #156271
split-complementary
#521571 #627115 #157124
monochromatic
#13051A #2D0B3D #521571 #771FA5 #9D29D7

Accessibility & contrast

On white

12.32
#521571 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#521571 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #521571
12.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##521571#FFFFFF#000000##FFFFFF
##5215711.0012.321.7012.32
#FFFFFF12.321.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003273
Deuteranopia (green-blind)
#00366F
Tritanopia (blue-blind)
#4E2C43
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #521571;
/* rgb */ color: rgb(82, 21, 113);
/* oklch */ color: oklch(34.7% 0.150 311.0);
Tailwind
colors: {
  custom: {
    50: '#875a9a',
    500: '#521571',
    950: '#000000',
  },
}
SCSS
$custom: #521571;
$custom-light: #875a9a;
$custom-dark: #000000;
JSON
{
  "hex": "#521571",
  "rgb": {
    "r": 82,
    "g": 21,
    "b": 113
  },
  "hsl": {
    "h": 279.783,
    "s": 68.657,
    "l": 26.275
  },
  "oklch": {
    "l": 0.34717,
    "c": 0.14959,
    "h": 311
  },
  "luminance": 0.03522
}

Semantic roles & 50–950 ramp

primary
#521571
secondary
#5FA73B
accent
#EB3C77
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0C040E
muted
#7D797E

Preview Lab

Preview with #521571

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

Preview Lab → · Contrast checker → · Palette generator →

#521571 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva