#5B1468#5B1468

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

Color values

HEX#5B1468
RGBrgb(91, 20, 104)
HSLhsl(291, 68%, 24%)
HSVhsv(291, 81%, 41%)
CMYKcmyk(12.5%, 80.8%, 0%, 59.2%)
CIE-LABlab(22.74, 43.23, -32.79)
CIE-LCHlch(22.74, 54.26, 322.82°)
OKLaboklab(35.31% 0.1128 -0.0919)
OKLCHoklch(35.31% 0.146 320.8)
XYZxyz(7.0629, 3.7243, 13.4409)
Luminance0.0372 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B1468 #216814
analogous
#311468 #5B1468 #68144B
triadic
#5B1468 #685B14 #14685B
tetradic
#5B1468 #683114 #216814 #144B68
square
#5B1468 #683114 #216814 #144B68
split-complementary
#5B1468 #4B6814 #146831
monochromatic
#16051A #2E0A35 #5B1468 #881E9B #B528CF

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##5B1468#FFFFFF#000000##FFFFFF
##5B14681.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)
#00316A
Deuteranopia (green-blind)
#1E3966
Tritanopia (blue-blind)
#5C253D
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #5b1468;
/* rgb */ color: rgb(91, 20, 104);
/* oklch */ color: oklch(35.3% 0.146 320.8);
Tailwind
colors: {
  custom: {
    50: '#8d5b94',
    500: '#5b1468',
    950: '#000000',
  },
}
SCSS
$custom: #5b1468;
$custom-light: #8d5b94;
$custom-dark: #000000;
JSON
{
  "hex": "#5b1468",
  "rgb": {
    "r": 91,
    "g": 20,
    "b": 104
  },
  "hsl": {
    "h": 290.714,
    "s": 67.742,
    "l": 24.314
  },
  "oklch": {
    "l": 0.35309,
    "c": 0.14554,
    "h": 320.8
  },
  "luminance": 0.03724
}

Semantic roles & 50–950 ramp

primary
#5B1468
secondary
#499F39
accent
#EB3D58
background
#F8F5F9
surface
#F0E9F1
border
#CBC5CB
text
#0C040D
muted
#7D797E

Preview Lab

Preview with #5B1468

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

Preview Lab → · Contrast checker → · Palette generator →

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