#5B1658#5B1658

#5B1658 is a dark, vivid purple. Relative luminance 0.035; OKLCH L 34.4% C 0.129 H 329.8°. Best body text is #FFFFFF at 12.35:1 contrast (WCAG AA passes).

Color values

HEX#5B1658
RGBrgb(91, 22, 88)
HSLhsl(303, 61%, 22%)
HSVhsv(303, 76%, 36%)
CMYKcmyk(0%, 75.8%, 3.3%, 64.3%)
CIE-LABlab(21.96, 39.42, -23.49)
CIE-LCHlch(21.96, 45.89, 329.21°)
OKLaboklab(34.42% 0.1114 -0.0648)
OKLCHoklch(34.42% 0.129 329.8)
XYZxyz(6.3627, 3.5030, 9.5717)
Luminance0.0350 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B1658 #165B19
analogous
#3C165B #5B1658 #5B1635
triadic
#5B1658 #585B16 #16585B
tetradic
#5B1658 #5B3C16 #165B19 #16355B
square
#5B1658 #5B3C16 #165B19 #16355B
split-complementary
#5B1658 #355B16 #165B3C
monochromatic
#190618 #2A0A28 #5B1658 #8C2288 #BE2EB7

Accessibility & contrast

On white

12.35
#5B1658 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#5B1658 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B1658
12.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B1658#FFFFFF#000000##FFFFFF
##5B16581.0012.351.7012.35
#FFFFFF12.351.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0E2F5A
Deuteranopia (green-blind)
#2A3856
Tritanopia (blue-blind)
#5F1F35
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #5b1658;
/* rgb */ color: rgb(91, 22, 88);
/* oklch */ color: oklch(34.4% 0.129 329.8);
Tailwind
colors: {
  custom: {
    50: '#8c5b87',
    500: '#5b1658',
    950: '#000000',
  },
}
SCSS
$custom: #5b1658;
$custom-light: #8c5b87;
$custom-dark: #000000;
JSON
{
  "hex": "#5b1658",
  "rgb": {
    "r": 91,
    "g": 22,
    "b": 88
  },
  "hsl": {
    "h": 302.609,
    "s": 61.062,
    "l": 22.157
  },
  "oklch": {
    "l": 0.34415,
    "c": 0.12891,
    "h": 329.8
  },
  "luminance": 0.03503
}

Semantic roles & 50–950 ramp

primary
#5B1658
secondary
#3B923E
accent
#E44B44
background
#F8F5F8
surface
#F0E9EF
border
#CBC5CA
text
#0C040B
muted
#7D797C

Preview Lab

Preview with #5B1658

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

Preview Lab → · Contrast checker → · Palette generator →

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