#5B1686#5B1686

#5B1686 is a dark, vivid violet. Relative luminance 0.045; OKLCH L 37.9% C 0.172 H 307.7°. Best body text is #FFFFFF at 11.03:1 contrast (WCAG AA passes).

Color values

HEX#5B1686
RGBrgb(91, 22, 134)
HSLhsl(277, 72%, 31%)
HSVhsv(277, 84%, 53%)
CMYKcmyk(32.1%, 83.6%, 0%, 47.5%)
CIE-LABlab(25.32, 48.98, -47.79)
CIE-LCHlch(25.32, 68.43, 315.70°)
OKLaboklab(37.86% 0.1049 -0.136)
OKLCHoklch(37.86% 0.172 307.7)
XYZxyz(8.9035, 4.5193, 22.9529)
Luminance0.0452 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B1686 #418616
analogous
#231686 #5B1686 #861679
triadic
#5B1686 #865B16 #16865B
tetradic
#5B1686 #862316 #418616 #167986
square
#5B1686 #862316 #418616 #167986
split-complementary
#5B1686 #798616 #168623
monochromatic
#14051D #370D51 #5B1686 #7F1FBB #9E38DE

Accessibility & contrast

On white

11.03
#5B1686 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.90
#5B1686 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B1686
11.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B1686#FFFFFF#000000##FFFFFF
##5B16861.0011.031.9011.03
#FFFFFF11.031.0021.001.00
#0000001.9021.001.0021.00
##FFFFFF11.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A89
Deuteranopia (green-blind)
#003D84
Tritanopia (blue-blind)
#54344F
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #5b1686;
/* rgb */ color: rgb(91, 22, 134);
/* oklch */ color: oklch(37.9% 0.172 307.7);
Tailwind
colors: {
  custom: {
    50: '#8e5daa',
    500: '#5b1686',
    950: '#000000',
  },
}
SCSS
$custom: #5b1686;
$custom-light: #8e5daa;
$custom-dark: #000000;
JSON
{
  "hex": "#5b1686",
  "rgb": {
    "r": 91,
    "g": 22,
    "b": 134
  },
  "hsl": {
    "h": 276.964,
    "s": 71.795,
    "l": 30.588
  },
  "oklch": {
    "l": 0.37857,
    "c": 0.17175,
    "h": 307.7
  },
  "luminance": 0.04519
}

Semantic roles & 50–950 ramp

primary
#5B1686
secondary
#6DBA3E
accent
#EF397F
background
#F9F5FA
surface
#F1E9F4
border
#CBC5CE
text
#0D0510
muted
#7E797F

Preview Lab

Preview with #5B1686

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

Preview Lab → · Contrast checker → · Palette generator →

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