#5B2487#5B2487

#5B2487 is a dark, vivid violet. Relative luminance 0.052; OKLCH L 39.3% C 0.157 H 305.6°. Best body text is #FFFFFF at 10.26:1 contrast (WCAG AA passes).

Color values

HEX#5B2487
RGBrgb(91, 36, 135)
HSLhsl(273, 58%, 34%)
HSVhsv(273, 73%, 53%)
CMYKcmyk(32.6%, 73.3%, 0%, 47.1%)
CIE-LABlab(27.39, 43.50, -45.04)
CIE-LCHlch(27.39, 62.62, 314.00°)
OKLaboklab(39.34% 0.0918 -0.128)
OKLCHoklch(39.34% 0.157 305.6)
XYZxyz(9.3175, 5.2352, 23.4366)
Luminance0.0524 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B2487 #508724
analogous
#292487 #5B2487 #872481
triadic
#5B2487 #875B24 #24875B
tetradic
#5B2487 #872924 #508724 #248187
square
#5B2487 #872924 #508724 #248187
split-complementary
#5B2487 #818724 #248729
monochromatic
#1A0A26 #3A1757 #5B2487 #7C31B7 #9A54D1

Accessibility & contrast

On white

10.26
#5B2487 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.05
#5B2487 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B2487
10.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B2487#FFFFFF#000000##FFFFFF
##5B24871.0010.262.0510.26
#FFFFFF10.261.0021.001.00
#0000002.0521.001.0021.00
##FFFFFF10.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F8A
Deuteranopia (green-blind)
#004185
Tritanopia (blue-blind)
#533B53
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #5b2487;
/* rgb */ color: rgb(91, 36, 135);
/* oklch */ color: oklch(39.3% 0.157 305.6);
Tailwind
colors: {
  custom: {
    50: '#8e64ab',
    500: '#5b2487',
    950: '#000000',
  },
}
SCSS
$custom: #5b2487;
$custom-light: #8e64ab;
$custom-dark: #000000;
JSON
{
  "hex": "#5b2487",
  "rgb": {
    "r": 91,
    "g": 36,
    "b": 135
  },
  "hsl": {
    "h": 273.333,
    "s": 57.895,
    "l": 33.529
  },
  "oklch": {
    "l": 0.39343,
    "c": 0.15748,
    "h": 305.6
  },
  "luminance": 0.05235
}

Semantic roles & 50–950 ramp

primary
#5B2487
secondary
#7EB551
accent
#E1478B
background
#F9F6FA
surface
#F1EBF4
border
#CBC6CE
text
#0D0610
muted
#7E7A7F

Preview Lab

Preview with #5B2487

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

Preview Lab → · Contrast checker → · Palette generator →

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