#52176D#52176D

#52176D is a dark, vivid purple. Relative luminance 0.035; OKLCH L 34.6% C 0.143 H 312.6°. Best body text is #FFFFFF at 12.34:1 contrast (WCAG AA passes).

Color values

HEX#52176D
RGBrgb(82, 23, 109)
HSLhsl(281, 65%, 26%)
HSVhsv(281, 79%, 43%)
CMYKcmyk(24.8%, 78.9%, 0%, 57.3%)
CIE-LABlab(21.98, 41.23, -37.34)
CIE-LCHlch(21.98, 55.62, 317.83°)
OKLaboklab(34.59% 0.0969 -0.1056)
OKLCHoklch(34.59% 0.143 312.6)
XYZxyz(6.5459, 3.5109, 14.7979)
Luminance0.0351 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#52176D #326D17
analogous
#27176D #52176D #6D175D
triadic
#52176D #6D5217 #176D52
tetradic
#52176D #6D2717 #326D17 #175D6D
square
#52176D #6D2717 #326D17 #175D6D
split-complementary
#52176D #5D6D17 #176D27
monochromatic
#130519 #2C0C3A #52176D #7822A0 #9E2CD2

Accessibility & contrast

On white

12.34
#52176D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#52176D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #52176D
12.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##52176D#FFFFFF#000000##FFFFFF
##52176D1.0012.341.7012.34
#FFFFFF12.341.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00326F
Deuteranopia (green-blind)
#0B366B
Tritanopia (blue-blind)
#4F2B41
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #52176d;
/* rgb */ color: rgb(82, 23, 109);
/* oklch */ color: oklch(34.6% 0.143 312.6);
Tailwind
colors: {
  custom: {
    50: '#865b97',
    500: '#52176d',
    950: '#000000',
  },
}
SCSS
$custom: #52176d;
$custom-light: #865b97;
$custom-dark: #000000;
JSON
{
  "hex": "#52176d",
  "rgb": {
    "r": 82,
    "g": 23,
    "b": 109
  },
  "hsl": {
    "h": 281.163,
    "s": 65.152,
    "l": 25.882
  },
  "oklch": {
    "l": 0.34587,
    "c": 0.14334,
    "h": 312.6
  },
  "luminance": 0.03511
}

Semantic roles & 50–950 ramp

primary
#52176D
secondary
#5DA33D
accent
#E84075
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0C040D
muted
#7D797E

Preview Lab

Preview with #52176D

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

Preview Lab → · Contrast checker → · Palette generator →

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