#5B366D#5B366D

#5B366D is a dark, moderate purple. Relative luminance 0.060; OKLCH L 40.2% C 0.098 H 313.8°. Best body text is #FFFFFF at 9.57:1 contrast (WCAG AA passes).

Color values

HEX#5B366D
RGBrgb(91, 54, 109)
HSLhsl(280, 34%, 32%)
HSVhsv(280, 50%, 43%)
CMYKcmyk(16.5%, 50.5%, 0%, 57.3%)
CIE-LABlab(29.33, 27.28, -25.54)
CIE-LCHlch(29.33, 37.37, 316.88°)
OKLaboklab(40.2% 0.068 -0.071)
OKLCHoklch(40.2% 0.098 313.8)
XYZxyz(8.3934, 5.9668, 15.1746)
Luminance0.0597 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B366D #486D36
analogous
#40366D #5B366D #6D3664
triadic
#5B366D #6D5B36 #366D5B
tetradic
#5B366D #6D4036 #486D36 #36646D
square
#5B366D #6D4036 #486D36 #36646D
split-complementary
#5B366D #646D36 #366D40
monochromatic
#170D1B #392244 #5B366D #7D4A96 #9C69B5

Accessibility & contrast

On white

9.57
#5B366D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.19
#5B366D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B366D
9.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B366D#FFFFFF#000000##FFFFFF
##5B366D1.009.572.199.57
#FFFFFF9.571.0021.001.00
#0000002.1921.001.0021.00
##FFFFFF9.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2A436F
Deuteranopia (green-blind)
#35466C
Tritanopia (blue-blind)
#5A3E4C
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #5b366d;
/* rgb */ color: rgb(91, 54, 109);
/* oklch */ color: oklch(40.2% 0.098 313.8);
Tailwind
colors: {
  custom: {
    50: '#8b6e97',
    500: '#5b366d',
    950: '#000000',
  },
}
SCSS
$custom: #5b366d;
$custom-light: #8b6e97;
$custom-dark: #000000;
JSON
{
  "hex": "#5b366d",
  "rgb": {
    "r": 91,
    "g": 54,
    "b": 109
  },
  "hsl": {
    "h": 280.364,
    "s": 33.742,
    "l": 31.961
  },
  "oklch": {
    "l": 0.40202,
    "c": 0.09833,
    "h": 313.8
  },
  "luminance": 0.05967
}

Semantic roles & 50–950 ramp

primary
#5B366D
secondary
#759D61
accent
#CA5E81
background
#F8F6F9
surface
#F0ECF2
border
#CBC7CC
text
#0C070D
muted
#7D7A7E

Preview Lab

Preview with #5B366D

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

Preview Lab → · Contrast checker → · Palette generator →

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