#5B1668#5B1668

#5B1668 is a dark, vivid purple. Relative luminance 0.038; OKLCH L 35.5% C 0.143 H 320.7°. Best body text is #FFFFFF at 11.94:1 contrast (WCAG AA passes).

Color values

HEX#5B1668
RGBrgb(91, 22, 104)
HSLhsl(290, 65%, 25%)
HSVhsv(290, 79%, 41%)
CMYKcmyk(12.5%, 78.8%, 0%, 59.2%)
CIE-LABlab(22.99, 42.51, -32.39)
CIE-LCHlch(22.99, 53.44, 322.70°)
OKLaboklab(35.49% 0.1109 -0.0907)
OKLCHoklch(35.49% 0.143 320.7)
XYZxyz(7.0997, 3.7978, 13.4531)
Luminance0.0380 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B1668 #236816
analogous
#321668 #5B1668 #68164C
triadic
#5B1668 #685B16 #16685B
tetradic
#5B1668 #683216 #236816 #164C68
square
#5B1668 #683216 #236816 #164C68
split-complementary
#5B1668 #4C6816 #166832
monochromatic
#160519 #2F0B35 #5B1668 #87219B #B32BCD

Accessibility & contrast

On white

11.94
#5B1668 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5B1668
11.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B1668#FFFFFF#000000##FFFFFF
##5B16681.0011.941.7611.94
#FFFFFF11.941.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00326A
Deuteranopia (green-blind)
#1F3966
Tritanopia (blue-blind)
#5C263E
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #5b1668;
/* rgb */ color: rgb(91, 22, 104);
/* oklch */ color: oklch(35.5% 0.143 320.7);
Tailwind
colors: {
  custom: {
    50: '#8c5c94',
    500: '#5b1668',
    950: '#000000',
  },
}
SCSS
$custom: #5b1668;
$custom-light: #8c5c94;
$custom-dark: #000000;
JSON
{
  "hex": "#5b1668",
  "rgb": {
    "r": 91,
    "g": 22,
    "b": 104
  },
  "hsl": {
    "h": 290.488,
    "s": 65.079,
    "l": 24.706
  },
  "oklch": {
    "l": 0.35488,
    "c": 0.1433,
    "h": 320.7
  },
  "luminance": 0.03797
}

Semantic roles & 50–950 ramp

primary
#5B1668
secondary
#4B9F3B
accent
#E8405A
background
#F8F5F9
surface
#F0E9F1
border
#CBC5CB
text
#0C040D
muted
#7D797E

Preview Lab

Preview with #5B1668

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

Preview Lab → · Contrast checker → · Palette generator →

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