#5B1588#5B1588

#5B1588 is a dark, vivid violet. Relative luminance 0.045; OKLCH L 38.0% C 0.175 H 307.0°. Best body text is #FFFFFF at 11.01:1 contrast (WCAG AA passes).

Color values

HEX#5B1588
RGBrgb(91, 21, 136)
HSLhsl(277, 73%, 31%)
HSVhsv(277, 85%, 53%)
CMYKcmyk(33.1%, 84.6%, 0%, 46.7%)
CIE-LABlab(25.38, 49.77, -48.95)
CIE-LCHlch(25.38, 69.80, 315.47°)
OKLaboklab(37.95% 0.1051 -0.1394)
OKLCHoklch(37.95% 0.175 307)
XYZxyz(9.0255, 4.5382, 23.6883)
Luminance0.0454 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B1588 #428815
analogous
#221588 #5B1588 #88157B
triadic
#5B1588 #885B15 #15885B
tetradic
#5B1588 #882215 #428815 #157B88
square
#5B1588 #882215 #428815 #157B88
split-complementary
#5B1588 #7B8815 #158822
monochromatic
#14051E #380D53 #5B1588 #7E1DBD #9E37E0

Accessibility & contrast

On white

11.01
#5B1588 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5B1588
11.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B1588#FFFFFF#000000##FFFFFF
##5B15881.0011.011.9111.01
#FFFFFF11.011.0021.001.00
#0000001.9121.001.0021.00
##FFFFFF11.011.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: #5b1588;
/* rgb */ color: rgb(91, 21, 136);
/* oklch */ color: oklch(38.0% 0.175 307.0);
Tailwind
colors: {
  custom: {
    50: '#8f5dac',
    500: '#5b1588',
    950: '#000000',
  },
}
SCSS
$custom: #5b1588;
$custom-light: #8f5dac;
$custom-dark: #000000;
JSON
{
  "hex": "#5b1588",
  "rgb": {
    "r": 91,
    "g": 21,
    "b": 136
  },
  "hsl": {
    "h": 276.522,
    "s": 73.248,
    "l": 30.784
  },
  "oklch": {
    "l": 0.3795,
    "c": 0.17454,
    "h": 307
  },
  "luminance": 0.04538
}

Semantic roles & 50–950 ramp

primary
#5B1588
secondary
#6FBC3D
accent
#F03880
background
#F9F5FA
surface
#F1E9F4
border
#CBC5CE
text
#0D0510
muted
#7E797F

Preview Lab

Preview with #5B1588

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

Preview Lab → · Contrast checker → · Palette generator →

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