#5B375E#5B375E

#5B375E is a dark, moderate purple. Relative luminance 0.058; OKLCH L 39.6% C 0.078 H 324.2°. Best body text is #FFFFFF at 9.75:1 contrast (WCAG AA passes).

Color values

HEX#5B375E
RGBrgb(91, 55, 94)
HSLhsl(295, 26%, 29%)
HSVhsv(295, 41%, 37%)
CMYKcmyk(3.2%, 41.5%, 0%, 63.1%)
CIE-LABlab(28.81, 23.20, -16.71)
CIE-LCHlch(28.81, 28.59, 324.24°)
OKLaboklab(39.57% 0.0633 -0.0457)
OKLCHoklch(39.57% 0.078 324.2)
XYZxyz(7.7008, 5.7650, 11.2946)
Luminance0.0576 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B375E #3A5E37
analogous
#48375E #5B375E #5E374E
triadic
#5B375E #5E5B37 #375E5B
tetradic
#5B375E #5E4837 #3A5E37 #374E5E
square
#5B375E #5E4837 #3A5E37 #374E5E
split-complementary
#5B375E #4E5E37 #375E48
monochromatic
#130B13 #362037 #5B375E #804E85 #A268A7

Accessibility & contrast

On white

9.75
#5B375E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.15
#5B375E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B375E
9.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B375E#FFFFFF#000000##FFFFFF
##5B375E1.009.752.159.75
#FFFFFF9.751.0021.001.00
#0000002.1521.001.0021.00
##FFFFFF9.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#33415F
Deuteranopia (green-blind)
#3C455D
Tritanopia (blue-blind)
#5D3B46
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #5b375e;
/* rgb */ color: rgb(91, 55, 94);
/* oklch */ color: oklch(39.6% 0.078 324.2);
Tailwind
colors: {
  custom: {
    50: '#8a6f8b',
    500: '#5b375e',
    950: '#000000',
  },
}
SCSS
$custom: #5b375e;
$custom-light: #8a6f8b;
$custom-dark: #000000;
JSON
{
  "hex": "#5b375e",
  "rgb": {
    "r": 91,
    "g": 55,
    "b": 94
  },
  "hsl": {
    "h": 295.385,
    "s": 26.174,
    "l": 29.216
  },
  "oklch": {
    "l": 0.39567,
    "c": 0.07803,
    "h": 324.2
  },
  "luminance": 0.05765
}

Semantic roles & 50–950 ramp

primary
#5B375E
secondary
#668E62
accent
#C3656C
background
#F8F6F8
surface
#F0ECF0
border
#CBC7CB
text
#0C070C
muted
#7D7A7D

Preview Lab

Preview with #5B375E

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

Preview Lab → · Contrast checker → · Palette generator →

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