#5B375F#5B375F

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

Color values

HEX#5B375F
RGBrgb(91, 55, 95)
HSLhsl(294, 27%, 29%)
HSVhsv(294, 42%, 37%)
CMYKcmyk(4.2%, 42.1%, 0%, 62.7%)
CIE-LABlab(28.86, 23.42, -17.29)
CIE-LCHlch(28.86, 29.11, 323.57°)
OKLaboklab(39.62% 0.0635 -0.0473)
OKLCHoklch(39.62% 0.079 323.3)
XYZxyz(7.7459, 5.7830, 11.5325)
Luminance0.0578 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B375F #3B5F37
analogous
#47375F #5B375F #5F374F
triadic
#5B375F #5F5B37 #375F5B
tetradic
#5B375F #5F4737 #3B5F37 #374F5F
square
#5B375F #5F4737 #3B5F37 #374F5F
split-complementary
#5B375F #4F5F37 #375F47
monochromatic
#130B13 #362138 #5B375F #804D86 #A269A8

Accessibility & contrast

On white

9.74
#5B375F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.16
#5B375F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B375F
9.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B375F#FFFFFF#000000##FFFFFF
##5B375F1.009.742.169.74
#FFFFFF9.741.0021.001.00
#0000002.1621.001.0021.00
##FFFFFF9.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#334160
Deuteranopia (green-blind)
#3C465E
Tritanopia (blue-blind)
#5C3B46
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #5b375f;
/* rgb */ color: rgb(91, 55, 95);
/* oklch */ color: oklch(39.6% 0.079 323.3);
Tailwind
colors: {
  custom: {
    50: '#8a6f8c',
    500: '#5b375f',
    950: '#000000',
  },
}
SCSS
$custom: #5b375f;
$custom-light: #8a6f8c;
$custom-dark: #000000;
JSON
{
  "hex": "#5b375f",
  "rgb": {
    "r": 91,
    "g": 55,
    "b": 95
  },
  "hsl": {
    "h": 294,
    "s": 26.667,
    "l": 29.412
  },
  "oklch": {
    "l": 0.39618,
    "c": 0.0792,
    "h": 323.3
  },
  "luminance": 0.05783
}

Semantic roles & 50–950 ramp

primary
#5B375F
secondary
#678F62
accent
#C3656E
background
#F8F6F8
surface
#F0ECF0
border
#CBC7CB
text
#0C070C
muted
#7D7A7D

Preview Lab

Preview with #5B375F

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

Preview Lab → · Contrast checker → · Palette generator →

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