#52166D#52166D

#52166D is a dark, vivid purple. Relative luminance 0.035; OKLCH L 34.5% C 0.144 H 312.7°. Best body text is #FFFFFF at 12.39:1 contrast (WCAG AA passes).

Color values

HEX#52166D
RGBrgb(82, 22, 109)
HSLhsl(281, 66%, 26%)
HSVhsv(281, 80%, 43%)
CMYKcmyk(24.8%, 79.8%, 0%, 57.3%)
CIE-LABlab(21.84, 41.63, -37.57)
CIE-LCHlch(21.84, 56.07, 317.94°)
OKLaboklab(34.49% 0.0979 -0.1062)
OKLCHoklch(34.49% 0.145 312.7)
XYZxyz(6.5264, 3.4720, 14.7914)
Luminance0.0347 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#52166D #316D16
analogous
#26166D #52166D #6D165C
triadic
#52166D #6D5216 #166D52
tetradic
#52166D #6D2616 #316D16 #165C6D
square
#52166D #6D2616 #316D16 #165C6D
split-complementary
#52166D #5C6D16 #166D26
monochromatic
#130519 #2C0C3A #52166D #7820A0 #9F2BD3

Accessibility & contrast

On white

12.39
#52166D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#52166D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #52166D
12.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##52166D#FFFFFF#000000##FFFFFF
##52166D1.0012.391.6912.39
#FFFFFF12.391.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00316F
Deuteranopia (green-blind)
#0A366B
Tritanopia (blue-blind)
#4F2A41
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #52166d;
/* rgb */ color: rgb(82, 22, 109);
/* oklch */ color: oklch(34.5% 0.144 312.7);
Tailwind
colors: {
  custom: {
    50: '#865b97',
    500: '#52166d',
    950: '#000000',
  },
}
SCSS
$custom: #52166d;
$custom-light: #865b97;
$custom-dark: #000000;
JSON
{
  "hex": "#52166d",
  "rgb": {
    "r": 82,
    "g": 22,
    "b": 109
  },
  "hsl": {
    "h": 281.379,
    "s": 66.412,
    "l": 25.686
  },
  "oklch": {
    "l": 0.34488,
    "c": 0.1445,
    "h": 312.7
  },
  "luminance": 0.03472
}

Semantic roles & 50–950 ramp

primary
#52166D
secondary
#5CA33C
accent
#E93E73
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0C040D
muted
#7D797E

Preview Lab

Preview with #52166D

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

Preview Lab → · Contrast checker → · Palette generator →

#52166D Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva