#5B366C#5B366C

#5B366C is a dark, moderate purple. Relative luminance 0.059; OKLCH L 40.1% C 0.097 H 314.3°. Best body text is #FFFFFF at 9.59:1 contrast (WCAG AA passes).

Color values

HEX#5B366C
RGBrgb(91, 54, 108)
HSLhsl(281, 33%, 32%)
HSVhsv(281, 50%, 42%)
CMYKcmyk(15.7%, 50%, 0%, 57.6%)
CIE-LABlab(29.27, 27.04, -24.99)
CIE-LCHlch(29.27, 36.81, 317.25°)
OKLaboklab(40.14% 0.0678 -0.0694)
OKLCHoklch(40.14% 0.097 314.3)
XYZxyz(8.3399, 5.9454, 14.8927)
Luminance0.0595 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B366C #476C36
analogous
#40366C #5B366C #6C3662
triadic
#5B366C #6C5B36 #366C5B
tetradic
#5B366C #6C4036 #476C36 #36626C
square
#5B366C #6C4036 #476C36 #36626C
split-complementary
#5B366C #626C36 #366C40
monochromatic
#160D1A #392243 #5B366C #7D4A95 #9C69B4

Accessibility & contrast

On white

9.59
#5B366C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5B366C
9.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B366C#FFFFFF#000000##FFFFFF
##5B366C1.009.592.199.59
#FFFFFF9.591.0021.001.00
#0000002.1921.001.0021.00
##FFFFFF9.591.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5b366c;
/* rgb */ color: rgb(91, 54, 108);
/* oklch */ color: oklch(40.1% 0.097 314.3);
Tailwind
colors: {
  custom: {
    50: '#8b6e96',
    500: '#5b366c',
    950: '#000000',
  },
}
SCSS
$custom: #5b366c;
$custom-light: #8b6e96;
$custom-dark: #000000;
JSON
{
  "hex": "#5b366c",
  "rgb": {
    "r": 91,
    "g": 54,
    "b": 108
  },
  "hsl": {
    "h": 281.111,
    "s": 33.333,
    "l": 31.765
  },
  "oklch": {
    "l": 0.40144,
    "c": 0.09707,
    "h": 314.3
  },
  "luminance": 0.05945
}

Semantic roles & 50–950 ramp

primary
#5B366C
secondary
#749D61
accent
#C95E80
background
#F8F6F9
surface
#F0ECF2
border
#CBC7CC
text
#0C070D
muted
#7D7A7E

Preview Lab

Preview with #5B366C

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

Preview Lab → · Contrast checker → · Palette generator →

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