#5D178D#5D178D

#5D178D is a dark, vivid violet. Relative luminance 0.049; OKLCH L 38.8% C 0.178 H 306.2°. Best body text is #FFFFFF at 10.65:1 contrast (WCAG AA passes).

Color values

HEX#5D178D
RGBrgb(93, 23, 141)
HSLhsl(276, 72%, 32%)
HSVhsv(276, 84%, 55%)
CMYKcmyk(34%, 83.7%, 0%, 44.7%)
CIE-LABlab(26.34, 50.57, -50.48)
CIE-LCHlch(26.34, 71.45, 315.05°)
OKLaboklab(38.82% 0.1051 -0.1438)
OKLCHoklch(38.82% 0.178 306.2)
XYZxyz(9.6272, 4.8631, 25.6256)
Luminance0.0486 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D178D #478D17
analogous
#22178D #5D178D #8D1782
triadic
#5D178D #8D5D17 #178D5D
tetradic
#5D178D #8D2217 #478D17 #17828D
square
#5D178D #8D2217 #478D17 #17828D
split-complementary
#5D178D #828D17 #178D22
monochromatic
#180624 #3A0E58 #5D178D #8020C2 #9E3FE0

Accessibility & contrast

On white

10.65
#5D178D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5D178D
10.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D178D#FFFFFF#000000##FFFFFF
##5D178D1.0010.651.9710.65
#FFFFFF10.651.0021.001.00
#0000001.9721.001.0021.00
##FFFFFF10.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C90
Deuteranopia (green-blind)
#003F8B
Tritanopia (blue-blind)
#543753
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #5d178d;
/* rgb */ color: rgb(93, 23, 141);
/* oklch */ color: oklch(38.8% 0.178 306.2);
Tailwind
colors: {
  custom: {
    50: '#905eaf',
    500: '#5d178d',
    950: '#000000',
  },
}
SCSS
$custom: #5d178d;
$custom-light: #905eaf;
$custom-dark: #000000;
JSON
{
  "hex": "#5d178d",
  "rgb": {
    "r": 93,
    "g": 23,
    "b": 141
  },
  "hsl": {
    "h": 275.593,
    "s": 71.951,
    "l": 32.157
  },
  "oklch": {
    "l": 0.38818,
    "c": 0.1781,
    "h": 306.2
  },
  "luminance": 0.04863
}

Semantic roles & 50–950 ramp

primary
#5D178D
secondary
#74C040
accent
#EF3983
background
#F9F5FA
surface
#F2EAF5
border
#CCC6CF
text
#0D0510
muted
#7E797F

Preview Lab

Preview with #5D178D

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

Preview Lab → · Contrast checker → · Palette generator →

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