#521680#521680

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

Color values

HEX#521680
RGBrgb(82, 22, 128)
HSLhsl(274, 71%, 29%)
HSVhsv(274, 83%, 50%)
CMYKcmyk(35.9%, 82.8%, 0%, 49.8%)
CIE-LABlab(23.43, 46.05, -47.16)
CIE-LCHlch(23.43, 65.91, 314.32°)
OKLaboklab(36.09% 0.0933 -0.1344)
OKLCHoklch(36.09% 0.164 304.7)
XYZxyz(7.6620, 3.9262, 20.7721)
Luminance0.0393 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#521680 #448016
analogous
#1D1680 #521680 #801679
triadic
#521680 #805216 #168052
tetradic
#521680 #801D16 #448016 #167980
square
#521680 #801D16 #448016 #167980
split-complementary
#521680 #798016 #16801D
monochromatic
#11041A #310D4C #521680 #731FB4 #9334DC

Accessibility & contrast

On white

11.76
#521680 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #521680
11.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##521680#FFFFFF#000000##FFFFFF
##5216801.0011.761.7911.76
#FFFFFF11.761.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.761.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #521680;
/* rgb */ color: rgb(82, 22, 128);
/* oklch */ color: oklch(36.1% 0.164 304.7);
Tailwind
colors: {
  custom: {
    50: '#885ca6',
    500: '#521680',
    950: '#000000',
  },
}
SCSS
$custom: #521680;
$custom-light: #885ca6;
$custom-dark: #000000;
JSON
{
  "hex": "#521680",
  "rgb": {
    "r": 82,
    "g": 22,
    "b": 128
  },
  "hsl": {
    "h": 273.962,
    "s": 70.667,
    "l": 29.412
  },
  "oklch": {
    "l": 0.36092,
    "c": 0.16362,
    "h": 304.7
  },
  "luminance": 0.03926
}

Semantic roles & 50–950 ramp

primary
#521680
secondary
#71B53D
accent
#ED3A88
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C040F
muted
#7D797F

Preview Lab

Preview with #521680

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

Preview Lab → · Contrast checker → · Palette generator →

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