#52166C#52166C

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

Color values

HEX#52166C
RGBrgb(82, 22, 108)
HSLhsl(282, 66%, 25%)
HSVhsv(282, 80%, 42%)
CMYKcmyk(24.1%, 79.6%, 0%, 57.6%)
CIE-LABlab(21.77, 41.40, -37.04)
CIE-LCHlch(21.77, 55.56, 318.18°)
OKLaboklab(34.41% 0.0981 -0.1047)
OKLCHoklch(34.41% 0.144 313.1)
XYZxyz(6.4729, 3.4506, 14.5095)
Luminance0.0345 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#52166C #306C16
analogous
#27166C #52166C #6C165B
triadic
#52166C #6C5216 #166C52
tetradic
#52166C #6C2716 #306C16 #165B6C
square
#52166C #6C2716 #306C16 #165B6C
split-complementary
#52166C #5B6C16 #166C27
monochromatic
#130519 #2B0C39 #52166C #79209F #9F2BD2

Accessibility & contrast

On white

12.43
#52166C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #52166C
12.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##52166C#FFFFFF#000000##FFFFFF
##52166C1.0012.431.6912.43
#FFFFFF12.431.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00316E
Deuteranopia (green-blind)
#0C356A
Tritanopia (blue-blind)
#4F2A40
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #52166c;
/* rgb */ color: rgb(82, 22, 108);
/* oklch */ color: oklch(34.4% 0.144 313.1);
Tailwind
colors: {
  custom: {
    50: '#865b97',
    500: '#52166c',
    950: '#000000',
  },
}
SCSS
$custom: #52166c;
$custom-light: #865b97;
$custom-dark: #000000;
JSON
{
  "hex": "#52166c",
  "rgb": {
    "r": 82,
    "g": 22,
    "b": 108
  },
  "hsl": {
    "h": 281.86,
    "s": 66.154,
    "l": 25.49
  },
  "oklch": {
    "l": 0.34408,
    "c": 0.14351,
    "h": 313.1
  },
  "luminance": 0.0345
}

Semantic roles & 50–950 ramp

primary
#52166C
secondary
#5BA23C
accent
#E93F72
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0C040D
muted
#7D797E

Preview Lab

Preview with #52166C

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

Preview Lab → · Contrast checker → · Palette generator →

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