#5D178F#5D178F

#5D178F is a dark, vivid violet. Relative luminance 0.049; OKLCH L 39.0% C 0.180 H 305.5°. Best body text is #FFFFFF at 10.58:1 contrast (WCAG AA passes).

Color values

HEX#5D178F
RGBrgb(93, 23, 143)
HSLhsl(275, 72%, 33%)
HSVhsv(275, 84%, 56%)
CMYKcmyk(35%, 83.9%, 0%, 43.9%)
CIE-LABlab(26.51, 51.02, -51.44)
CIE-LCHlch(26.51, 72.45, 314.77°)
OKLaboklab(38.99% 0.1045 -0.1466)
OKLCHoklch(38.99% 0.18 305.5)
XYZxyz(9.7774, 4.9232, 26.4165)
Luminance0.0492 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D178F #498F17
analogous
#21178F #5D178F #8F1785
triadic
#5D178F #8F5D17 #178F5D
tetradic
#5D178F #8F2117 #498F17 #17858F
square
#5D178F #8F2117 #498F17 #17858F
split-complementary
#5D178F #858F17 #178F21
monochromatic
#180626 #3B0F5A #5D178F #7F1FC4 #9E40E0

Accessibility & contrast

On white

10.58
#5D178F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.98
#5D178F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D178F
10.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D178F#FFFFFF#000000##FFFFFF
##5D178F1.0010.581.9810.58
#FFFFFF10.581.0021.001.00
#0000001.9821.001.0021.00
##FFFFFF10.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D92
Deuteranopia (green-blind)
#003F8D
Tritanopia (blue-blind)
#543855
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #5d178f;
/* rgb */ color: rgb(93, 23, 143);
/* oklch */ color: oklch(39.0% 0.180 305.5);
Tailwind
colors: {
  custom: {
    50: '#905fb1',
    500: '#5d178f',
    950: '#000000',
  },
}
SCSS
$custom: #5d178f;
$custom-light: #905fb1;
$custom-dark: #000000;
JSON
{
  "hex": "#5d178f",
  "rgb": {
    "r": 93,
    "g": 23,
    "b": 143
  },
  "hsl": {
    "h": 275,
    "s": 72.289,
    "l": 32.549
  },
  "oklch": {
    "l": 0.38992,
    "c": 0.18002,
    "h": 305.5
  },
  "luminance": 0.04923
}

Semantic roles & 50–950 ramp

primary
#5D178F
secondary
#76C141
accent
#EF3985
background
#F9F5FB
surface
#F2EAF6
border
#CCC6D0
text
#0D0511
muted
#7E7980

Preview Lab

Preview with #5D178F

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

Preview Lab → · Contrast checker → · Palette generator →

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