#5B4E71#5B4E71

#5B4E71 is a mid, muted violet. Relative luminance 0.089; OKLCH L 45.1% C 0.058 H 301.1°. Best body text is #FFFFFF at 7.57:1 contrast (WCAG AA passes).

Color values

HEX#5B4E71
RGBrgb(91, 78, 113)
HSLhsl(262, 18%, 37%)
HSVhsv(262, 31%, 44%)
CMYKcmyk(19.5%, 31%, 0%, 55.7%)
CIE-LABlab(35.72, 13.24, -18.10)
CIE-LCHlch(35.72, 22.43, 306.20°)
OKLaboklab(45.1% 0.0301 -0.0498)
OKLCHoklch(45.1% 0.058 301.1)
XYZxyz(10.0188, 8.8652, 16.8029)
Luminance0.0887 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B4E71 #64714E
analogous
#4E5271 #5B4E71 #6D4E71
triadic
#5B4E71 #715B4E #4E715B
tetradic
#5B4E71 #714E52 #64714E #4E716D
square
#5B4E71 #714E52 #64714E #4E716D
split-complementary
#5B4E71 #716D4E #52714E
monochromatic
#211C29 #3E354D #5B4E71 #786795 #988BAF

Accessibility & contrast

On white

7.57
#5B4E71 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.77
#5B4E71 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B4E71
7.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B4E71#FFFFFF#000000##FFFFFF
##5B4E711.007.572.777.57
#FFFFFF7.571.0021.001.00
#0000002.7721.001.0021.00
##FFFFFF7.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#475472
Deuteranopia (green-blind)
#495470
Tritanopia (blue-blind)
#57535A
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #5b4e71;
/* rgb */ color: rgb(91, 78, 113);
/* oklch */ color: oklch(45.1% 0.058 301.1);
Tailwind
colors: {
  custom: {
    50: '#8a7f9a',
    500: '#5b4e71',
    950: '#000000',
  },
}
SCSS
$custom: #5b4e71;
$custom-light: #8a7f9a;
$custom-dark: #000000;
JSON
{
  "hex": "#5b4e71",
  "rgb": {
    "r": 91,
    "g": 78,
    "b": 113
  },
  "hsl": {
    "h": 262.286,
    "s": 18.325,
    "l": 37.451
  },
  "oklch": {
    "l": 0.45104,
    "c": 0.05817,
    "h": 301.1
  },
  "luminance": 0.08865
}

Semantic roles & 50–950 ramp

primary
#5B4E71
secondary
#919C7F
accent
#BB6D9E
background
#F8F7F9
surface
#F0EEF2
border
#CBC9CC
text
#0B0A0E
muted
#7C7C7E

Preview Lab

Preview with #5B4E71

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

Preview Lab → · Contrast checker → · Palette generator →

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