#521066#521066

#521066 is a dark, vivid purple. Relative luminance 0.031; OKLCH L 33.4% C 0.144 H 316.6°. Best body text is #FFFFFF at 12.92:1 contrast (WCAG AA passes).

Color values

HEX#521066
RGBrgb(82, 16, 102)
HSLhsl(286, 73%, 23%)
HSVhsv(286, 84%, 40%)
CMYKcmyk(19.6%, 84.3%, 0%, 60%)
CIE-LABlab(20.53, 42.31, -35.12)
CIE-LCHlch(20.53, 54.98, 320.31°)
OKLaboklab(33.39% 0.1048 -0.099)
OKLCHoklch(33.39% 0.144 316.6)
XYZxyz(6.0629, 3.1240, 12.8514)
Luminance0.0312 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#521066 #246610
analogous
#271066 #521066 #66104F
triadic
#521066 #665210 #106652
tetradic
#521066 #662710 #246610 #104F66
square
#521066 #662710 #246610 #104F66
split-complementary
#521066 #4F6610 #106627
monochromatic
#15041A #270831 #521066 #7D189B #A721D0

Accessibility & contrast

On white

12.92
#521066 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#521066 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #521066
12.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##521066#FFFFFF#000000##FFFFFF
##5210661.0012.921.6212.92
#FFFFFF12.921.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E68
Deuteranopia (green-blind)
#103364
Tritanopia (blue-blind)
#51243B
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #521066;
/* rgb */ color: rgb(82, 16, 102);
/* oklch */ color: oklch(33.4% 0.144 316.6);
Tailwind
colors: {
  custom: {
    50: '#865892',
    500: '#521066',
    950: '#000000',
  },
}
SCSS
$custom: #521066;
$custom-light: #865892;
$custom-dark: #000000;
JSON
{
  "hex": "#521066",
  "rgb": {
    "r": 82,
    "g": 16,
    "b": 102
  },
  "hsl": {
    "h": 286.047,
    "s": 72.881,
    "l": 23.137
  },
  "oklch": {
    "l": 0.33394,
    "c": 0.14416,
    "h": 316.6
  },
  "luminance": 0.03124
}

Semantic roles & 50–950 ramp

primary
#521066
secondary
#4C9E33
accent
#F03863
background
#F8F5F9
surface
#F0E9F1
border
#CBC5CB
text
#0C040D
muted
#7D797E

Preview Lab

Preview with #521066

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

Preview Lab → · Contrast checker → · Palette generator →

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