#52176E#52176E

#52176E is a dark, vivid purple. Relative luminance 0.035; OKLCH L 34.7% C 0.144 H 312.1°. Best body text is #FFFFFF at 12.31:1 contrast (WCAG AA passes).

Color values

HEX#52176E
RGBrgb(82, 23, 110)
HSLhsl(281, 65%, 26%)
HSVhsv(281, 79%, 43%)
CMYKcmyk(25.5%, 79.1%, 0%, 56.9%)
CIE-LABlab(22.06, 41.45, -37.86)
CIE-LCHlch(22.06, 56.14, 317.59°)
OKLaboklab(34.67% 0.0968 -0.1071)
OKLCHoklch(34.67% 0.144 312.1)
XYZxyz(6.6000, 3.5326, 15.0830)
Luminance0.0353 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#52176E #336E17
analogous
#26176E #52176E #6E175E
triadic
#52176E #6E5217 #176E52
tetradic
#52176E #6E2617 #336E17 #175E6E
square
#52176E #6E2617 #336E17 #175E6E
split-complementary
#52176E #5E6E17 #176E26
monochromatic
#130519 #2C0C3B #52176E #7822A1 #9D2CD3

Accessibility & contrast

On white

12.31
#52176E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#52176E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #52176E
12.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##52176E#FFFFFF#000000##FFFFFF
##52176E1.0012.311.7112.31
#FFFFFF12.311.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003270
Deuteranopia (green-blind)
#09366C
Tritanopia (blue-blind)
#4F2B42
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #52176e;
/* rgb */ color: rgb(82, 23, 110);
/* oklch */ color: oklch(34.7% 0.144 312.1);
Tailwind
colors: {
  custom: {
    50: '#865b98',
    500: '#52176e',
    950: '#000000',
  },
}
SCSS
$custom: #52176e;
$custom-light: #865b98;
$custom-dark: #000000;
JSON
{
  "hex": "#52176e",
  "rgb": {
    "r": 82,
    "g": 23,
    "b": 110
  },
  "hsl": {
    "h": 280.69,
    "s": 65.414,
    "l": 26.078
  },
  "oklch": {
    "l": 0.34667,
    "c": 0.14435,
    "h": 312.1
  },
  "luminance": 0.03532
}

Semantic roles & 50–950 ramp

primary
#52176E
secondary
#5EA43D
accent
#E83F76
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0C040E
muted
#7D797E

Preview Lab

Preview with #52176E

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

Preview Lab → · Contrast checker → · Palette generator →

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