#5B3356#5B3356

#5B3356 is a dark, moderate purple. Relative luminance 0.053; OKLCH L 38.4% C 0.077 H 331.6°. Best body text is #FFFFFF at 10.23:1 contrast (WCAG AA passes).

Color values

HEX#5B3356
RGBrgb(91, 51, 86)
HSLhsl(308, 28%, 28%)
HSVhsv(308, 44%, 36%)
CMYKcmyk(0%, 44%, 5.5%, 64.3%)
CIE-LABlab(27.47, 23.95, -13.56)
CIE-LCHlch(27.47, 27.53, 330.48°)
OKLaboklab(38.44% 0.068 -0.0367)
OKLCHoklch(38.44% 0.077 331.6)
XYZxyz(7.1779, 5.2641, 9.4403)
Luminance0.0526 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B3356 #335B38
analogous
#4C335B #5B3356 #5B3342
triadic
#5B3356 #565B33 #33565B
tetradic
#5B3356 #5B4C33 #335B38 #33425B
square
#5B3356 #5B4C33 #335B38 #33425B
split-complementary
#5B3356 #425B33 #335B4C
monochromatic
#140B13 #341D31 #5B3356 #82497B #A7629E

Accessibility & contrast

On white

10.23
#5B3356 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.05
#5B3356 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B3356
10.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B3356#FFFFFF#000000##FFFFFF
##5B33561.0010.232.0510.23
#FFFFFF10.231.0021.001.00
#0000002.0521.001.0021.00
##FFFFFF10.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#323D57
Deuteranopia (green-blind)
#3C4355
Tritanopia (blue-blind)
#5E3640
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #5b3356;
/* rgb */ color: rgb(91, 51, 86);
/* oklch */ color: oklch(38.4% 0.077 331.6);
Tailwind
colors: {
  custom: {
    50: '#8a6c85',
    500: '#5b3356',
    950: '#000000',
  },
}
SCSS
$custom: #5b3356;
$custom-light: #8a6c85;
$custom-dark: #000000;
JSON
{
  "hex": "#5b3356",
  "rgb": {
    "r": 91,
    "g": 51,
    "b": 86
  },
  "hsl": {
    "h": 307.5,
    "s": 28.169,
    "l": 27.843
  },
  "oklch": {
    "l": 0.38443,
    "c": 0.07727,
    "h": 331.6
  },
  "luminance": 0.05264
}

Semantic roles & 50–950 ramp

primary
#5B3356
secondary
#5E8C64
accent
#C46F63
background
#F8F6F8
surface
#F0EBEF
border
#CBC6CA
text
#0C070B
muted
#7D7A7C

Preview Lab

Preview with #5B3356

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

Preview Lab → · Contrast checker → · Palette generator →

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