#521880#521880

#521880 is a dark, vivid violet. Relative luminance 0.040; OKLCH L 36.3% C 0.162 H 304.5°. Best body text is #FFFFFF at 11.66:1 contrast (WCAG AA passes).

Color values

HEX#521880
RGBrgb(82, 24, 128)
HSLhsl(273, 68%, 30%)
HSVhsv(273, 81%, 50%)
CMYKcmyk(35.9%, 81.3%, 0%, 49.8%)
CIE-LABlab(23.69, 45.29, -46.73)
CIE-LCHlch(23.69, 65.07, 314.10°)
OKLaboklab(36.28% 0.0916 -0.1332)
OKLCHoklch(36.28% 0.162 304.5)
XYZxyz(7.7017, 4.0057, 20.7853)
Luminance0.0401 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#521880 #468018
analogous
#1E1880 #521880 #80187A
triadic
#521880 #805218 #188052
tetradic
#521880 #801E18 #468018 #187A80
square
#521880 #801E18 #468018 #187A80
split-complementary
#521880 #7A8018 #18801E
monochromatic
#11051A #310E4C #521880 #7322B4 #9339DA

Accessibility & contrast

On white

11.66
#521880 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.80
#521880 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #521880
11.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##521880#FFFFFF#000000##FFFFFF
##5218801.0011.661.8011.66
#FFFFFF11.661.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003783
Deuteranopia (green-blind)
#00387E
Tritanopia (blue-blind)
#49344C
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #521880;
/* rgb */ color: rgb(82, 24, 128);
/* oklch */ color: oklch(36.3% 0.162 304.5);
Tailwind
colors: {
  custom: {
    50: '#885da6',
    500: '#521880',
    950: '#000000',
  },
}
SCSS
$custom: #521880;
$custom-light: #885da6;
$custom-dark: #000000;
JSON
{
  "hex": "#521880",
  "rgb": {
    "r": 82,
    "g": 24,
    "b": 128
  },
  "hsl": {
    "h": 273.462,
    "s": 68.421,
    "l": 29.804
  },
  "oklch": {
    "l": 0.36276,
    "c": 0.16165,
    "h": 304.5
  },
  "luminance": 0.04006
}

Semantic roles & 50–950 ramp

primary
#521880
secondary
#73B440
accent
#EB3D8A
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C040F
muted
#7D797F

Preview Lab

Preview with #521880

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

Preview Lab → · Contrast checker → · Palette generator →

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