#5B1560#5B1560

#5B1560 is a dark, vivid purple. Relative luminance 0.036; OKLCH L 34.8% C 0.137 H 325.1°. Best body text is #FFFFFF at 12.20:1 contrast (WCAG AA passes).

Color values

HEX#5B1560
RGBrgb(91, 21, 96)
HSLhsl(296, 64%, 23%)
HSVhsv(296, 78%, 38%)
CMYKcmyk(5.2%, 78.1%, 0%, 62.4%)
CIE-LABlab(22.32, 41.30, -28.21)
CIE-LCHlch(22.32, 50.02, 325.66°)
OKLaboklab(34.84% 0.1125 -0.0785)
OKLCHoklch(34.84% 0.137 325.1)
XYZxyz(6.6937, 3.6054, 11.4074)
Luminance0.0360 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B1560 #1A6015
analogous
#351560 #5B1560 #60153F
triadic
#5B1560 #605B15 #15605B
tetradic
#5B1560 #603515 #1A6015 #153F60
square
#5B1560 #603515 #1A6015 #153F60
split-complementary
#5B1560 #3F6015 #156035
monochromatic
#180519 #2B0A2E #5B1560 #8B2092 #BA2BC4

Accessibility & contrast

On white

12.20
#5B1560 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#5B1560 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B1560
12.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B1560#FFFFFF#000000##FFFFFF
##5B15601.0012.201.7212.20
#FFFFFF12.201.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003062
Deuteranopia (green-blind)
#25385E
Tritanopia (blue-blind)
#5D2239
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #5b1560;
/* rgb */ color: rgb(91, 21, 96);
/* oklch */ color: oklch(34.8% 0.137 325.1);
Tailwind
colors: {
  custom: {
    50: '#8c5b8d',
    500: '#5b1560',
    950: '#000000',
  },
}
SCSS
$custom: #5b1560;
$custom-light: #8c5b8d;
$custom-dark: #000000;
JSON
{
  "hex": "#5b1560",
  "rgb": {
    "r": 91,
    "g": 21,
    "b": 96
  },
  "hsl": {
    "h": 296,
    "s": 64.103,
    "l": 22.941
  },
  "oklch": {
    "l": 0.34838,
    "c": 0.13719,
    "h": 325.1
  },
  "luminance": 0.03605
}

Semantic roles & 50–950 ramp

primary
#5B1560
secondary
#40973A
accent
#E7414C
background
#F8F5F8
surface
#F0E9F0
border
#CBC5CB
text
#0C040C
muted
#7D797D

Preview Lab

Preview with #5B1560

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

Preview Lab → · Contrast checker → · Palette generator →

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