#5B1150#5B1150

#5B1150 is a dark, vivid purple. Relative luminance 0.032; OKLCH L 33.5% C 0.128 H 335.0°. Best body text is #FFFFFF at 12.80:1 contrast (WCAG AA passes).

Color values

HEX#5B1150
RGBrgb(91, 17, 80)
HSLhsl(309, 69%, 21%)
HSVhsv(309, 81%, 36%)
CMYKcmyk(0%, 81.3%, 12.1%, 64.3%)
CIE-LABlab(20.85, 39.86, -19.86)
CIE-LCHlch(20.85, 44.53, 333.51°)
OKLaboklab(33.47% 0.1163 -0.0543)
OKLCHoklch(33.47% 0.128 335)
XYZxyz(5.9629, 3.2048, 7.8924)
Luminance0.0320 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B1150 #115B1C
analogous
#41115B #5B1150 #5B112B
triadic
#5B1150 #505B11 #11505B
tetradic
#5B1150 #5B4111 #115B1C #112B5B
square
#5B1150 #5B4111 #115B1C #112B5B
split-complementary
#5B1150 #2B5B11 #115B41
monochromatic
#1A0517 #270723 #5B1150 #8F1B7D #C224AB

Accessibility & contrast

On white

12.80
#5B1150 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#5B1150 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B1150
12.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B1150#FFFFFF#000000##FFFFFF
##5B11501.0012.801.6412.80
#FFFFFF12.801.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#112B52
Deuteranopia (green-blind)
#2C364E
Tritanopia (blue-blind)
#60182F
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #5b1150;
/* rgb */ color: rgb(91, 17, 80);
/* oklch */ color: oklch(33.5% 0.128 335.0);
Tailwind
colors: {
  custom: {
    50: '#8c5881',
    500: '#5b1150',
    950: '#000000',
  },
}
SCSS
$custom: #5b1150;
$custom-light: #8c5881;
$custom-dark: #000000;
JSON
{
  "hex": "#5b1150",
  "rgb": {
    "r": 91,
    "g": 17,
    "b": 80
  },
  "hsl": {
    "h": 308.919,
    "s": 68.519,
    "l": 21.176
  },
  "oklch": {
    "l": 0.33466,
    "c": 0.12837,
    "h": 335
  },
  "luminance": 0.03204
}

Semantic roles & 50–950 ramp

primary
#5B1150
secondary
#349442
accent
#EB563C
background
#F8F5F7
surface
#F0E9EE
border
#CBC5C9
text
#0C040A
muted
#7D797C

Preview Lab

Preview with #5B1150

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

Preview Lab → · Contrast checker → · Palette generator →

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