#5B1687#5B1687

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

Color values

HEX#5B1687
RGBrgb(91, 22, 135)
HSLhsl(277, 72%, 31%)
HSVhsv(277, 84%, 53%)
CMYKcmyk(32.6%, 83.7%, 0%, 47.1%)
CIE-LABlab(25.40, 49.21, -48.28)
CIE-LCHlch(25.40, 68.93, 315.55°)
OKLaboklab(37.94% 0.1046 -0.1374)
OKLCHoklch(37.94% 0.173 307.3)
XYZxyz(8.9735, 4.5474, 23.3220)
Luminance0.0455 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B1687 #428716
analogous
#221687 #5B1687 #87167A
triadic
#5B1687 #875B16 #16875B
tetradic
#5B1687 #872216 #428716 #167A87
square
#5B1687 #872216 #428716 #167A87
split-complementary
#5B1687 #7A8716 #168722
monochromatic
#14051E #380D52 #5B1687 #7E1FBC #9E39DF

Accessibility & contrast

On white

11.00
#5B1687 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.91
#5B1687 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B1687
11.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B1687#FFFFFF#000000##FFFFFF
##5B16871.0011.001.9111.00
#FFFFFF11.001.0021.001.00
#0000001.9121.001.0021.00
##FFFFFF11.001.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5b1687;
/* rgb */ color: rgb(91, 22, 135);
/* oklch */ color: oklch(37.9% 0.173 307.3);
Tailwind
colors: {
  custom: {
    50: '#8e5dab',
    500: '#5b1687',
    950: '#000000',
  },
}
SCSS
$custom: #5b1687;
$custom-light: #8e5dab;
$custom-dark: #000000;
JSON
{
  "hex": "#5b1687",
  "rgb": {
    "r": 91,
    "g": 22,
    "b": 135
  },
  "hsl": {
    "h": 276.637,
    "s": 71.975,
    "l": 30.784
  },
  "oklch": {
    "l": 0.37943,
    "c": 0.17271,
    "h": 307.3
  },
  "luminance": 0.04547
}

Semantic roles & 50–950 ramp

primary
#5B1687
secondary
#6FBB3E
accent
#EF3980
background
#F9F5FA
surface
#F1E9F4
border
#CBC5CE
text
#0D0510
muted
#7E797F

Preview Lab

Preview with #5B1687

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

Preview Lab → · Contrast checker → · Palette generator →

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