#5B1688#5B1688

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

Color values

HEX#5B1688
RGBrgb(91, 22, 136)
HSLhsl(276, 72%, 31%)
HSVhsv(276, 84%, 53%)
CMYKcmyk(33.1%, 83.8%, 0%, 46.7%)
CIE-LABlab(25.49, 49.43, -48.76)
CIE-LCHlch(25.49, 69.44, 315.39°)
OKLaboklab(38.03% 0.1044 -0.1388)
OKLCHoklch(38.03% 0.174 306.9)
XYZxyz(9.0443, 4.5756, 23.6945)
Luminance0.0458 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B1688 #438816
analogous
#221688 #5B1688 #88167C
triadic
#5B1688 #885B16 #16885B
tetradic
#5B1688 #882216 #438816 #167C88
square
#5B1688 #882216 #438816 #167C88
split-complementary
#5B1688 #7C8816 #168822
monochromatic
#15051F #380D53 #5B1688 #7E1FBD #9E39DF

Accessibility & contrast

On white

10.96
#5B1688 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5B1688
10.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B1688#FFFFFF#000000##FFFFFF
##5B16881.0010.961.9210.96
#FFFFFF10.961.0021.001.00
#0000001.9221.001.0021.00
##FFFFFF10.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A8B
Deuteranopia (green-blind)
#003D86
Tritanopia (blue-blind)
#533550
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #5b1688;
/* rgb */ color: rgb(91, 22, 136);
/* oklch */ color: oklch(38.0% 0.174 306.9);
Tailwind
colors: {
  custom: {
    50: '#8f5dac',
    500: '#5b1688',
    950: '#000000',
  },
}
SCSS
$custom: #5b1688;
$custom-light: #8f5dac;
$custom-dark: #000000;
JSON
{
  "hex": "#5b1688",
  "rgb": {
    "r": 91,
    "g": 22,
    "b": 136
  },
  "hsl": {
    "h": 276.316,
    "s": 72.152,
    "l": 30.98
  },
  "oklch": {
    "l": 0.38029,
    "c": 0.17367,
    "h": 306.9
  },
  "luminance": 0.04576
}

Semantic roles & 50–950 ramp

primary
#5B1688
secondary
#70BC3E
accent
#EF3981
background
#F9F5FA
surface
#F1E9F4
border
#CBC5CE
text
#0D0510
muted
#7E797F

Preview Lab

Preview with #5B1688

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

Preview Lab → · Contrast checker → · Palette generator →

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