#5D178E#5D178E

#5D178E is a dark, vivid violet. Relative luminance 0.049; OKLCH L 38.9% C 0.179 H 305.8°. Best body text is #FFFFFF at 10.61:1 contrast (WCAG AA passes).

Color values

HEX#5D178E
RGBrgb(93, 23, 142)
HSLhsl(275, 72%, 32%)
HSVhsv(275, 84%, 56%)
CMYKcmyk(34.5%, 83.8%, 0%, 44.3%)
CIE-LABlab(26.43, 50.80, -50.96)
CIE-LCHlch(26.43, 71.95, 314.91°)
OKLaboklab(38.91% 0.1048 -0.1452)
OKLCHoklch(38.91% 0.179 305.8)
XYZxyz(9.7020, 4.8930, 26.0193)
Luminance0.0489 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D178E #488E17
analogous
#21178E #5D178E #8E1784
triadic
#5D178E #8E5D17 #178E5D
tetradic
#5D178E #8E2117 #488E17 #17848E
square
#5D178E #8E2117 #488E17 #17848E
split-complementary
#5D178E #848E17 #178E21
monochromatic
#180625 #3B0E59 #5D178E #7F20C3 #9E3FE0

Accessibility & contrast

On white

10.61
#5D178E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5D178E
10.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D178E#FFFFFF#000000##FFFFFF
##5D178E1.0010.611.9810.61
#FFFFFF10.611.0021.001.00
#0000001.9821.001.0021.00
##FFFFFF10.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D91
Deuteranopia (green-blind)
#003F8C
Tritanopia (blue-blind)
#543854
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #5d178e;
/* rgb */ color: rgb(93, 23, 142);
/* oklch */ color: oklch(38.9% 0.179 305.8);
Tailwind
colors: {
  custom: {
    50: '#905fb0',
    500: '#5d178e',
    950: '#000000',
  },
}
SCSS
$custom: #5d178e;
$custom-light: #905fb0;
$custom-dark: #000000;
JSON
{
  "hex": "#5d178e",
  "rgb": {
    "r": 93,
    "g": 23,
    "b": 142
  },
  "hsl": {
    "h": 275.294,
    "s": 72.121,
    "l": 32.353
  },
  "oklch": {
    "l": 0.38905,
    "c": 0.17906,
    "h": 305.8
  },
  "luminance": 0.04893
}

Semantic roles & 50–950 ramp

primary
#5D178E
secondary
#75C040
accent
#EF3984
background
#F9F5FA
surface
#F2EAF5
border
#CCC6CF
text
#0D0511
muted
#7E7980

Preview Lab

Preview with #5D178E

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

Preview Lab → · Contrast checker → · Palette generator →

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