#5B1472#5B1472

#5B1472 is a dark, vivid purple. Relative luminance 0.039; OKLCH L 36.1% C 0.155 H 316.0°. Best body text is #FFFFFF at 11.75:1 contrast (WCAG AA passes).

Color values

HEX#5B1472
RGBrgb(91, 20, 114)
HSLhsl(285, 70%, 26%)
HSVhsv(285, 82%, 45%)
CMYKcmyk(20.2%, 82.5%, 0%, 55.3%)
CIE-LABlab(23.47, 45.29, -38.09)
CIE-LCHlch(23.47, 59.18, 319.93°)
OKLaboklab(36.06% 0.1113 -0.1074)
OKLCHoklch(36.06% 0.155 316)
XYZxyz(7.6013, 3.9397, 16.2764)
Luminance0.0394 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B1472 #2B7214
analogous
#2C1472 #5B1472 #72145A
triadic
#5B1472 #725B14 #14725B
tetradic
#5B1472 #722C14 #2B7214 #145A72
square
#5B1472 #722C14 #2B7214 #145A72
split-complementary
#5B1472 #5A7214 #14722C
monochromatic
#15051A #310B3E #5B1472 #851DA6 #AE27D9

Accessibility & contrast

On white

11.75
#5B1472 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.79
#5B1472 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B1472
11.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B1472#FFFFFF#000000##FFFFFF
##5B14721.0011.751.7911.75
#FFFFFF11.751.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003475
Deuteranopia (green-blind)
#123A70
Tritanopia (blue-blind)
#592A43
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #5b1472;
/* rgb */ color: rgb(91, 20, 114);
/* oklch */ color: oklch(36.1% 0.155 316.0);
Tailwind
colors: {
  custom: {
    50: '#8d5b9b',
    500: '#5b1472',
    950: '#000000',
  },
}
SCSS
$custom: #5b1472;
$custom-light: #8d5b9b;
$custom-dark: #000000;
JSON
{
  "hex": "#5b1472",
  "rgb": {
    "r": 91,
    "g": 20,
    "b": 114
  },
  "hsl": {
    "h": 285.319,
    "s": 70.149,
    "l": 26.275
  },
  "oklch": {
    "l": 0.36059,
    "c": 0.15473,
    "h": 316
  },
  "luminance": 0.03939
}

Semantic roles & 50–950 ramp

primary
#5B1472
secondary
#55A839
accent
#ED3B66
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0D040E
muted
#7D797E

Preview Lab

Preview with #5B1472

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

Preview Lab → · Contrast checker → · Palette generator →

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