#5B2587#5B2587

#5B2587 is a dark, vivid violet. Relative luminance 0.053; OKLCH L 39.5% C 0.156 H 305.5°. Best body text is #FFFFFF at 10.20:1 contrast (WCAG AA passes).

Color values

HEX#5B2587
RGBrgb(91, 37, 135)
HSLhsl(273, 57%, 34%)
HSVhsv(273, 73%, 53%)
CMYKcmyk(32.6%, 72.6%, 0%, 47.1%)
CIE-LABlab(27.56, 43.02, -44.77)
CIE-LCHlch(27.56, 62.09, 313.86°)
OKLaboklab(39.46% 0.0907 -0.1272)
OKLCHoklch(39.46% 0.156 305.5)
XYZxyz(9.3482, 5.2966, 23.4468)
Luminance0.0530 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B2587 #518725
analogous
#2A2587 #5B2587 #872582
triadic
#5B2587 #875B25 #25875B
tetradic
#5B2587 #872A25 #518725 #258287
square
#5B2587 #872A25 #518725 #258287
split-complementary
#5B2587 #828725 #25872A
monochromatic
#1A0B27 #3B1857 #5B2587 #7B32B7 #9956D1

Accessibility & contrast

On white

10.20
#5B2587 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.06
#5B2587 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B2587
10.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B2587#FFFFFF#000000##FFFFFF
##5B25871.0010.202.0610.20
#FFFFFF10.201.0021.001.00
#0000002.0621.001.0021.00
##FFFFFF10.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00408A
Deuteranopia (green-blind)
#004185
Tritanopia (blue-blind)
#533C53
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #5b2587;
/* rgb */ color: rgb(91, 37, 135);
/* oklch */ color: oklch(39.5% 0.156 305.5);
Tailwind
colors: {
  custom: {
    50: '#8e64ab',
    500: '#5b2587',
    950: '#000000',
  },
}
SCSS
$custom: #5b2587;
$custom-light: #8e64ab;
$custom-dark: #000000;
JSON
{
  "hex": "#5b2587",
  "rgb": {
    "r": 91,
    "g": 37,
    "b": 135
  },
  "hsl": {
    "h": 273.061,
    "s": 56.977,
    "l": 33.725
  },
  "oklch": {
    "l": 0.39463,
    "c": 0.15621,
    "h": 305.5
  },
  "luminance": 0.05297
}

Semantic roles & 50–950 ramp

primary
#5B2587
secondary
#7FB553
accent
#E0488C
background
#F9F6FA
surface
#F1EBF4
border
#CBC6CE
text
#0D0610
muted
#7E7A7F

Preview Lab

Preview with #5B2587

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

Preview Lab → · Contrast checker → · Palette generator →

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