#5B1366#5B1366

#5B1366 is a dark, vivid purple. Relative luminance 0.036; OKLCH L 35.1% C 0.145 H 321.9°. Best body text is #FFFFFF at 12.14:1 contrast (WCAG AA passes).

Color values

HEX#5B1366
RGBrgb(91, 19, 102)
HSLhsl(292, 69%, 24%)
HSVhsv(292, 81%, 40%)
CMYKcmyk(10.8%, 81.4%, 0%, 60%)
CIE-LABlab(22.48, 43.18, -31.90)
CIE-LCHlch(22.48, 53.69, 323.54°)
OKLaboklab(35.08% 0.114 -0.0893)
OKLCHoklch(35.08% 0.145 321.9)
XYZxyz(6.9453, 3.6496, 12.9064)
Luminance0.0365 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B1366 #1E6613
analogous
#311366 #5B1366 #661347
triadic
#5B1366 #665B13 #13665B
tetradic
#5B1366 #663113 #1E6613 #134766
square
#5B1366 #663113 #1E6613 #134766
split-complementary
#5B1366 #476613 #136631
monochromatic
#17051A #2D0932 #5B1366 #891D9A #B726CD

Accessibility & contrast

On white

12.14
#5B1366 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5B1366
12.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B1366#FFFFFF#000000##FFFFFF
##5B13661.0012.141.7312.14
#FFFFFF12.141.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003168
Deuteranopia (green-blind)
#1F3864
Tritanopia (blue-blind)
#5C243C
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #5b1366;
/* rgb */ color: rgb(91, 19, 102);
/* oklch */ color: oklch(35.1% 0.145 321.9);
Tailwind
colors: {
  custom: {
    50: '#8d5a92',
    500: '#5b1366',
    950: '#000000',
  },
}
SCSS
$custom: #5b1366;
$custom-light: #8d5a92;
$custom-dark: #000000;
JSON
{
  "hex": "#5b1366",
  "rgb": {
    "r": 91,
    "g": 19,
    "b": 102
  },
  "hsl": {
    "h": 292.048,
    "s": 68.595,
    "l": 23.725
  },
  "oklch": {
    "l": 0.35079,
    "c": 0.14481,
    "h": 321.9
  },
  "luminance": 0.03649
}

Semantic roles & 50–950 ramp

primary
#5B1366
secondary
#459D37
accent
#EB3C54
background
#F8F5F9
surface
#F0E9F1
border
#CBC5CB
text
#0C040D
muted
#7D797E

Preview Lab

Preview with #5B1366

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

Preview Lab → · Contrast checker → · Palette generator →

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