#521480#521480

#521480 is a dark, vivid violet. Relative luminance 0.039; OKLCH L 35.9% C 0.165 H 305.0°. Best body text is #FFFFFF at 11.86:1 contrast (WCAG AA passes).

Color values

HEX#521480
RGBrgb(82, 20, 128)
HSLhsl(274, 73%, 29%)
HSVhsv(274, 84%, 50%)
CMYKcmyk(35.9%, 84.4%, 0%, 49.8%)
CIE-LABlab(23.18, 46.77, -47.56)
CIE-LCHlch(23.18, 66.71, 314.52°)
OKLaboklab(35.92% 0.0948 -0.1356)
OKLCHoklch(35.92% 0.165 305)
XYZxyz(7.6252, 3.8527, 20.7598)
Luminance0.0385 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#521480 #428014
analogous
#1C1480 #521480 #801478
triadic
#521480 #805214 #148052
tetradic
#521480 #801C14 #428014 #147880
square
#521480 #801C14 #428014 #147880
split-complementary
#521480 #788014 #14801C
monochromatic
#11041A #300C4B #521480 #741CB5 #9430DF

Accessibility & contrast

On white

11.86
#521480 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#521480 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #521480
11.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##521480#FFFFFF#000000##FFFFFF
##5214801.0011.861.7711.86
#FFFFFF11.861.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003683
Deuteranopia (green-blind)
#00377E
Tritanopia (blue-blind)
#49324B
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #521480;
/* rgb */ color: rgb(82, 20, 128);
/* oklch */ color: oklch(35.9% 0.165 305.0);
Tailwind
colors: {
  custom: {
    50: '#885ba6',
    500: '#521480',
    950: '#000000',
  },
}
SCSS
$custom: #521480;
$custom-light: #885ba6;
$custom-dark: #000000;
JSON
{
  "hex": "#521480",
  "rgb": {
    "r": 82,
    "g": 20,
    "b": 128
  },
  "hsl": {
    "h": 274.444,
    "s": 72.973,
    "l": 29.02
  },
  "oklch": {
    "l": 0.3592,
    "c": 0.16547,
    "h": 305
  },
  "luminance": 0.03853
}

Semantic roles & 50–950 ramp

primary
#521480
secondary
#6FB53B
accent
#F03886
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C040F
muted
#7D797F

Preview Lab

Preview with #521480

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

Preview Lab → · Contrast checker → · Palette generator →

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