#5B1152#5B1152

#5B1152 is a dark, vivid purple. Relative luminance 0.032; OKLCH L 33.6% C 0.130 H 333.6°. Best body text is #FFFFFF at 12.75:1 contrast (WCAG AA passes).

Color values

HEX#5B1152
RGBrgb(91, 17, 82)
HSLhsl(307, 69%, 21%)
HSVhsv(307, 81%, 36%)
CMYKcmyk(0%, 81.3%, 9.9%, 64.3%)
CIE-LABlab(20.96, 40.19, -21.03)
CIE-LCHlch(20.96, 45.36, 332.38°)
OKLaboklab(33.59% 0.1164 -0.0577)
OKLCHoklch(33.59% 0.13 333.6)
XYZxyz(6.0379, 3.2348, 8.2874)
Luminance0.0323 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B1152 #115B1A
analogous
#3F115B #5B1152 #5B112D
triadic
#5B1152 #525B11 #11525B
tetradic
#5B1152 #5B3F11 #115B1A #112D5B
square
#5B1152 #5B3F11 #115B1A #112D5B
split-complementary
#5B1152 #2D5B11 #115B3F
monochromatic
#1A0517 #270724 #5B1152 #8F1B80 #C224AF

Accessibility & contrast

On white

12.75
#5B1152 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#5B1152 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B1152
12.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B1152#FFFFFF#000000##FFFFFF
##5B11521.0012.751.6512.75
#FFFFFF12.751.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0E2C54
Deuteranopia (green-blind)
#2B3650
Tritanopia (blue-blind)
#601930
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #5b1152;
/* rgb */ color: rgb(91, 17, 82);
/* oklch */ color: oklch(33.6% 0.130 333.6);
Tailwind
colors: {
  custom: {
    50: '#8c5983',
    500: '#5b1152',
    950: '#000000',
  },
}
SCSS
$custom: #5b1152;
$custom-light: #8c5983;
$custom-dark: #000000;
JSON
{
  "hex": "#5b1152",
  "rgb": {
    "r": 91,
    "g": 17,
    "b": 82
  },
  "hsl": {
    "h": 307.297,
    "s": 68.519,
    "l": 21.176
  },
  "oklch": {
    "l": 0.33586,
    "c": 0.12995,
    "h": 333.6
  },
  "luminance": 0.03234
}

Semantic roles & 50–950 ramp

primary
#5B1152
secondary
#349440
accent
#EB523C
background
#F8F5F8
surface
#F0E9EF
border
#CBC5CA
text
#0C040A
muted
#7D797C

Preview Lab

Preview with #5B1152

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

Preview Lab → · Contrast checker → · Palette generator →

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