#5D175C#5D175C

#5D175C is a dark, vivid purple. Relative luminance 0.037; OKLCH L 35.1% C 0.132 H 328.6°. Best body text is #FFFFFF at 12.05:1 contrast (WCAG AA passes).

Color values

HEX#5D175C
RGBrgb(93, 23, 92)
HSLhsl(301, 60%, 23%)
HSVhsv(301, 75%, 36%)
CMYKcmyk(0%, 75.3%, 1.1%, 63.5%)
CIE-LABlab(22.70, 40.27, -24.95)
CIE-LCHlch(22.70, 47.37, 328.23°)
OKLaboklab(35.1% 0.1128 -0.069)
OKLCHoklch(35.1% 0.132 328.6)
XYZxyz(6.7523, 3.7131, 10.4842)
Luminance0.0371 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D175C #175D18
analogous
#3B175D #5D175C #5D1739
triadic
#5D175C #5C5D17 #175C5D
tetradic
#5D175C #5D3B17 #175D18 #17395D
square
#5D175C #5D3B17 #175D18 #17395D
split-complementary
#5D175C #395D17 #175D3B
monochromatic
#190618 #2C0B2B #5D175C #8E238D #BF2FBD

Accessibility & contrast

On white

12.05
#5D175C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#5D175C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D175C
12.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D175C#FFFFFF#000000##FFFFFF
##5D175C1.0012.051.7412.05
#FFFFFF12.051.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0C305E
Deuteranopia (green-blind)
#2A395A
Tritanopia (blue-blind)
#602138
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #5d175c;
/* rgb */ color: rgb(93, 23, 92);
/* oklch */ color: oklch(35.1% 0.132 328.6);
Tailwind
colors: {
  custom: {
    50: '#8e5c8a',
    500: '#5d175c',
    950: '#000000',
  },
}
SCSS
$custom: #5d175c;
$custom-light: #8e5c8a;
$custom-dark: #000000;
JSON
{
  "hex": "#5d175c",
  "rgb": {
    "r": 93,
    "g": 23,
    "b": 92
  },
  "hsl": {
    "h": 300.857,
    "s": 60.345,
    "l": 22.745
  },
  "oklch": {
    "l": 0.35098,
    "c": 0.13226,
    "h": 328.6
  },
  "luminance": 0.03713
}

Semantic roles & 50–950 ramp

primary
#5D175C
secondary
#3C943D
accent
#E34744
background
#F8F5F8
surface
#F0E9F0
border
#CBC5CB
text
#0D040C
muted
#7D797D

Preview Lab

Preview with #5D175C

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

Preview Lab → · Contrast checker → · Palette generator →

#5D175C Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva