#5D178B#5D178B

#5D178B is a dark, vivid violet. Relative luminance 0.048; OKLCH L 38.6% C 0.176 H 306.9°. Best body text is #FFFFFF at 10.71:1 contrast (WCAG AA passes).

Color values

HEX#5D178B
RGBrgb(93, 23, 139)
HSLhsl(276, 72%, 32%)
HSVhsv(276, 83%, 55%)
CMYKcmyk(33.1%, 83.5%, 0%, 45.5%)
CIE-LABlab(26.17, 50.11, -49.52)
CIE-LCHlch(26.17, 70.45, 315.34°)
OKLaboklab(38.65% 0.1057 -0.141)
OKLCHoklch(38.65% 0.176 306.9)
XYZxyz(9.4798, 4.8041, 24.8490)
Luminance0.0480 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D178B #458B17
analogous
#23178B #5D178B #8B177F
triadic
#5D178B #8B5D17 #178B5D
tetradic
#5D178B #8B2317 #458B17 #177F8B
square
#5D178B #8B2317 #458B17 #177F8B
split-complementary
#5D178B #7F8B17 #178B23
monochromatic
#170622 #3A0E56 #5D178B #8020C0 #9F3DDF

Accessibility & contrast

On white

10.71
#5D178B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.96
#5D178B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D178B
10.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D178B#FFFFFF#000000##FFFFFF
##5D178B1.0010.711.9610.71
#FFFFFF10.711.0021.001.00
#0000001.9621.001.0021.00
##FFFFFF10.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C8E
Deuteranopia (green-blind)
#003E89
Tritanopia (blue-blind)
#553652
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #5d178b;
/* rgb */ color: rgb(93, 23, 139);
/* oklch */ color: oklch(38.6% 0.176 306.9);
Tailwind
colors: {
  custom: {
    50: '#905eae',
    500: '#5d178b',
    950: '#000000',
  },
}
SCSS
$custom: #5d178b;
$custom-light: #905eae;
$custom-dark: #000000;
JSON
{
  "hex": "#5d178b",
  "rgb": {
    "r": 93,
    "g": 23,
    "b": 139
  },
  "hsl": {
    "h": 276.207,
    "s": 71.605,
    "l": 31.765
  },
  "oklch": {
    "l": 0.38645,
    "c": 0.17617,
    "h": 306.9
  },
  "luminance": 0.04804
}

Semantic roles & 50–950 ramp

primary
#5D178B
secondary
#72BF3F
accent
#EE3981
background
#F9F5FA
surface
#F2EAF4
border
#CCC6CE
text
#0D0510
muted
#7E797F

Preview Lab

Preview with #5D178B

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

Preview Lab → · Contrast checker → · Palette generator →

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