#5D178C#5D178C

#5D178C is a dark, vivid violet. Relative luminance 0.048; OKLCH L 38.7% C 0.177 H 306.5°. Best body text is #FFFFFF at 10.68:1 contrast (WCAG AA passes).

Color values

HEX#5D178C
RGBrgb(93, 23, 140)
HSLhsl(276, 72%, 32%)
HSVhsv(276, 84%, 55%)
CMYKcmyk(33.6%, 83.6%, 0%, 45.1%)
CIE-LABlab(26.25, 50.34, -50.00)
CIE-LCHlch(26.25, 70.95, 315.20°)
OKLaboklab(38.73% 0.1054 -0.1424)
OKLCHoklch(38.73% 0.177 306.5)
XYZxyz(9.5532, 4.8335, 25.2355)
Luminance0.0483 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D178C #468C17
analogous
#22178C #5D178C #8C1781
triadic
#5D178C #8C5D17 #178C5D
tetradic
#5D178C #8C2217 #468C17 #17818C
square
#5D178C #8C2217 #468C17 #17818C
split-complementary
#5D178C #818C17 #178C22
monochromatic
#170623 #3A0E57 #5D178C #8020C1 #9F3EDF

Accessibility & contrast

On white

10.68
#5D178C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.97
#5D178C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D178C
10.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D178C#FFFFFF#000000##FFFFFF
##5D178C1.0010.681.9710.68
#FFFFFF10.681.0021.001.00
#0000001.9721.001.0021.00
##FFFFFF10.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C8F
Deuteranopia (green-blind)
#003E8A
Tritanopia (blue-blind)
#553753
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #5d178c;
/* rgb */ color: rgb(93, 23, 140);
/* oklch */ color: oklch(38.7% 0.177 306.5);
Tailwind
colors: {
  custom: {
    50: '#905eae',
    500: '#5d178c',
    950: '#000000',
  },
}
SCSS
$custom: #5d178c;
$custom-light: #905eae;
$custom-dark: #000000;
JSON
{
  "hex": "#5d178c",
  "rgb": {
    "r": 93,
    "g": 23,
    "b": 140
  },
  "hsl": {
    "h": 275.897,
    "s": 71.779,
    "l": 31.961
  },
  "oklch": {
    "l": 0.38731,
    "c": 0.17714,
    "h": 306.5
  },
  "luminance": 0.04833
}

Semantic roles & 50–950 ramp

primary
#5D178C
secondary
#73BF3F
accent
#EF3982
background
#F9F5FA
surface
#F2EAF4
border
#CCC6CE
text
#0D0510
muted
#7E797F

Preview Lab

Preview with #5D178C

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

Preview Lab → · Contrast checker → · Palette generator →

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