#5B145B#5B145B

#5B145B is a dark, vivid purple. Relative luminance 0.035; OKLCH L 34.4% C 0.134 H 328.0°. Best body text is #FFFFFF at 12.38:1 contrast (WCAG AA passes).

Color values

HEX#5B145B
RGBrgb(91, 20, 91)
HSLhsl(300, 64%, 22%)
HSVhsv(300, 78%, 36%)
CMYKcmyk(0%, 78%, 0%, 64.3%)
CIE-LABlab(21.87, 40.73, -25.62)
CIE-LCHlch(21.87, 48.11, 327.83°)
OKLaboklab(34.42% 0.1136 -0.071)
OKLCHoklch(34.42% 0.134 328)
XYZxyz(6.4528, 3.4803, 10.2274)
Luminance0.0348 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B145B #145B14
analogous
#38145B #5B145B #5B1438
triadic
#5B145B #5B5B14 #145B5B
tetradic
#5B145B #5B3814 #145B14 #14385B
square
#5B145B #5B3814 #145B14 #14385B
split-complementary
#5B145B #385B14 #145B38
monochromatic
#190619 #290929 #5B145B #8D1F8D #BF2ABF

Accessibility & contrast

On white

12.38
#5B145B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#5B145B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B145B
12.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B145B#FFFFFF#000000##FFFFFF
##5B145B1.0012.381.7012.38
#FFFFFF12.381.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#062E5D
Deuteranopia (green-blind)
#273859
Tritanopia (blue-blind)
#5E1F36
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #5b145b;
/* rgb */ color: rgb(91, 20, 91);
/* oklch */ color: oklch(34.4% 0.134 328.0);
Tailwind
colors: {
  custom: {
    50: '#8c5a8a',
    500: '#5b145b',
    950: '#000000',
  },
}
SCSS
$custom: #5b145b;
$custom-light: #8c5a8a;
$custom-dark: #000000;
JSON
{
  "hex": "#5b145b",
  "rgb": {
    "r": 91,
    "g": 20,
    "b": 91
  },
  "hsl": {
    "h": 300,
    "s": 63.964,
    "l": 21.765
  },
  "oklch": {
    "l": 0.34415,
    "c": 0.13397,
    "h": 328
  },
  "luminance": 0.0348
}

Semantic roles & 50–950 ramp

primary
#5B145B
secondary
#389338
accent
#E74141
background
#F8F5F8
surface
#F0E9F0
border
#CBC5CB
text
#0C040B
muted
#7D797C

Preview Lab

Preview with #5B145B

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

Preview Lab → · Contrast checker → · Palette generator →

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