#5B1464#5B1464

#5B1464 is a dark, vivid purple. Relative luminance 0.036; OKLCH L 35.0% C 0.142 H 322.9°. Best body text is #FFFFFF at 12.15:1 contrast (WCAG AA passes).

Color values

HEX#5B1464
RGBrgb(91, 20, 100)
HSLhsl(293, 67%, 24%)
HSVhsv(293, 80%, 39%)
CMYKcmyk(9%, 80%, 0%, 60.8%)
CIE-LABlab(22.46, 42.44, -30.62)
CIE-LCHlch(22.46, 52.33, 324.19°)
OKLaboklab(35.02% 0.1132 -0.0856)
OKLCHoklch(35.02% 0.142 322.9)
XYZxyz(6.8646, 3.6450, 12.3961)
Luminance0.0365 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B1464 #1D6414
analogous
#331464 #5B1464 #641445
triadic
#5B1464 #645B14 #14645B
tetradic
#5B1464 #643314 #1D6414 #144564
square
#5B1464 #643314 #1D6414 #144564
split-complementary
#5B1464 #456414 #146433
monochromatic
#17051A #2D0A31 #5B1464 #891E97 #B828CA

Accessibility & contrast

On white

12.15
#5B1464 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#5B1464 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B1464
12.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B1464#FFFFFF#000000##FFFFFF
##5B14641.0012.151.7312.15
#FFFFFF12.151.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003066
Deuteranopia (green-blind)
#213862
Tritanopia (blue-blind)
#5C233B
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #5b1464;
/* rgb */ color: rgb(91, 20, 100);
/* oklch */ color: oklch(35.0% 0.142 322.9);
Tailwind
colors: {
  custom: {
    50: '#8c5b90',
    500: '#5b1464',
    950: '#000000',
  },
}
SCSS
$custom: #5b1464;
$custom-light: #8c5b90;
$custom-dark: #000000;
JSON
{
  "hex": "#5b1464",
  "rgb": {
    "r": 91,
    "g": 20,
    "b": 100
  },
  "hsl": {
    "h": 293.25,
    "s": 66.667,
    "l": 23.529
  },
  "oklch": {
    "l": 0.35023,
    "c": 0.14193,
    "h": 322.9
  },
  "luminance": 0.03645
}

Semantic roles & 50–950 ramp

primary
#5B1464
secondary
#449B38
accent
#EA3E51
background
#F8F5F8
surface
#F0E9F0
border
#CBC5CB
text
#0C040C
muted
#7D797D

Preview Lab

Preview with #5B1464

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

Preview Lab → · Contrast checker → · Palette generator →

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