#5B1986#5B1986

#5B1986 is a dark, vivid violet. Relative luminance 0.046; OKLCH L 38.1% C 0.169 H 307.4°. Best body text is #FFFFFF at 10.89:1 contrast (WCAG AA passes).

Color values

HEX#5B1986
RGBrgb(91, 25, 134)
HSLhsl(276, 69%, 31%)
HSVhsv(276, 81%, 53%)
CMYKcmyk(32.1%, 81.3%, 0%, 47.5%)
CIE-LABlab(25.69, 47.91, -47.19)
CIE-LCHlch(25.69, 67.25, 315.43°)
OKLaboklab(38.11% 0.1025 -0.1342)
OKLCHoklch(38.11% 0.169 307.4)
XYZxyz(8.9642, 4.6408, 22.9732)
Luminance0.0464 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B1986 #448619
analogous
#241986 #5B1986 #86197A
triadic
#5B1986 #865B19 #19865B
tetradic
#5B1986 #862419 #448619 #197A86
square
#5B1986 #862419 #448619 #197A86
split-complementary
#5B1986 #7A8619 #198624
monochromatic
#15061F #380F52 #5B1986 #7E23BA #9D3EDB

Accessibility & contrast

On white

10.89
#5B1986 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.93
#5B1986 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B1986
10.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B1986#FFFFFF#000000##FFFFFF
##5B19861.0010.891.9310.89
#FFFFFF10.891.0021.001.00
#0000001.9321.001.0021.00
##FFFFFF10.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B89
Deuteranopia (green-blind)
#003D84
Tritanopia (blue-blind)
#543550
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #5b1986;
/* rgb */ color: rgb(91, 25, 134);
/* oklch */ color: oklch(38.1% 0.169 307.4);
Tailwind
colors: {
  custom: {
    50: '#8e5faa',
    500: '#5b1986',
    950: '#000000',
  },
}
SCSS
$custom: #5b1986;
$custom-light: #8e5faa;
$custom-dark: #000000;
JSON
{
  "hex": "#5b1986",
  "rgb": {
    "r": 91,
    "g": 25,
    "b": 134
  },
  "hsl": {
    "h": 276.33,
    "s": 68.553,
    "l": 31.176
  },
  "oklch": {
    "l": 0.38113,
    "c": 0.1689,
    "h": 307.4
  },
  "luminance": 0.04641
}

Semantic roles & 50–950 ramp

primary
#5B1986
secondary
#71BA41
accent
#EB3C81
background
#F9F5FA
surface
#F1EAF4
border
#CBC6CE
text
#0D0510
muted
#7E797F

Preview Lab

Preview with #5B1986

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

Preview Lab → · Contrast checker → · Palette generator →

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