#5D175B#5D175B

#5D175B is a dark, vivid purple. Relative luminance 0.037; OKLCH L 35.0% C 0.131 H 329.2°. Best body text is #FFFFFF at 12.08:1 contrast (WCAG AA passes).

Color values

HEX#5D175B
RGBrgb(93, 23, 91)
HSLhsl(302, 60%, 23%)
HSVhsv(302, 75%, 36%)
CMYKcmyk(0%, 75.3%, 2.2%, 63.5%)
CIE-LABlab(22.64, 40.09, -24.38)
CIE-LCHlch(22.64, 46.92, 328.70°)
OKLaboklab(35.03% 0.1128 -0.0673)
OKLCHoklch(35.03% 0.131 329.2)
XYZxyz(6.7089, 3.6958, 10.2555)
Luminance0.0369 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D175B #175D19
analogous
#3C175D #5D175B #5D1738
triadic
#5D175B #5B5D17 #175B5D
tetradic
#5D175B #5D3C17 #175D19 #17385D
square
#5D175B #5D3C17 #175D19 #17385D
split-complementary
#5D175B #385D17 #175D3C
monochromatic
#190618 #2C0B2B #5D175B #8E238B #BF2FBB

Accessibility & contrast

On white

12.08
#5D175B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5D175B
12.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D175B#FFFFFF#000000##FFFFFF
##5D175B1.0012.081.7412.08
#FFFFFF12.081.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0E305D
Deuteranopia (green-blind)
#2B3959
Tritanopia (blue-blind)
#602137
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #5d175b;
/* rgb */ color: rgb(93, 23, 91);
/* oklch */ color: oklch(35.0% 0.131 329.2);
Tailwind
colors: {
  custom: {
    50: '#8e5c8a',
    500: '#5d175b',
    950: '#000000',
  },
}
SCSS
$custom: #5d175b;
$custom-light: #8e5c8a;
$custom-dark: #000000;
JSON
{
  "hex": "#5d175b",
  "rgb": {
    "r": 93,
    "g": 23,
    "b": 91
  },
  "hsl": {
    "h": 301.714,
    "s": 60.345,
    "l": 22.745
  },
  "oklch": {
    "l": 0.35035,
    "c": 0.13139,
    "h": 329.2
  },
  "luminance": 0.03695
}

Semantic roles & 50–950 ramp

primary
#5D175B
secondary
#3C943F
accent
#E34944
background
#F8F5F8
surface
#F0E9F0
border
#CBC5CB
text
#0D040B
muted
#7D797C

Preview Lab

Preview with #5D175B

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

Preview Lab → · Contrast checker → · Palette generator →

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