#52176B#52176B

#52176B is a dark, vivid purple. Relative luminance 0.035; OKLCH L 34.4% C 0.141 H 313.5°. Best body text is #FFFFFF at 12.40:1 contrast (WCAG AA passes).

Color values

HEX#52176B
RGBrgb(82, 23, 107)
HSLhsl(282, 65%, 25%)
HSVhsv(282, 79%, 42%)
CMYKcmyk(23.4%, 78.5%, 0%, 58%)
CIE-LABlab(21.83, 40.77, -36.29)
CIE-LCHlch(21.83, 54.58, 318.33°)
OKLaboklab(34.43% 0.0973 -0.1025)
OKLCHoklch(34.43% 0.141 313.5)
XYZxyz(6.4394, 3.4684, 14.2373)
Luminance0.0347 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#52176B #306B17
analogous
#28176B #52176B #6B175A
triadic
#52176B #6B5217 #176B52
tetradic
#52176B #6B2817 #306B17 #175A6B
square
#52176B #6B2817 #306B17 #175A6B
split-complementary
#52176B #5A6B17 #176B28
monochromatic
#130519 #2B0C39 #52176B #79229D #9F2DD0

Accessibility & contrast

On white

12.40
#52176B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#52176B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #52176B
12.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##52176B#FFFFFF#000000##FFFFFF
##52176B1.0012.401.6912.40
#FFFFFF12.401.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.401.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #52176b;
/* rgb */ color: rgb(82, 23, 107);
/* oklch */ color: oklch(34.4% 0.141 313.5);
Tailwind
colors: {
  custom: {
    50: '#865b96',
    500: '#52176b',
    950: '#000000',
  },
}
SCSS
$custom: #52176b;
$custom-light: #865b96;
$custom-dark: #000000;
JSON
{
  "hex": "#52176b",
  "rgb": {
    "r": 82,
    "g": 23,
    "b": 107
  },
  "hsl": {
    "h": 282.143,
    "s": 64.615,
    "l": 25.49
  },
  "oklch": {
    "l": 0.34429,
    "c": 0.14133,
    "h": 313.5
  },
  "luminance": 0.03468
}

Semantic roles & 50–950 ramp

primary
#52176B
secondary
#5BA13D
accent
#E84072
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0B040D
muted
#7C797E

Preview Lab

Preview with #52176B

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

Preview Lab → · Contrast checker → · Palette generator →

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