#5B1671#5B1671

#5B1671 is a dark, vivid purple. Relative luminance 0.040; OKLCH L 36.2% C 0.152 H 316.3°. Best body text is #FFFFFF at 11.68:1 contrast (WCAG AA passes).

Color values

HEX#5B1671
RGBrgb(91, 22, 113)
HSLhsl(285, 67%, 26%)
HSVhsv(285, 81%, 44%)
CMYKcmyk(19.5%, 80.5%, 0%, 55.7%)
CIE-LABlab(23.64, 44.37, -37.17)
CIE-LCHlch(23.64, 57.89, 320.04°)
OKLaboklab(36.15% 0.1097 -0.1048)
OKLCHoklch(36.15% 0.152 316.3)
XYZxyz(7.5815, 3.9905, 15.9905)
Luminance0.0399 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B1671 #2C7116
analogous
#2E1671 #5B1671 #71165A
triadic
#5B1671 #715B16 #16715B
tetradic
#5B1671 #712E16 #2C7116 #165A71
square
#5B1671 #712E16 #2C7116 #165A71
split-complementary
#5B1671 #5A7116 #16712E
monochromatic
#15051A #320C3E #5B1671 #8420A4 #AD2CD6

Accessibility & contrast

On white

11.68
#5B1671 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.80
#5B1671 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B1671
11.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B1671#FFFFFF#000000##FFFFFF
##5B16711.0011.681.8011.68
#FFFFFF11.681.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003473
Deuteranopia (green-blind)
#153A6F
Tritanopia (blue-blind)
#5A2A43
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #5b1671;
/* rgb */ color: rgb(91, 22, 113);
/* oklch */ color: oklch(36.2% 0.152 316.3);
Tailwind
colors: {
  custom: {
    50: '#8d5c9a',
    500: '#5b1671',
    950: '#000000',
  },
}
SCSS
$custom: #5b1671;
$custom-light: #8d5c9a;
$custom-dark: #000000;
JSON
{
  "hex": "#5b1671",
  "rgb": {
    "r": 91,
    "g": 22,
    "b": 113
  },
  "hsl": {
    "h": 285.495,
    "s": 67.407,
    "l": 26.471
  },
  "oklch": {
    "l": 0.36154,
    "c": 0.15171,
    "h": 316.3
  },
  "luminance": 0.0399
}

Semantic roles & 50–950 ramp

primary
#5B1671
secondary
#56A73C
accent
#EA3E67
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0D040E
muted
#7D797E

Preview Lab

Preview with #5B1671

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

Preview Lab → · Contrast checker → · Palette generator →

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