#5B1886#5B1886

#5B1886 is a dark, vivid violet. Relative luminance 0.046; OKLCH L 38.0% C 0.170 H 307.5°. Best body text is #FFFFFF at 10.94:1 contrast (WCAG AA passes).

Color values

HEX#5B1886
RGBrgb(91, 24, 134)
HSLhsl(277, 70%, 31%)
HSVhsv(277, 82%, 53%)
CMYKcmyk(32.1%, 82.1%, 0%, 47.5%)
CIE-LABlab(25.56, 48.28, -47.40)
CIE-LCHlch(25.56, 67.66, 315.53°)
OKLaboklab(38.03% 0.1033 -0.1348)
OKLCHoklch(38.03% 0.17 307.5)
XYZxyz(8.9432, 4.5988, 22.9662)
Luminance0.0460 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B1886 #438618
analogous
#241886 #5B1886 #86187A
triadic
#5B1886 #865B18 #18865B
tetradic
#5B1886 #862418 #438618 #187A86
square
#5B1886 #862418 #438618 #187A86
split-complementary
#5B1886 #7A8618 #188624
monochromatic
#15051E #380F52 #5B1886 #7E21BA #9E3CDC

Accessibility & contrast

On white

10.94
#5B1886 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.92
#5B1886 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B1886
10.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B1886#FFFFFF#000000##FFFFFF
##5B18861.0010.941.9210.94
#FFFFFF10.941.0021.001.00
#0000001.9221.001.0021.00
##FFFFFF10.941.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5b1886;
/* rgb */ color: rgb(91, 24, 134);
/* oklch */ color: oklch(38.0% 0.170 307.5);
Tailwind
colors: {
  custom: {
    50: '#8e5eaa',
    500: '#5b1886',
    950: '#000000',
  },
}
SCSS
$custom: #5b1886;
$custom-light: #8e5eaa;
$custom-dark: #000000;
JSON
{
  "hex": "#5b1886",
  "rgb": {
    "r": 91,
    "g": 24,
    "b": 134
  },
  "hsl": {
    "h": 276.545,
    "s": 69.62,
    "l": 30.98
  },
  "oklch": {
    "l": 0.38025,
    "c": 0.16988,
    "h": 307.5
  },
  "luminance": 0.04599
}

Semantic roles & 50–950 ramp

primary
#5B1886
secondary
#70BA40
accent
#EC3B81
background
#F9F5FA
surface
#F1EAF4
border
#CBC6CE
text
#0D0510
muted
#7E797F

Preview Lab

Preview with #5B1886

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

Preview Lab → · Contrast checker → · Palette generator →

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