#5D179F#5D179F

#5D179F is a dark, vivid violet. Relative luminance 0.054; OKLCH L 40.4% C 0.196 H 300.5°. Best body text is #FFFFFF at 10.05:1 contrast (WCAG AA passes).

Color values

HEX#5D179F
RGBrgb(93, 23, 159)
HSLhsl(271, 75%, 36%)
HSVhsv(271, 86%, 62%)
CMYKcmyk(41.5%, 85.5%, 0%, 37.6%)
CIE-LABlab(27.96, 54.74, -58.90)
CIE-LCHlch(27.96, 80.41, 312.90°)
OKLaboklab(40.44% 0.0991 -0.1685)
OKLCHoklch(40.44% 0.196 300.5)
XYZxyz(11.0770, 5.4430, 33.2612)
Luminance0.0544 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D179F #599F17
analogous
#19179F #5D179F #9F179D
triadic
#5D179F #9F5D17 #179F5D
tetradic
#5D179F #9F1917 #599F17 #179D9F
square
#5D179F #9F1917 #599F17 #179D9F
split-complementary
#5D179F #9D9F17 #179F19
monochromatic
#1E0834 #3E0F6A #5D179F #7C1FD4 #9A4BE5

Accessibility & contrast

On white

10.05
#5D179F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.09
#5D179F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D179F
10.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D179F#FFFFFF#000000##FFFFFF
##5D179F1.0010.052.0910.05
#FFFFFF10.051.0021.001.00
#0000002.0921.001.0021.00
##FFFFFF10.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0042A3
Deuteranopia (green-blind)
#00419D
Tritanopia (blue-blind)
#4D405E
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #5d179f;
/* rgb */ color: rgb(93, 23, 159);
/* oklch */ color: oklch(40.4% 0.196 300.5);
Tailwind
colors: {
  custom: {
    50: '#9260bc',
    500: '#5d179f',
    950: '#000000',
  },
}
SCSS
$custom: #5d179f;
$custom-light: #9260bc;
$custom-dark: #000000;
JSON
{
  "hex": "#5d179f",
  "rgb": {
    "r": 93,
    "g": 23,
    "b": 159
  },
  "hsl": {
    "h": 270.882,
    "s": 74.725,
    "l": 35.686
  },
  "oklch": {
    "l": 0.40436,
    "c": 0.1955,
    "h": 300.5
  },
  "luminance": 0.05443
}

Semantic roles & 50–950 ramp

primary
#5D179F
secondary
#87C74B
accent
#F13691
background
#F9F5FB
surface
#F2EAF7
border
#CCC6D0
text
#0E0512
muted
#7E7981

Preview Lab

Preview with #5D179F

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

Preview Lab → · Contrast checker → · Palette generator →

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