#5B179F#5B179F

#5B179F is a dark, vivid violet. Relative luminance 0.053; OKLCH L 40.2% C 0.195 H 299.5°. Best body text is #FFFFFF at 10.15:1 contrast (WCAG AA passes).

Color values

HEX#5B179F
RGBrgb(91, 23, 159)
HSLhsl(270, 75%, 36%)
HSVhsv(270, 86%, 62%)
CMYKcmyk(42.8%, 85.5%, 0%, 37.6%)
CIE-LABlab(27.68, 54.47, -59.37)
CIE-LCHlch(27.68, 80.57, 312.53°)
OKLaboklab(40.18% 0.096 -0.17)
OKLCHoklch(40.18% 0.195 299.5)
XYZxyz(10.8772, 5.3400, 33.2518)
Luminance0.0534 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B179F #5B9F17
analogous
#17179F #5B179F #9F179F
triadic
#5B179F #9F5B17 #179F5B
tetradic
#5B179F #9F1717 #5B9F17 #179F9F
square
#5B179F #9F1717 #5B9F17 #179F9F
split-complementary
#5B179F #9F9F17 #179F17
monochromatic
#1E0834 #3C0F6A #5B179F #7A1FD4 #984BE5

Accessibility & contrast

On white

10.15
#5B179F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.07
#5B179F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B179F
10.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B179F#FFFFFF#000000##FFFFFF
##5B179F1.0010.152.0710.15
#FFFFFF10.151.0021.001.00
#0000002.0721.001.0021.00
##FFFFFF10.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0041A3
Deuteranopia (green-blind)
#00409D
Tritanopia (blue-blind)
#4A405E
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #5b179f;
/* rgb */ color: rgb(91, 23, 159);
/* oklch */ color: oklch(40.2% 0.195 299.5);
Tailwind
colors: {
  custom: {
    50: '#915fbc',
    500: '#5b179f',
    950: '#000000',
  },
}
SCSS
$custom: #5b179f;
$custom-light: #915fbc;
$custom-dark: #000000;
JSON
{
  "hex": "#5b179f",
  "rgb": {
    "r": 91,
    "g": 23,
    "b": 159
  },
  "hsl": {
    "h": 270,
    "s": 74.725,
    "l": 35.686
  },
  "oklch": {
    "l": 0.40184,
    "c": 0.19521,
    "h": 299.5
  },
  "luminance": 0.0534
}

Semantic roles & 50–950 ramp

primary
#5B179F
secondary
#89C74B
accent
#F13694
background
#F9F5FB
surface
#F2EAF7
border
#CCC6D0
text
#0E0512
muted
#7E7981

Preview Lab

Preview with #5B179F

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

Preview Lab → · Contrast checker → · Palette generator →

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