#521566#521566

#521566 is a dark, vivid purple. Relative luminance 0.033; OKLCH L 33.8% C 0.139 H 316.2°. Best body text is #FFFFFF at 12.67:1 contrast (WCAG AA passes).

Color values

HEX#521566
RGBrgb(82, 21, 102)
HSLhsl(285, 66%, 24%)
HSVhsv(285, 79%, 40%)
CMYKcmyk(19.6%, 79.4%, 0%, 60%)
CIE-LABlab(21.17, 40.48, -34.09)
CIE-LCHlch(21.17, 52.92, 319.89°)
OKLaboklab(33.84% 0.1001 -0.096)
OKLCHoklch(33.84% 0.139 316.2)
XYZxyz(6.1457, 3.2897, 12.8790)
Luminance0.0329 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#521566 #296615
analogous
#2A1566 #521566 #661552
triadic
#521566 #665215 #156652
tetradic
#521566 #662A15 #296615 #155266
square
#521566 #662A15 #296615 #155266
split-complementary
#521566 #526615 #15662A
monochromatic
#140519 #290B33 #521566 #7B1F99 #A42ACC

Accessibility & contrast

On white

12.67
#521566 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#521566 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #521566
12.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##521566#FFFFFF#000000##FFFFFF
##5215661.0012.671.6612.67
#FFFFFF12.671.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F68
Deuteranopia (green-blind)
#143564
Tritanopia (blue-blind)
#51273D
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #521566;
/* rgb */ color: rgb(82, 21, 102);
/* oklch */ color: oklch(33.8% 0.139 316.2);
Tailwind
colors: {
  custom: {
    50: '#865a92',
    500: '#521566',
    950: '#000000',
  },
}
SCSS
$custom: #521566;
$custom-light: #865a92;
$custom-dark: #000000;
JSON
{
  "hex": "#521566",
  "rgb": {
    "r": 82,
    "g": 21,
    "b": 102
  },
  "hsl": {
    "h": 285.185,
    "s": 65.854,
    "l": 24.118
  },
  "oklch": {
    "l": 0.33842,
    "c": 0.13873,
    "h": 316.2
  },
  "luminance": 0.03289
}

Semantic roles & 50–950 ramp

primary
#521566
secondary
#529D3A
accent
#E93F69
background
#F8F5F9
surface
#F0E9F1
border
#CBC5CB
text
#0B040D
muted
#7C797E

Preview Lab

Preview with #521566

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

Preview Lab → · Contrast checker → · Palette generator →

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