#521780#521780

#521780 is a dark, vivid violet. Relative luminance 0.040; OKLCH L 36.2% C 0.163 H 304.6°. Best body text is #FFFFFF at 11.71:1 contrast (WCAG AA passes).

Color values

HEX#521780
RGBrgb(82, 23, 128)
HSLhsl(274, 70%, 30%)
HSVhsv(274, 82%, 50%)
CMYKcmyk(35.9%, 82%, 0%, 49.8%)
CIE-LABlab(23.56, 45.67, -46.95)
CIE-LCHlch(23.56, 65.50, 314.21°)
OKLaboklab(36.18% 0.0924 -0.1338)
OKLCHoklch(36.18% 0.163 304.6)
XYZxyz(7.6815, 3.9652, 20.7786)
Luminance0.0396 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#521780 #458017
analogous
#1D1780 #521780 #80177A
triadic
#521780 #805217 #178052
tetradic
#521780 #801D17 #458017 #177A80
square
#521780 #801D17 #458017 #177A80
split-complementary
#521780 #7A8017 #17801D
monochromatic
#11051A #310E4C #521780 #7320B4 #9336DB

Accessibility & contrast

On white

11.71
#521780 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.79
#521780 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #521780
11.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##521780#FFFFFF#000000##FFFFFF
##5217801.0011.711.7911.71
#FFFFFF11.711.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.711.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #521780;
/* rgb */ color: rgb(82, 23, 128);
/* oklch */ color: oklch(36.2% 0.163 304.6);
Tailwind
colors: {
  custom: {
    50: '#885ca6',
    500: '#521780',
    950: '#000000',
  },
}
SCSS
$custom: #521780;
$custom-light: #885ca6;
$custom-dark: #000000;
JSON
{
  "hex": "#521780",
  "rgb": {
    "r": 82,
    "g": 23,
    "b": 128
  },
  "hsl": {
    "h": 273.714,
    "s": 69.536,
    "l": 29.608
  },
  "oklch": {
    "l": 0.36183,
    "c": 0.16264,
    "h": 304.6
  },
  "luminance": 0.03965
}

Semantic roles & 50–950 ramp

primary
#521780
secondary
#72B43E
accent
#EC3B89
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C040F
muted
#7D797F

Preview Lab

Preview with #521780

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

Preview Lab → · Contrast checker → · Palette generator →

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