#5B179E#5B179E

#5B179E is a dark, vivid violet. Relative luminance 0.053; OKLCH L 40.1% C 0.194 H 299.8°. Best body text is #FFFFFF at 10.19:1 contrast (WCAG AA passes).

Color values

HEX#5B179E
RGBrgb(91, 23, 158)
HSLhsl(270, 75%, 35%)
HSVhsv(270, 85%, 62%)
CMYKcmyk(42.4%, 85.4%, 0%, 38%)
CIE-LABlab(27.59, 54.23, -58.92)
CIE-LCHlch(27.59, 80.07, 312.63°)
OKLaboklab(40.09% 0.0964 -0.1686)
OKLCHoklch(40.09% 0.194 299.8)
XYZxyz(10.7908, 5.3054, 32.7967)
Luminance0.0531 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B179E #5A9E17
analogous
#17179E #5B179E #9E179D
triadic
#5B179E #9E5B17 #179E5B
tetradic
#5B179E #9E1717 #5A9E17 #179D9E
square
#5B179E #9E1717 #5A9E17 #179D9E
split-complementary
#5B179E #9D9E17 #179E17
monochromatic
#1D0733 #3C0F69 #5B179E #7A1FD3 #984BE5

Accessibility & contrast

On white

10.19
#5B179E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.06
#5B179E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B179E
10.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B179E#FFFFFF#000000##FFFFFF
##5B179E1.0010.192.0610.19
#FFFFFF10.191.0021.001.00
#0000002.0621.001.0021.00
##FFFFFF10.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0041A2
Deuteranopia (green-blind)
#00409C
Tritanopia (blue-blind)
#4B3F5D
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #5b179e;
/* rgb */ color: rgb(91, 23, 158);
/* oklch */ color: oklch(40.1% 0.194 299.8);
Tailwind
colors: {
  custom: {
    50: '#915fbc',
    500: '#5b179e',
    950: '#000000',
  },
}
SCSS
$custom: #5b179e;
$custom-light: #915fbc;
$custom-dark: #000000;
JSON
{
  "hex": "#5b179e",
  "rgb": {
    "r": 91,
    "g": 23,
    "b": 158
  },
  "hsl": {
    "h": 270.222,
    "s": 74.586,
    "l": 35.49
  },
  "oklch": {
    "l": 0.4009,
    "c": 0.19423,
    "h": 299.8
  },
  "luminance": 0.05306
}

Semantic roles & 50–950 ramp

primary
#5B179E
secondary
#88C64A
accent
#F13793
background
#F9F5FB
surface
#F2EAF6
border
#CCC6D0
text
#0E0512
muted
#7E7981

Preview Lab

Preview with #5B179E

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

Preview Lab → · Contrast checker → · Palette generator →

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