#5B1665#5B1665

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

Color values

HEX#5B1665
RGBrgb(91, 22, 101)
HSLhsl(292, 64%, 24%)
HSVhsv(292, 78%, 40%)
CMYKcmyk(9.9%, 78.2%, 0%, 60.4%)
CIE-LABlab(22.79, 41.91, -30.76)
CIE-LCHlch(22.79, 51.98, 323.72°)
OKLaboklab(35.28% 0.1112 -0.086)
OKLCHoklch(35.28% 0.141 322.3)
XYZxyz(6.9500, 3.7379, 12.6648)
Luminance0.0374 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B1665 #206516
analogous
#341665 #5B1665 #651648
triadic
#5B1665 #655B16 #16655B
tetradic
#5B1665 #653416 #206516 #164865
square
#5B1665 #653416 #206516 #164865
split-complementary
#5B1665 #486516 #166534
monochromatic
#170519 #2E0B33 #5B1665 #882197 #B62CCA

Accessibility & contrast

On white

12.02
#5B1665 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5B1665
12.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B1665#FFFFFF#000000##FFFFFF
##5B16651.0012.021.7512.02
#FFFFFF12.021.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF12.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003167
Deuteranopia (green-blind)
#223963
Tritanopia (blue-blind)
#5C253C
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #5b1665;
/* rgb */ color: rgb(91, 22, 101);
/* oklch */ color: oklch(35.3% 0.141 322.3);
Tailwind
colors: {
  custom: {
    50: '#8c5c91',
    500: '#5b1665',
    950: '#000000',
  },
}
SCSS
$custom: #5b1665;
$custom-light: #8c5c91;
$custom-dark: #000000;
JSON
{
  "hex": "#5b1665",
  "rgb": {
    "r": 91,
    "g": 22,
    "b": 101
  },
  "hsl": {
    "h": 292.405,
    "s": 64.228,
    "l": 24.118
  },
  "oklch": {
    "l": 0.35276,
    "c": 0.14054,
    "h": 322.3
  },
  "luminance": 0.03738
}

Semantic roles & 50–950 ramp

primary
#5B1665
secondary
#479C3B
accent
#E74156
background
#F8F5F9
surface
#F0E9F1
border
#CBC5CB
text
#0C040D
muted
#7D797E

Preview Lab

Preview with #5B1665

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

Preview Lab → · Contrast checker → · Palette generator →

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