#5B1887#5B1887

#5B1887 is a dark, vivid violet. Relative luminance 0.046; OKLCH L 38.1% C 0.171 H 307.1°. Best body text is #FFFFFF at 10.91:1 contrast (WCAG AA passes).

Color values

HEX#5B1887
RGBrgb(91, 24, 135)
HSLhsl(276, 70%, 31%)
HSVhsv(276, 82%, 53%)
CMYKcmyk(32.6%, 82.2%, 0%, 47.1%)
CIE-LABlab(25.64, 48.51, -47.89)
CIE-LCHlch(25.64, 68.16, 315.37°)
OKLaboklab(38.11% 0.1031 -0.1363)
OKLCHoklch(38.11% 0.171 307.1)
XYZxyz(9.0132, 4.6268, 23.3352)
Luminance0.0463 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B1887 #448718
analogous
#231887 #5B1887 #87187B
triadic
#5B1887 #875B18 #18875B
tetradic
#5B1887 #872318 #448718 #187B87
square
#5B1887 #872318 #448718 #187B87
split-complementary
#5B1887 #7B8718 #188723
monochromatic
#15061F #380F53 #5B1887 #7E21BB #9D3DDC

Accessibility & contrast

On white

10.91
#5B1887 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.93
#5B1887 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B1887
10.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B1887#FFFFFF#000000##FFFFFF
##5B18871.0010.911.9310.91
#FFFFFF10.911.0021.001.00
#0000001.9321.001.0021.00
##FFFFFF10.911.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5b1887;
/* rgb */ color: rgb(91, 24, 135);
/* oklch */ color: oklch(38.1% 0.171 307.1);
Tailwind
colors: {
  custom: {
    50: '#8e5eab',
    500: '#5b1887',
    950: '#000000',
  },
}
SCSS
$custom: #5b1887;
$custom-light: #8e5eab;
$custom-dark: #000000;
JSON
{
  "hex": "#5b1887",
  "rgb": {
    "r": 91,
    "g": 24,
    "b": 135
  },
  "hsl": {
    "h": 276.216,
    "s": 69.811,
    "l": 31.176
  },
  "oklch": {
    "l": 0.3811,
    "c": 0.17086,
    "h": 307.1
  },
  "luminance": 0.04627
}

Semantic roles & 50–950 ramp

primary
#5B1887
secondary
#71BB40
accent
#ED3B82
background
#F9F5FA
surface
#F1EAF4
border
#CBC6CE
text
#0D0510
muted
#7E797F

Preview Lab

Preview with #5B1887

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

Preview Lab → · Contrast checker → · Palette generator →

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