#521581#521581

#521581 is a dark, vivid violet. Relative luminance 0.039; OKLCH L 36.1% C 0.166 H 304.5°. Best body text is #FFFFFF at 11.78:1 contrast (WCAG AA passes).

Color values

HEX#521581
RGBrgb(82, 21, 129)
HSLhsl(274, 72%, 29%)
HSVhsv(274, 84%, 51%)
CMYKcmyk(36.4%, 83.7%, 0%, 49.4%)
CIE-LABlab(23.39, 46.66, -47.85)
CIE-LCHlch(23.39, 66.83, 314.28°)
OKLaboklab(36.09% 0.0938 -0.1365)
OKLCHoklch(36.09% 0.166 304.5)
XYZxyz(7.7094, 3.9152, 21.1142)
Luminance0.0391 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#521581 #448115
analogous
#1C1581 #521581 #81157A
triadic
#521581 #815215 #158152
tetradic
#521581 #811C15 #448115 #157A81
square
#521581 #811C15 #448115 #157A81
split-complementary
#521581 #7A8115 #15811C
monochromatic
#11041A #310C4C #521581 #731EB6 #9333DE

Accessibility & contrast

On white

11.78
#521581 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.78
#521581 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #521581
11.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##521581#FFFFFF#000000##FFFFFF
##5215811.0011.781.7811.78
#FFFFFF11.781.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003684
Deuteranopia (green-blind)
#00387F
Tritanopia (blue-blind)
#49334C
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #521581;
/* rgb */ color: rgb(82, 21, 129);
/* oklch */ color: oklch(36.1% 0.166 304.5);
Tailwind
colors: {
  custom: {
    50: '#885ba6',
    500: '#521581',
    950: '#000000',
  },
}
SCSS
$custom: #521581;
$custom-light: #885ba6;
$custom-dark: #000000;
JSON
{
  "hex": "#521581",
  "rgb": {
    "r": 82,
    "g": 21,
    "b": 129
  },
  "hsl": {
    "h": 273.889,
    "s": 72,
    "l": 29.412
  },
  "oklch": {
    "l": 0.36094,
    "c": 0.16557,
    "h": 304.5
  },
  "luminance": 0.03915
}

Semantic roles & 50–950 ramp

primary
#521581
secondary
#71B63C
accent
#EF3988
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C040F
muted
#7D797F

Preview Lab

Preview with #521581

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

Preview Lab → · Contrast checker → · Palette generator →

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