#521166#521166

#521166 is a dark, vivid purple. Relative luminance 0.032; OKLCH L 33.5% C 0.143 H 316.5°. Best body text is #FFFFFF at 12.88:1 contrast (WCAG AA passes).

Color values

HEX#521166
RGBrgb(82, 17, 102)
HSLhsl(286, 71%, 23%)
HSVhsv(286, 83%, 40%)
CMYKcmyk(19.6%, 83.3%, 0%, 60%)
CIE-LABlab(20.65, 41.96, -34.93)
CIE-LCHlch(20.65, 54.60, 320.23°)
OKLaboklab(33.48% 0.1039 -0.0985)
OKLCHoklch(33.48% 0.143 316.5)
XYZxyz(6.0780, 3.1543, 12.8565)
Luminance0.0315 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#521166 #256611
analogous
#271166 #521166 #66114F
triadic
#521166 #665211 #116652
tetradic
#521166 #662711 #256611 #114F66
square
#521166 #662711 #256611 #114F66
split-complementary
#521166 #4F6611 #116627
monochromatic
#15041A #280832 #521166 #7C1A9A #A622CF

Accessibility & contrast

On white

12.88
#521166 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#521166 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #521166
12.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##521166#FFFFFF#000000##FFFFFF
##5211661.0012.881.6312.88
#FFFFFF12.881.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E68
Deuteranopia (green-blind)
#113364
Tritanopia (blue-blind)
#51253C
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #521166;
/* rgb */ color: rgb(82, 17, 102);
/* oklch */ color: oklch(33.5% 0.143 316.5);
Tailwind
colors: {
  custom: {
    50: '#865892',
    500: '#521166',
    950: '#000000',
  },
}
SCSS
$custom: #521166;
$custom-light: #865892;
$custom-dark: #000000;
JSON
{
  "hex": "#521166",
  "rgb": {
    "r": 82,
    "g": 17,
    "b": 102
  },
  "hsl": {
    "h": 285.882,
    "s": 71.429,
    "l": 23.333
  },
  "oklch": {
    "l": 0.33477,
    "c": 0.14314,
    "h": 316.5
  },
  "luminance": 0.03154
}

Semantic roles & 50–950 ramp

primary
#521166
secondary
#4D9E35
accent
#EE3A64
background
#F8F5F9
surface
#F0E9F1
border
#CBC5CB
text
#0C040D
muted
#7D797E

Preview Lab

Preview with #521166

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

Preview Lab → · Contrast checker → · Palette generator →

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