#5C175D#5C175D

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

Color values

HEX#5C175D
RGBrgb(92, 23, 93)
HSLhsl(299, 60%, 23%)
HSVhsv(299, 75%, 36%)
CMYKcmyk(1.1%, 75.3%, 0%, 63.5%)
CIE-LABlab(22.58, 40.21, -25.81)
CIE-LCHlch(22.58, 47.78, 327.30°)
OKLaboklab(35% 0.1116 -0.0715)
OKLCHoklch(35% 0.133 327.3)
XYZxyz(6.6957, 3.6789, 10.7112)
Luminance0.0368 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C175D #185D17
analogous
#39175D #5C175D #5D173B
triadic
#5C175D #5D5C17 #175D5C
tetradic
#5C175D #5D3917 #185D17 #173B5D
square
#5C175D #5D3917 #185D17 #173B5D
split-complementary
#5C175D #3B5D17 #175D39
monochromatic
#180619 #2B0B2C #5C175D #8D238E #BD2FBF

Accessibility & contrast

On white

12.10
#5C175D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5C175D
12.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C175D#FFFFFF#000000##FFFFFF
##5C175D1.0012.101.7412.10
#FFFFFF12.101.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0A305F
Deuteranopia (green-blind)
#29395B
Tritanopia (blue-blind)
#5F2238
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #5c175d;
/* rgb */ color: rgb(92, 23, 93);
/* oklch */ color: oklch(35.0% 0.133 327.3);
Tailwind
colors: {
  custom: {
    50: '#8d5c8b',
    500: '#5c175d',
    950: '#000000',
  },
}
SCSS
$custom: #5c175d;
$custom-light: #8d5c8b;
$custom-dark: #000000;
JSON
{
  "hex": "#5c175d",
  "rgb": {
    "r": 92,
    "g": 23,
    "b": 93
  },
  "hsl": {
    "h": 299.143,
    "s": 60.345,
    "l": 22.745
  },
  "oklch": {
    "l": 0.34997,
    "c": 0.13258,
    "h": 327.3
  },
  "luminance": 0.03678
}

Semantic roles & 50–950 ramp

primary
#5C175D
secondary
#3D943C
accent
#E34447
background
#F8F5F8
surface
#F0E9F0
border
#CBC5CB
text
#0C040C
muted
#7D797D

Preview Lab

Preview with #5C175D

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

Preview Lab → · Contrast checker → · Palette generator →

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