#5B1155#5B1155

#5B1155 is a dark, vivid purple. Relative luminance 0.033; OKLCH L 33.8% C 0.132 H 331.7°. Best body text is #FFFFFF at 12.68:1 contrast (WCAG AA passes).

Color values

HEX#5B1155
RGBrgb(91, 17, 85)
HSLhsl(305, 69%, 21%)
HSVhsv(305, 81%, 36%)
CMYKcmyk(0%, 81.3%, 6.6%, 64.3%)
CIE-LABlab(21.14, 40.71, -22.77)
CIE-LCHlch(21.14, 46.64, 330.77°)
OKLaboklab(33.77% 0.1166 -0.0627)
OKLCHoklch(33.77% 0.132 331.7)
XYZxyz(6.1545, 3.2814, 8.9018)
Luminance0.0328 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B1155 #115B17
analogous
#3C115B #5B1155 #5B1130
triadic
#5B1155 #555B11 #11555B
tetradic
#5B1155 #5B3C11 #115B17 #11305B
square
#5B1155 #5B3C11 #115B17 #11305B
split-complementary
#5B1155 #305B11 #115B3C
monochromatic
#1A0518 #270725 #5B1155 #8F1B85 #C224B5

Accessibility & contrast

On white

12.68
#5B1155 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#5B1155 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B1155
12.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B1155#FFFFFF#000000##FFFFFF
##5B11551.0012.681.6612.68
#FFFFFF12.681.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0B2C57
Deuteranopia (green-blind)
#293653
Tritanopia (blue-blind)
#5F1A32
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #5b1155;
/* rgb */ color: rgb(91, 17, 85);
/* oklch */ color: oklch(33.8% 0.132 331.7);
Tailwind
colors: {
  custom: {
    50: '#8c5985',
    500: '#5b1155',
    950: '#000000',
  },
}
SCSS
$custom: #5b1155;
$custom-light: #8c5985;
$custom-dark: #000000;
JSON
{
  "hex": "#5b1155",
  "rgb": {
    "r": 91,
    "g": 17,
    "b": 85
  },
  "hsl": {
    "h": 304.865,
    "s": 68.519,
    "l": 21.176
  },
  "oklch": {
    "l": 0.3377,
    "c": 0.13238,
    "h": 331.7
  },
  "luminance": 0.03281
}

Semantic roles & 50–950 ramp

primary
#5B1155
secondary
#34943C
accent
#EB4B3C
background
#F8F5F8
surface
#F0E9EF
border
#CBC5CA
text
#0C040B
muted
#7D797C

Preview Lab

Preview with #5B1155

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

Preview Lab → · Contrast checker → · Palette generator →

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