#5B1659#5B1659

#5B1659 is a dark, vivid purple. Relative luminance 0.035; OKLCH L 34.5% C 0.130 H 329.2°. Best body text is #FFFFFF at 12.33:1 contrast (WCAG AA passes).

Color values

HEX#5B1659
RGBrgb(91, 22, 89)
HSLhsl(302, 61%, 22%)
HSVhsv(302, 76%, 36%)
CMYKcmyk(0%, 75.8%, 2.2%, 64.3%)
CIE-LABlab(22.02, 39.60, -24.06)
CIE-LCHlch(22.02, 46.34, 328.72°)
OKLaboklab(34.48% 0.1115 -0.0665)
OKLCHoklch(34.48% 0.13 329.2)
XYZxyz(6.4044, 3.5197, 9.7913)
Luminance0.0352 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B1659 #165B18
analogous
#3B165B #5B1659 #5B1637
triadic
#5B1659 #595B16 #16595B
tetradic
#5B1659 #5B3B16 #165B18 #16375B
square
#5B1659 #5B3B16 #165B18 #16375B
split-complementary
#5B1659 #375B16 #165B3B
monochromatic
#190618 #2A0A29 #5B1659 #8C2289 #BE2EB9

Accessibility & contrast

On white

12.33
#5B1659 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5B1659
12.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B1659#FFFFFF#000000##FFFFFF
##5B16591.0012.331.7012.33
#FFFFFF12.331.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0D2F5B
Deuteranopia (green-blind)
#293857
Tritanopia (blue-blind)
#5E1F36
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #5b1659;
/* rgb */ color: rgb(91, 22, 89);
/* oklch */ color: oklch(34.5% 0.130 329.2);
Tailwind
colors: {
  custom: {
    50: '#8c5b88',
    500: '#5b1659',
    950: '#000000',
  },
}
SCSS
$custom: #5b1659;
$custom-light: #8c5b88;
$custom-dark: #000000;
JSON
{
  "hex": "#5b1659",
  "rgb": {
    "r": 91,
    "g": 22,
    "b": 89
  },
  "hsl": {
    "h": 301.739,
    "s": 61.062,
    "l": 22.157
  },
  "oklch": {
    "l": 0.34477,
    "c": 0.12978,
    "h": 329.2
  },
  "luminance": 0.03519
}

Semantic roles & 50–950 ramp

primary
#5B1659
secondary
#3B923D
accent
#E44844
background
#F8F5F8
surface
#F0E9F0
border
#CBC5CB
text
#0C040B
muted
#7D797C

Preview Lab

Preview with #5B1659

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

Preview Lab → · Contrast checker → · Palette generator →

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