#52175B#52175B

#52175B is a dark, vivid purple. Relative luminance 0.032; OKLCH L 33.2% C 0.125 H 322.1°. Best body text is #FFFFFF at 12.86:1 contrast (WCAG AA passes).

Color values

HEX#52175B
RGBrgb(82, 23, 91)
HSLhsl(292, 60%, 22%)
HSVhsv(292, 75%, 36%)
CMYKcmyk(9.9%, 74.7%, 0%, 64.3%)
CIE-LABlab(20.68, 37.30, -27.61)
CIE-LCHlch(20.68, 46.41, 323.49°)
OKLaboklab(33.25% 0.099 -0.0771)
OKLCHoklch(33.25% 0.125 322.1)
XYZxyz(5.6742, 3.1623, 10.2070)
Luminance0.0316 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#52175B #205B17
analogous
#30175B #52175B #5B1742
triadic
#52175B #5B5217 #175B52
tetradic
#52175B #5B3017 #205B17 #17425B
square
#52175B #5B3017 #205B17 #17425B
split-complementary
#52175B #425B17 #175B30
monochromatic
#160618 #260B2A #52175B #7E238C #AA30BD

Accessibility & contrast

On white

12.86
#52175B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #52175B
12.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##52175B#FFFFFF#000000##FFFFFF
##52175B1.0012.861.6312.86
#FFFFFF12.861.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#012E5D
Deuteranopia (green-blind)
#203459
Tritanopia (blue-blind)
#532337
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #52175b;
/* rgb */ color: rgb(82, 23, 91);
/* oklch */ color: oklch(33.2% 0.125 322.1);
Tailwind
colors: {
  custom: {
    50: '#855a8a',
    500: '#52175b',
    950: '#000000',
  },
}
SCSS
$custom: #52175b;
$custom-light: #855a8a;
$custom-dark: #000000;
JSON
{
  "hex": "#52175b",
  "rgb": {
    "r": 82,
    "g": 23,
    "b": 91
  },
  "hsl": {
    "h": 292.059,
    "s": 59.649,
    "l": 22.353
  },
  "oklch": {
    "l": 0.33247,
    "c": 0.12544,
    "h": 322.1
  },
  "luminance": 0.03162
}

Semantic roles & 50–950 ramp

primary
#52175B
secondary
#47923C
accent
#E3455A
background
#F8F5F8
surface
#EFE9F0
border
#CAC5CB
text
#0B040B
muted
#7C797C

Preview Lab

Preview with #52175B

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

Preview Lab → · Contrast checker → · Palette generator →

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