#5B1667#5B1667

#5B1667 is a dark, vivid purple. Relative luminance 0.038; OKLCH L 35.4% C 0.142 H 321.2°. Best body text is #FFFFFF at 11.96:1 contrast (WCAG AA passes).

Color values

HEX#5B1667
RGBrgb(91, 22, 103)
HSLhsl(291, 65%, 25%)
HSVhsv(291, 79%, 40%)
CMYKcmyk(11.7%, 78.6%, 0%, 59.6%)
CIE-LABlab(22.92, 42.31, -31.85)
CIE-LCHlch(22.92, 52.95, 323.03°)
OKLaboklab(35.42% 0.111 -0.0892)
OKLCHoklch(35.42% 0.142 321.2)
XYZxyz(7.0492, 3.7776, 13.1872)
Luminance0.0378 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B1667 #226716
analogous
#331667 #5B1667 #67164B
triadic
#5B1667 #675B16 #16675B
tetradic
#5B1667 #673316 #226716 #164B67
square
#5B1667 #673316 #226716 #164B67
split-complementary
#5B1667 #4B6716 #166733
monochromatic
#160519 #2E0B35 #5B1667 #882199 #B42CCC

Accessibility & contrast

On white

11.96
#5B1667 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.76
#5B1667 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B1667
11.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B1667#FFFFFF#000000##FFFFFF
##5B16671.0011.961.7611.96
#FFFFFF11.961.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003269
Deuteranopia (green-blind)
#203965
Tritanopia (blue-blind)
#5C263D
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #5b1667;
/* rgb */ color: rgb(91, 22, 103);
/* oklch */ color: oklch(35.4% 0.142 321.2);
Tailwind
colors: {
  custom: {
    50: '#8c5c93',
    500: '#5b1667',
    950: '#000000',
  },
}
SCSS
$custom: #5b1667;
$custom-light: #8c5c93;
$custom-dark: #000000;
JSON
{
  "hex": "#5b1667",
  "rgb": {
    "r": 91,
    "g": 22,
    "b": 103
  },
  "hsl": {
    "h": 291.111,
    "s": 64.8,
    "l": 24.51
  },
  "oklch": {
    "l": 0.35417,
    "c": 0.14237,
    "h": 321.2
  },
  "luminance": 0.03777
}

Semantic roles & 50–950 ramp

primary
#5B1667
secondary
#4A9E3B
accent
#E84059
background
#F8F5F9
surface
#F0E9F1
border
#CBC5CB
text
#0C040D
muted
#7D797E

Preview Lab

Preview with #5B1667

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

Preview Lab → · Contrast checker → · Palette generator →

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