#5B115B#5B115B

#5B115B is a dark, vivid purple. Relative luminance 0.034; OKLCH L 34.2% C 0.137 H 328.1°. Best body text is #FFFFFF at 12.53:1 contrast (WCAG AA passes).

Color values

HEX#5B115B
RGBrgb(91, 17, 91)
HSLhsl(300, 69%, 21%)
HSVhsv(300, 81%, 36%)
CMYKcmyk(0%, 81.3%, 0%, 64.3%)
CIE-LABlab(21.51, 41.77, -26.19)
CIE-LCHlch(21.51, 49.31, 327.91°)
OKLaboklab(34.16% 0.1166 -0.0726)
OKLCHoklch(34.16% 0.137 328.1)
XYZxyz(6.4031, 3.3808, 10.2108)
Luminance0.0338 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B115B #115B11
analogous
#36115B #5B115B #5B1136
triadic
#5B115B #5B5B11 #115B5B
tetradic
#5B115B #5B3611 #115B11 #11365B
square
#5B115B #5B3611 #115B11 #11365B
split-complementary
#5B115B #365B11 #115B36
monochromatic
#1A051A #270727 #5B115B #8F1B8F #C224C2

Accessibility & contrast

On white

12.53
#5B115B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#5B115B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B115B
12.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B115B#FFFFFF#000000##FFFFFF
##5B115B1.0012.531.6812.53
#FFFFFF12.531.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#012D5D
Deuteranopia (green-blind)
#263759
Tritanopia (blue-blind)
#5E1D35
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #5b115b;
/* rgb */ color: rgb(91, 17, 91);
/* oklch */ color: oklch(34.2% 0.137 328.1);
Tailwind
colors: {
  custom: {
    50: '#8c598a',
    500: '#5b115b',
    950: '#000000',
  },
}
SCSS
$custom: #5b115b;
$custom-light: #8c598a;
$custom-dark: #000000;
JSON
{
  "hex": "#5b115b",
  "rgb": {
    "r": 91,
    "g": 17,
    "b": 91
  },
  "hsl": {
    "h": 300,
    "s": 68.519,
    "l": 21.176
  },
  "oklch": {
    "l": 0.34155,
    "c": 0.13736,
    "h": 328.1
  },
  "luminance": 0.0338
}

Semantic roles & 50–950 ramp

primary
#5B115B
secondary
#349434
accent
#EB3C3C
background
#F8F5F8
surface
#F0E9F0
border
#CBC5CB
text
#0C040B
muted
#7D797C

Preview Lab

Preview with #5B115B

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

Preview Lab → · Contrast checker → · Palette generator →

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