#5D178A#5D178A

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

Color values

HEX#5D178A
RGBrgb(93, 23, 138)
HSLhsl(277, 71%, 32%)
HSVhsv(277, 83%, 54%)
CMYKcmyk(32.6%, 83.3%, 0%, 45.9%)
CIE-LABlab(26.08, 49.89, -49.03)
CIE-LCHlch(26.08, 69.95, 315.50°)
OKLaboklab(38.56% 0.106 -0.1395)
OKLCHoklch(38.56% 0.175 307.2)
XYZxyz(9.4071, 4.7750, 24.4659)
Luminance0.0478 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D178A #448A17
analogous
#24178A #5D178A #8A177E
triadic
#5D178A #8A5D17 #178A5D
tetradic
#5D178A #8A2417 #448A17 #177E8A
square
#5D178A #8A2417 #448A17 #177E8A
split-complementary
#5D178A #7E8A17 #178A24
monochromatic
#160621 #3A0E56 #5D178A #8020BE #9F3DDF

Accessibility & contrast

On white

10.74
#5D178A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5D178A
10.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D178A#FFFFFF#000000##FFFFFF
##5D178A1.0010.741.9610.74
#FFFFFF10.741.0021.001.00
#0000001.9621.001.0021.00
##FFFFFF10.741.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5d178a;
/* rgb */ color: rgb(93, 23, 138);
/* oklch */ color: oklch(38.6% 0.175 307.2);
Tailwind
colors: {
  custom: {
    50: '#905ead',
    500: '#5d178a',
    950: '#000000',
  },
}
SCSS
$custom: #5d178a;
$custom-light: #905ead;
$custom-dark: #000000;
JSON
{
  "hex": "#5d178a",
  "rgb": {
    "r": 93,
    "g": 23,
    "b": 138
  },
  "hsl": {
    "h": 276.522,
    "s": 71.429,
    "l": 31.569
  },
  "oklch": {
    "l": 0.38559,
    "c": 0.17521,
    "h": 307.2
  },
  "luminance": 0.04775
}

Semantic roles & 50–950 ramp

primary
#5D178A
secondary
#71BE3F
accent
#EE3A80
background
#F9F5FA
surface
#F1EAF4
border
#CBC6CE
text
#0D0510
muted
#7E797F

Preview Lab

Preview with #5D178A

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

Preview Lab → · Contrast checker → · Palette generator →

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