#52175A#52175A

#52175A is a dark, vivid purple. Relative luminance 0.031; OKLCH L 33.2% C 0.124 H 322.7°. Best body text is #FFFFFF at 12.89:1 contrast (WCAG AA passes).

Color values

HEX#52175A
RGBrgb(82, 23, 90)
HSLhsl(293, 59%, 22%)
HSVhsv(293, 74%, 35%)
CMYKcmyk(8.9%, 74.4%, 0%, 64.7%)
CIE-LABlab(20.62, 37.10, -27.05)
CIE-LCHlch(20.62, 45.91, 323.90°)
OKLaboklab(33.18% 0.099 -0.0754)
OKLCHoklch(33.18% 0.124 322.7)
XYZxyz(5.6314, 3.1451, 9.9813)
Luminance0.0314 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#52175A #1F5A17
analogous
#31175A #52175A #5A1741
triadic
#52175A #5A5217 #175A52
tetradic
#52175A #5A3117 #1F5A17 #17415A
square
#52175A #5A3117 #1F5A17 #17415A
split-complementary
#52175A #415A17 #175A31
monochromatic
#160618 #260B29 #52175A #7E238B #AB30BB

Accessibility & contrast

On white

12.89
#52175A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#52175A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #52175A
12.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##52175A#FFFFFF#000000##FFFFFF
##52175A1.0012.891.6312.89
#FFFFFF12.891.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#032D5C
Deuteranopia (green-blind)
#213458
Tritanopia (blue-blind)
#532336
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #52175a;
/* rgb */ color: rgb(82, 23, 90);
/* oklch */ color: oklch(33.2% 0.124 322.7);
Tailwind
colors: {
  custom: {
    50: '#855a89',
    500: '#52175a',
    950: '#000000',
  },
}
SCSS
$custom: #52175a;
$custom-light: #855a89;
$custom-dark: #000000;
JSON
{
  "hex": "#52175a",
  "rgb": {
    "r": 82,
    "g": 23,
    "b": 90
  },
  "hsl": {
    "h": 292.836,
    "s": 59.292,
    "l": 22.157
  },
  "oklch": {
    "l": 0.33178,
    "c": 0.12446,
    "h": 322.7
  },
  "luminance": 0.03145
}

Semantic roles & 50–950 ramp

primary
#52175A
secondary
#46913C
accent
#E24558
background
#F8F5F8
surface
#EFE9F0
border
#CAC5CB
text
#0B040B
muted
#7C797C

Preview Lab

Preview with #52175A

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

Preview Lab → · Contrast checker → · Palette generator →

#52175A Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva