#5B1787#5B1787

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

Color values

HEX#5B1787
RGBrgb(91, 23, 135)
HSLhsl(276, 71%, 31%)
HSVhsv(276, 83%, 53%)
CMYKcmyk(32.6%, 83%, 0%, 47.1%)
CIE-LABlab(25.52, 48.86, -48.09)
CIE-LCHlch(25.52, 68.56, 315.46°)
OKLaboklab(38.03% 0.1039 -0.1368)
OKLCHoklch(38.03% 0.172 307.2)
XYZxyz(8.9930, 4.5863, 23.3285)
Luminance0.0459 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B1787 #438717
analogous
#231787 #5B1787 #87177B
triadic
#5B1787 #875B17 #17875B
tetradic
#5B1787 #872317 #438717 #177B87
square
#5B1787 #872317 #438717 #177B87
split-complementary
#5B1787 #7B8717 #178723
monochromatic
#15051E #380E53 #5B1787 #7E20BB #9E3BDE

Accessibility & contrast

On white

10.95
#5B1787 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5B1787
10.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B1787#FFFFFF#000000##FFFFFF
##5B17871.0010.951.9210.95
#FFFFFF10.951.0021.001.00
#0000001.9221.001.0021.00
##FFFFFF10.951.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: #5b1787;
/* rgb */ color: rgb(91, 23, 135);
/* oklch */ color: oklch(38.0% 0.172 307.2);
Tailwind
colors: {
  custom: {
    50: '#8e5eab',
    500: '#5b1787',
    950: '#000000',
  },
}
SCSS
$custom: #5b1787;
$custom-light: #8e5eab;
$custom-dark: #000000;
JSON
{
  "hex": "#5b1787",
  "rgb": {
    "r": 91,
    "g": 23,
    "b": 135
  },
  "hsl": {
    "h": 276.429,
    "s": 70.886,
    "l": 30.98
  },
  "oklch": {
    "l": 0.38025,
    "c": 0.1718,
    "h": 307.2
  },
  "luminance": 0.04586
}

Semantic roles & 50–950 ramp

primary
#5B1787
secondary
#70BB3F
accent
#EE3A81
background
#F9F5FA
surface
#F1E9F4
border
#CBC5CE
text
#0D0510
muted
#7E797F

Preview Lab

Preview with #5B1787

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

Preview Lab → · Contrast checker → · Palette generator →

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