#5B1B60#5B1B60

#5B1B60 is a dark, vivid purple. Relative luminance 0.039; OKLCH L 35.5% C 0.129 H 324.8°. Best body text is #FFFFFF at 11.86:1 contrast (WCAG AA passes).

Color values

HEX#5B1B60
RGBrgb(91, 27, 96)
HSLhsl(296, 56%, 24%)
HSVhsv(296, 72%, 38%)
CMYKcmyk(5.2%, 71.9%, 0%, 62.4%)
CIE-LABlab(23.18, 38.87, -26.85)
CIE-LCHlch(23.18, 47.24, 325.37°)
OKLaboklab(35.45% 0.1058 -0.0746)
OKLCHoklch(35.45% 0.129 324.8)
XYZxyz(6.8175, 3.8530, 11.4487)
Luminance0.0385 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B1B60 #20601B
analogous
#391B60 #5B1B60 #601B43
triadic
#5B1B60 #605B1B #1B605B
tetradic
#5B1B60 #60391B #20601B #1B4360
square
#5B1B60 #60391B #20601B #1B4360
split-complementary
#5B1B60 #43601B #1B6039
monochromatic
#170718 #2E0E30 #5B1B60 #882890 #B636C0

Accessibility & contrast

On white

11.86
#5B1B60 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#5B1B60 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B1B60
11.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B1B60#FFFFFF#000000##FFFFFF
##5B1B601.0011.861.7711.86
#FFFFFF11.861.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0B3262
Deuteranopia (green-blind)
#283A5E
Tritanopia (blue-blind)
#5D263B
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #5b1b60;
/* rgb */ color: rgb(91, 27, 96);
/* oklch */ color: oklch(35.5% 0.129 324.8);
Tailwind
colors: {
  custom: {
    50: '#8c5e8d',
    500: '#5b1b60',
    950: '#000000',
  },
}
SCSS
$custom: #5b1b60;
$custom-light: #8c5e8d;
$custom-dark: #000000;
JSON
{
  "hex": "#5b1b60",
  "rgb": {
    "r": 91,
    "g": 27,
    "b": 96
  },
  "hsl": {
    "h": 295.652,
    "s": 56.098,
    "l": 24.118
  },
  "oklch": {
    "l": 0.35453,
    "c": 0.12943,
    "h": 324.8
  },
  "luminance": 0.03853
}

Semantic roles & 50–950 ramp

primary
#5B1B60
secondary
#479641
accent
#DF4853
background
#F8F5F8
surface
#F0E9F0
border
#CBC5CB
text
#0C050C
muted
#7D797D

Preview Lab

Preview with #5B1B60

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

Preview Lab → · Contrast checker → · Palette generator →

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