#5B155D#5B155D

#5B155D is a dark, vivid purple. Relative luminance 0.036; OKLCH L 34.6% C 0.135 H 326.8°. Best body text is #FFFFFF at 12.28:1 contrast (WCAG AA passes).

Color values

HEX#5B155D
RGBrgb(91, 21, 93)
HSLhsl(298, 63%, 22%)
HSVhsv(298, 77%, 36%)
CMYKcmyk(2.2%, 77.4%, 0%, 63.5%)
CIE-LABlab(22.13, 40.73, -26.54)
CIE-LCHlch(22.13, 48.61, 326.92°)
OKLaboklab(34.64% 0.1126 -0.0737)
OKLCHoklch(34.64% 0.135 326.8)
XYZxyz(6.5582, 3.5512, 10.6938)
Luminance0.0355 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B155D #175D15
analogous
#37155D #5B155D #5D153B
triadic
#5B155D #5D5B15 #155D5B
tetradic
#5B155D #5D3715 #175D15 #153B5D
square
#5B155D #5D3715 #175D15 #153B5D
split-complementary
#5B155D #3B5D15 #155D37
monochromatic
#180619 #2A0A2B #5B155D #8C208F #BD2CC1

Accessibility & contrast

On white

12.28
#5B155D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#5B155D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B155D
12.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B155D#FFFFFF#000000##FFFFFF
##5B155D1.0012.281.7112.28
#FFFFFF12.281.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#052F5F
Deuteranopia (green-blind)
#27385B
Tritanopia (blue-blind)
#5E2138
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #5b155d;
/* rgb */ color: rgb(91, 21, 93);
/* oklch */ color: oklch(34.6% 0.135 326.8);
Tailwind
colors: {
  custom: {
    50: '#8c5b8b',
    500: '#5b155d',
    950: '#000000',
  },
}
SCSS
$custom: #5b155d;
$custom-light: #8c5b8b;
$custom-dark: #000000;
JSON
{
  "hex": "#5b155d",
  "rgb": {
    "r": 91,
    "g": 21,
    "b": 93
  },
  "hsl": {
    "h": 298.333,
    "s": 63.158,
    "l": 22.353
  },
  "oklch": {
    "l": 0.34638,
    "c": 0.13453,
    "h": 326.8
  },
  "luminance": 0.03551
}

Semantic roles & 50–950 ramp

primary
#5B155D
secondary
#3C9439
accent
#E64246
background
#F8F5F8
surface
#F0E9F0
border
#CBC5CB
text
#0C040C
muted
#7D797D

Preview Lab

Preview with #5B155D

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

Preview Lab → · Contrast checker → · Palette generator →

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