#52175C#52175C

#52175C is a dark, vivid purple. Relative luminance 0.032; OKLCH L 33.3% C 0.126 H 321.5°. Best body text is #FFFFFF at 12.84:1 contrast (WCAG AA passes).

Color values

HEX#52175C
RGBrgb(82, 23, 92)
HSLhsl(291, 60%, 23%)
HSVhsv(291, 75%, 36%)
CMYKcmyk(10.9%, 75%, 0%, 63.9%)
CIE-LABlab(20.75, 37.51, -28.17)
CIE-LCHlch(20.75, 46.91, 323.10°)
OKLaboklab(33.32% 0.0989 -0.0787)
OKLCHoklch(33.32% 0.126 321.5)
XYZxyz(5.7176, 3.1796, 10.4357)
Luminance0.0318 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#52175C #215C17
analogous
#2F175C #52175C #5C1744
triadic
#52175C #5C5217 #175C52
tetradic
#52175C #5C2F17 #215C17 #17445C
square
#52175C #5C2F17 #215C17 #17445C
split-complementary
#52175C #445C17 #175C2F
monochromatic
#160618 #260B2B #52175C #7E238D #A92FBE

Accessibility & contrast

On white

12.84
#52175C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#52175C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #52175C
12.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##52175C#FFFFFF#000000##FFFFFF
##52175C1.0012.841.6412.84
#FFFFFF12.841.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E5E
Deuteranopia (green-blind)
#1F345A
Tritanopia (blue-blind)
#532337
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #52175c;
/* rgb */ color: rgb(82, 23, 92);
/* oklch */ color: oklch(33.3% 0.126 321.5);
Tailwind
colors: {
  custom: {
    50: '#855a8a',
    500: '#52175c',
    950: '#000000',
  },
}
SCSS
$custom: #52175c;
$custom-light: #855a8a;
$custom-dark: #000000;
JSON
{
  "hex": "#52175c",
  "rgb": {
    "r": 82,
    "g": 23,
    "b": 92
  },
  "hsl": {
    "h": 291.304,
    "s": 60,
    "l": 22.549
  },
  "oklch": {
    "l": 0.33316,
    "c": 0.12641,
    "h": 321.5
  },
  "luminance": 0.03179
}

Semantic roles & 50–950 ramp

primary
#52175C
secondary
#49933C
accent
#E3455C
background
#F8F5F8
surface
#EFE9F0
border
#CAC5CB
text
#0B040C
muted
#7C797D

Preview Lab

Preview with #52175C

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

Preview Lab → · Contrast checker → · Palette generator →

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