#5B1666#5B1666

#5B1666 is a dark, vivid purple. Relative luminance 0.038; OKLCH L 35.3% C 0.141 H 321.8°. Best body text is #FFFFFF at 11.99:1 contrast (WCAG AA passes).

Color values

HEX#5B1666
RGBrgb(91, 22, 102)
HSLhsl(292, 65%, 24%)
HSVhsv(292, 78%, 40%)
CMYKcmyk(10.8%, 78.4%, 0%, 60%)
CIE-LABlab(22.85, 42.10, -31.30)
CIE-LCHlch(22.85, 52.46, 323.37°)
OKLaboklab(35.35% 0.1111 -0.0876)
OKLCHoklch(35.35% 0.141 321.8)
XYZxyz(6.9993, 3.7577, 12.9244)
Luminance0.0376 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B1666 #216616
analogous
#331666 #5B1666 #661649
triadic
#5B1666 #665B16 #16665B
tetradic
#5B1666 #663316 #216616 #164966
square
#5B1666 #663316 #216616 #164966
split-complementary
#5B1666 #496616 #166633
monochromatic
#160519 #2E0B34 #5B1666 #882198 #B52CCB

Accessibility & contrast

On white

11.99
#5B1666 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#5B1666 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B1666
11.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B1666#FFFFFF#000000##FFFFFF
##5B16661.0011.991.7511.99
#FFFFFF11.991.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF11.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003268
Deuteranopia (green-blind)
#213964
Tritanopia (blue-blind)
#5C253D
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #5b1666;
/* rgb */ color: rgb(91, 22, 102);
/* oklch */ color: oklch(35.3% 0.141 321.8);
Tailwind
colors: {
  custom: {
    50: '#8c5c92',
    500: '#5b1666',
    950: '#000000',
  },
}
SCSS
$custom: #5b1666;
$custom-light: #8c5c92;
$custom-dark: #000000;
JSON
{
  "hex": "#5b1666",
  "rgb": {
    "r": 91,
    "g": 22,
    "b": 102
  },
  "hsl": {
    "h": 291.75,
    "s": 64.516,
    "l": 24.314
  },
  "oklch": {
    "l": 0.35346,
    "c": 0.14145,
    "h": 321.8
  },
  "luminance": 0.03757
}

Semantic roles & 50–950 ramp

primary
#5B1666
secondary
#499D3B
accent
#E84057
background
#F8F5F9
surface
#F0E9F1
border
#CBC5CB
text
#0C040D
muted
#7D797E

Preview Lab

Preview with #5B1666

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

Preview Lab → · Contrast checker → · Palette generator →

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