#5B2387#5B2387

#5B2387 is a dark, vivid violet. Relative luminance 0.052; OKLCH L 39.2% C 0.159 H 305.8°. Best body text is #FFFFFF at 10.32:1 contrast (WCAG AA passes).

Color values

HEX#5B2387
RGBrgb(91, 35, 135)
HSLhsl(274, 59%, 33%)
HSVhsv(274, 74%, 53%)
CMYKcmyk(32.6%, 74.1%, 0%, 47.1%)
CIE-LABlab(27.23, 43.97, -45.31)
CIE-LCHlch(27.23, 63.13, 314.14°)
OKLaboklab(39.23% 0.0928 -0.1288)
OKLCHoklch(39.23% 0.159 305.8)
XYZxyz(9.2876, 5.1756, 23.4267)
Luminance0.0517 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B2387 #4F8723
analogous
#292387 #5B2387 #872381
triadic
#5B2387 #875B23 #23875B
tetradic
#5B2387 #872923 #4F8723 #238187
square
#5B2387 #872923 #4F8723 #238187
split-complementary
#5B2387 #818723 #238729
monochromatic
#190A26 #3A1656 #5B2387 #7C30B8 #9A52D2

Accessibility & contrast

On white

10.32
#5B2387 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.04
#5B2387 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B2387
10.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B2387#FFFFFF#000000##FFFFFF
##5B23871.0010.322.0410.32
#FFFFFF10.321.0021.001.00
#0000002.0421.001.0021.00
##FFFFFF10.321.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5b2387;
/* rgb */ color: rgb(91, 35, 135);
/* oklch */ color: oklch(39.2% 0.159 305.8);
Tailwind
colors: {
  custom: {
    50: '#8e63ab',
    500: '#5b2387',
    950: '#000000',
  },
}
SCSS
$custom: #5b2387;
$custom-light: #8e63ab;
$custom-dark: #000000;
JSON
{
  "hex": "#5b2387",
  "rgb": {
    "r": 91,
    "g": 35,
    "b": 135
  },
  "hsl": {
    "h": 273.6,
    "s": 58.824,
    "l": 33.333
  },
  "oklch": {
    "l": 0.39226,
    "c": 0.15874,
    "h": 305.8
  },
  "luminance": 0.05175
}

Semantic roles & 50–950 ramp

primary
#5B2387
secondary
#7DB650
accent
#E2468B
background
#F9F6FA
surface
#F1EBF4
border
#CBC6CE
text
#0D0610
muted
#7E7A7F

Preview Lab

Preview with #5B2387

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

Preview Lab → · Contrast checker → · Palette generator →

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