#5B1375#5B1375

#5B1375 is a dark, vivid purple. Relative luminance 0.040; OKLCH L 36.2% C 0.158 H 314.7°. Best body text is #FFFFFF at 11.70:1 contrast (WCAG AA passes).

Color values

HEX#5B1375
RGBrgb(91, 19, 117)
HSLhsl(284, 72%, 27%)
HSVhsv(284, 84%, 46%)
CMYKcmyk(22.2%, 83.8%, 0%, 54.1%)
CIE-LABlab(23.59, 46.25, -39.83)
CIE-LCHlch(23.59, 61.04, 319.27°)
OKLaboklab(36.21% 0.1116 -0.1125)
OKLCHoklch(36.21% 0.158 314.7)
XYZxyz(7.7576, 3.9745, 17.1847)
Luminance0.0397 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B1375 #2D7513
analogous
#2A1375 #5B1375 #75135E
triadic
#5B1375 #755B13 #13755B
tetradic
#5B1375 #752A13 #2D7513 #135E75
square
#5B1375 #752A13 #2D7513 #135E75
split-complementary
#5B1375 #5E7513 #13752A
monochromatic
#14041A #320A40 #5B1375 #841CAA #AC27DC

Accessibility & contrast

On white

11.70
#5B1375 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.79
#5B1375 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B1375
11.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B1375#FFFFFF#000000##FFFFFF
##5B13751.0011.701.7911.70
#FFFFFF11.701.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003478
Deuteranopia (green-blind)
#0B3A73
Tritanopia (blue-blind)
#592B45
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #5b1375;
/* rgb */ color: rgb(91, 19, 117);
/* oklch */ color: oklch(36.2% 0.158 314.7);
Tailwind
colors: {
  custom: {
    50: '#8d5b9d',
    500: '#5b1375',
    950: '#000000',
  },
}
SCSS
$custom: #5b1375;
$custom-light: #8d5b9d;
$custom-dark: #000000;
JSON
{
  "hex": "#5b1375",
  "rgb": {
    "r": 91,
    "g": 19,
    "b": 117
  },
  "hsl": {
    "h": 284.082,
    "s": 72.059,
    "l": 26.667
  },
  "oklch": {
    "l": 0.36213,
    "c": 0.15848,
    "h": 314.7
  },
  "luminance": 0.03974
}

Semantic roles & 50–950 ramp

primary
#5B1375
secondary
#57AB38
accent
#EF3969
background
#F9F5F9
surface
#F1E9F2
border
#CBC5CC
text
#0D040E
muted
#7E797E

Preview Lab

Preview with #5B1375

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

Preview Lab → · Contrast checker → · Palette generator →

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