#5B159E#5B159E

#5B159E is a dark, vivid violet. Relative luminance 0.052; OKLCH L 39.9% C 0.196 H 299.9°. Best body text is #FFFFFF at 10.26:1 contrast (WCAG AA passes).

Color values

HEX#5B159E
RGBrgb(91, 21, 158)
HSLhsl(271, 77%, 35%)
HSVhsv(271, 87%, 62%)
CMYKcmyk(42.4%, 86.7%, 0%, 38%)
CIE-LABlab(27.38, 54.85, -59.26)
CIE-LCHlch(27.38, 80.75, 312.79°)
OKLaboklab(39.95% 0.0976 -0.1696)
OKLCHoklch(39.95% 0.196 299.9)
XYZxyz(10.7525, 5.2290, 32.7839)
Luminance0.0523 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B159E #589E15
analogous
#17159E #5B159E #9E159C
triadic
#5B159E #9E5B15 #159E5B
tetradic
#5B159E #9E1715 #589E15 #159C9E
square
#5B159E #9E1715 #589E15 #159C9E
split-complementary
#5B159E #9C9E15 #159E17
monochromatic
#1D0732 #3C0E68 #5B159E #7A1CD4 #9847E7

Accessibility & contrast

On white

10.26
#5B159E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.05
#5B159E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B159E
10.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B159E#FFFFFF#000000##FFFFFF
##5B159E1.0010.262.0510.26
#FFFFFF10.261.0021.001.00
#0000002.0521.001.0021.00
##FFFFFF10.261.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5b159e;
/* rgb */ color: rgb(91, 21, 158);
/* oklch */ color: oklch(39.9% 0.196 299.9);
Tailwind
colors: {
  custom: {
    50: '#915fbc',
    500: '#5b159e',
    950: '#000000',
  },
}
SCSS
$custom: #5b159e;
$custom-light: #915fbc;
$custom-dark: #000000;
JSON
{
  "hex": "#5b159e",
  "rgb": {
    "r": 91,
    "g": 21,
    "b": 158
  },
  "hsl": {
    "h": 270.657,
    "s": 76.536,
    "l": 35.098
  },
  "oklch": {
    "l": 0.39946,
    "c": 0.19569,
    "h": 299.9
  },
  "luminance": 0.05229
}

Semantic roles & 50–950 ramp

primary
#5B159E
secondary
#86C747
accent
#F33592
background
#F9F5FB
surface
#F2EAF6
border
#CCC6D0
text
#0E0512
muted
#7E7981

Preview Lab

Preview with #5B159E

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

Preview Lab → · Contrast checker → · Palette generator →

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