#52176F#52176F

#52176F is a dark, vivid purple. Relative luminance 0.036; OKLCH L 34.7% C 0.145 H 311.6°. Best body text is #FFFFFF at 12.27:1 contrast (WCAG AA passes).

Color values

HEX#52176F
RGBrgb(82, 23, 111)
HSLhsl(280, 66%, 26%)
HSVhsv(280, 79%, 44%)
CMYKcmyk(26.1%, 79.3%, 0%, 56.5%)
CIE-LABlab(22.14, 41.68, -38.38)
CIE-LCHlch(22.14, 56.66, 317.36°)
OKLaboklab(34.75% 0.0966 -0.1086)
OKLCHoklch(34.75% 0.145 311.6)
XYZxyz(6.6548, 3.5545, 15.3714)
Luminance0.0355 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#52176F #346F17
analogous
#26176F #52176F #6F1760
triadic
#52176F #6F5217 #176F52
tetradic
#52176F #6F2617 #346F17 #17606F
square
#52176F #6F2617 #346F17 #17606F
split-complementary
#52176F #606F17 #176F26
monochromatic
#130519 #2D0C3C #52176F #7722A2 #9D2DD3

Accessibility & contrast

On white

12.27
#52176F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #52176F
12.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##52176F#FFFFFF#000000##FFFFFF
##52176F1.0012.271.7112.27
#FFFFFF12.271.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003271
Deuteranopia (green-blind)
#07366D
Tritanopia (blue-blind)
#4E2C42
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #52176f;
/* rgb */ color: rgb(82, 23, 111);
/* oklch */ color: oklch(34.7% 0.145 311.6);
Tailwind
colors: {
  custom: {
    50: '#865b99',
    500: '#52176f',
    950: '#000000',
  },
}
SCSS
$custom: #52176f;
$custom-light: #865b99;
$custom-dark: #000000;
JSON
{
  "hex": "#52176f",
  "rgb": {
    "r": 82,
    "g": 23,
    "b": 111
  },
  "hsl": {
    "h": 280.227,
    "s": 65.672,
    "l": 26.275
  },
  "oklch": {
    "l": 0.34747,
    "c": 0.14536,
    "h": 311.6
  },
  "luminance": 0.03554
}

Semantic roles & 50–950 ramp

primary
#52176F
secondary
#5FA53D
accent
#E93F77
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0C040E
muted
#7D797E

Preview Lab

Preview with #52176F

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

Preview Lab → · Contrast checker → · Palette generator →

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