#5B1660#5B1660

#5B1660 is a dark, vivid purple. Relative luminance 0.036; OKLCH L 34.9% C 0.136 H 325.0°. Best body text is #FFFFFF at 12.15:1 contrast (WCAG AA passes).

Color values

HEX#5B1660
RGBrgb(91, 22, 96)
HSLhsl(296, 63%, 23%)
HSVhsv(296, 77%, 38%)
CMYKcmyk(5.2%, 77.1%, 0%, 62.4%)
CIE-LABlab(22.45, 40.92, -28.00)
CIE-LCHlch(22.45, 49.59, 325.62°)
OKLaboklab(34.93% 0.1114 -0.0779)
OKLCHoklch(34.93% 0.136 325)
XYZxyz(6.7125, 3.6429, 11.4137)
Luminance0.0364 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B1660 #1B6016
analogous
#361660 #5B1660 #601640
triadic
#5B1660 #605B16 #16605B
tetradic
#5B1660 #603616 #1B6016 #164060
square
#5B1660 #603616 #1B6016 #164060
split-complementary
#5B1660 #406016 #166036
monochromatic
#180619 #2C0B2E #5B1660 #8A2192 #B92DC4

Accessibility & contrast

On white

12.15
#5B1660 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#5B1660 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B1660
12.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B1660#FFFFFF#000000##FFFFFF
##5B16601.0012.151.7312.15
#FFFFFF12.151.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#013062
Deuteranopia (green-blind)
#25395E
Tritanopia (blue-blind)
#5D2339
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #5b1660;
/* rgb */ color: rgb(91, 22, 96);
/* oklch */ color: oklch(34.9% 0.136 325.0);
Tailwind
colors: {
  custom: {
    50: '#8c5b8d',
    500: '#5b1660',
    950: '#000000',
  },
}
SCSS
$custom: #5b1660;
$custom-light: #8c5b8d;
$custom-dark: #000000;
JSON
{
  "hex": "#5b1660",
  "rgb": {
    "r": 91,
    "g": 22,
    "b": 96
  },
  "hsl": {
    "h": 295.946,
    "s": 62.712,
    "l": 23.137
  },
  "oklch": {
    "l": 0.34933,
    "c": 0.13599,
    "h": 325
  },
  "luminance": 0.03642
}

Semantic roles & 50–950 ramp

primary
#5B1660
secondary
#41973B
accent
#E6424D
background
#F8F5F8
surface
#F0E9F0
border
#CBC5CB
text
#0C040C
muted
#7D797D

Preview Lab

Preview with #5B1660

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

Preview Lab → · Contrast checker → · Palette generator →

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