#521168#521168

#521168 is a dark, vivid purple. Relative luminance 0.032; OKLCH L 33.6% C 0.145 H 315.5°. Best body text is #FFFFFF at 12.81:1 contrast (WCAG AA passes).

Color values

HEX#521168
RGBrgb(82, 17, 104)
HSLhsl(285, 72%, 24%)
HSVhsv(285, 84%, 41%)
CMYKcmyk(21.2%, 83.7%, 0%, 59.2%)
CIE-LABlab(20.81, 42.39, -35.99)
CIE-LCHlch(20.81, 55.61, 319.67°)
OKLaboklab(33.63% 0.1035 -0.1016)
OKLCHoklch(33.63% 0.145 315.5)
XYZxyz(6.1784, 3.1945, 13.3852)
Luminance0.0319 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#521168 #276811
analogous
#261168 #521168 #681152
triadic
#521168 #685211 #116852
tetradic
#521168 #682611 #276811 #115268
square
#521168 #682611 #276811 #115268
split-complementary
#521168 #526811 #116826
monochromatic
#15041A #290833 #521168 #7B1A9D #A522D1

Accessibility & contrast

On white

12.81
#521168 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#521168 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #521168
12.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##521168#FFFFFF#000000##FFFFFF
##5211681.0012.811.6412.81
#FFFFFF12.811.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E6A
Deuteranopia (green-blind)
#0E3466
Tritanopia (blue-blind)
#50263D
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #521168;
/* rgb */ color: rgb(82, 17, 104);
/* oklch */ color: oklch(33.6% 0.145 315.5);
Tailwind
colors: {
  custom: {
    50: '#865894',
    500: '#521168',
    950: '#000000',
  },
}
SCSS
$custom: #521168;
$custom-light: #865894;
$custom-dark: #000000;
JSON
{
  "hex": "#521168",
  "rgb": {
    "r": 82,
    "g": 17,
    "b": 104
  },
  "hsl": {
    "h": 284.828,
    "s": 71.901,
    "l": 23.725
  },
  "oklch": {
    "l": 0.33634,
    "c": 0.14503,
    "h": 315.5
  },
  "luminance": 0.03194
}

Semantic roles & 50–950 ramp

primary
#521168
secondary
#50A035
accent
#EF3967
background
#F8F5F9
surface
#F0E9F1
border
#CBC5CB
text
#0C040D
muted
#7D797E

Preview Lab

Preview with #521168

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

Preview Lab → · Contrast checker → · Palette generator →

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