#5B1664#5B1664

#5B1664 is a dark, vivid purple. Relative luminance 0.037; OKLCH L 35.2% C 0.140 H 322.8°. Best body text is #FFFFFF at 12.04:1 contrast (WCAG AA passes).

Color values

HEX#5B1664
RGBrgb(91, 22, 100)
HSLhsl(293, 64%, 24%)
HSVhsv(293, 78%, 39%)
CMYKcmyk(9%, 78%, 0%, 60.8%)
CIE-LABlab(22.72, 41.71, -30.21)
CIE-LCHlch(22.72, 51.50, 324.08°)
OKLaboklab(35.21% 0.1112 -0.0844)
OKLCHoklch(35.21% 0.14 322.8)
XYZxyz(6.9013, 3.7185, 12.4083)
Luminance0.0372 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B1664 #1F6416
analogous
#341664 #5B1664 #641646
triadic
#5B1664 #645B16 #16645B
tetradic
#5B1664 #643416 #1F6416 #164664
square
#5B1664 #643416 #1F6416 #164664
split-complementary
#5B1664 #466416 #166434
monochromatic
#170619 #2D0B32 #5B1664 #892196 #B62CC8

Accessibility & contrast

On white

12.04
#5B1664 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#5B1664 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B1664
12.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B1664#FFFFFF#000000##FFFFFF
##5B16641.0012.041.7412.04
#FFFFFF12.041.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.041.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5b1664;
/* rgb */ color: rgb(91, 22, 100);
/* oklch */ color: oklch(35.2% 0.140 322.8);
Tailwind
colors: {
  custom: {
    50: '#8c5b90',
    500: '#5b1664',
    950: '#000000',
  },
}
SCSS
$custom: #5b1664;
$custom-light: #8c5b90;
$custom-dark: #000000;
JSON
{
  "hex": "#5b1664",
  "rgb": {
    "r": 91,
    "g": 22,
    "b": 100
  },
  "hsl": {
    "h": 293.077,
    "s": 63.934,
    "l": 23.922
  },
  "oklch": {
    "l": 0.35206,
    "c": 0.13962,
    "h": 322.8
  },
  "luminance": 0.03718
}

Semantic roles & 50–950 ramp

primary
#5B1664
secondary
#469B3B
accent
#E74154
background
#F8F5F8
surface
#F0E9F0
border
#CBC5CB
text
#0C040C
muted
#7D797D

Preview Lab

Preview with #5B1664

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

Preview Lab → · Contrast checker → · Palette generator →

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