#5D179E#5D179E

#5D179E is a dark, vivid violet. Relative luminance 0.054; OKLCH L 40.3% C 0.195 H 300.7°. Best body text is #FFFFFF at 10.09:1 contrast (WCAG AA passes).

Color values

HEX#5D179E
RGBrgb(93, 23, 158)
HSLhsl(271, 75%, 35%)
HSVhsv(271, 85%, 62%)
CMYKcmyk(41.1%, 85.4%, 0%, 38%)
CIE-LABlab(27.87, 54.51, -58.44)
CIE-LCHlch(27.87, 79.92, 313.00°)
OKLaboklab(40.34% 0.0995 -0.1672)
OKLCHoklch(40.34% 0.195 300.7)
XYZxyz(10.9906, 5.4085, 32.8060)
Luminance0.0541 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D179E #589E17
analogous
#19179E #5D179E #9E179B
triadic
#5D179E #9E5D17 #179E5D
tetradic
#5D179E #9E1917 #589E17 #179B9E
square
#5D179E #9E1917 #589E17 #179B9E
split-complementary
#5D179E #9B9E17 #179E19
monochromatic
#1E0733 #3E0F69 #5D179E #7C1FD3 #9B4BE5

Accessibility & contrast

On white

10.09
#5D179E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.08
#5D179E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D179E
10.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D179E#FFFFFF#000000##FFFFFF
##5D179E1.0010.092.0810.09
#FFFFFF10.091.0021.001.00
#0000002.0821.001.0021.00
##FFFFFF10.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0041A2
Deuteranopia (green-blind)
#00419C
Tritanopia (blue-blind)
#4E3F5D
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #5d179e;
/* rgb */ color: rgb(93, 23, 158);
/* oklch */ color: oklch(40.3% 0.195 300.7);
Tailwind
colors: {
  custom: {
    50: '#9260bc',
    500: '#5d179e',
    950: '#000000',
  },
}
SCSS
$custom: #5d179e;
$custom-light: #9260bc;
$custom-dark: #000000;
JSON
{
  "hex": "#5d179e",
  "rgb": {
    "r": 93,
    "g": 23,
    "b": 158
  },
  "hsl": {
    "h": 271.111,
    "s": 74.586,
    "l": 35.49
  },
  "oklch": {
    "l": 0.40343,
    "c": 0.19453,
    "h": 300.7
  },
  "luminance": 0.05409
}

Semantic roles & 50–950 ramp

primary
#5D179E
secondary
#86C64A
accent
#F13790
background
#F9F5FB
surface
#F2EAF6
border
#CCC6D0
text
#0E0512
muted
#7E7981

Preview Lab

Preview with #5D179E

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

Preview Lab → · Contrast checker → · Palette generator →

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