#5B4584#5B4584

#5B4584 is a dark, moderate violet. Relative luminance 0.081; OKLCH L 44.3% C 0.102 H 298.2°. Best body text is #FFFFFF at 7.99:1 contrast (WCAG AA passes).

Color values

HEX#5B4584
RGBrgb(91, 69, 132)
HSLhsl(261, 31%, 39%)
HSVhsv(261, 48%, 52%)
CMYKcmyk(31.1%, 47.7%, 0%, 48.2%)
CIE-LABlab(34.29, 23.97, -32.13)
CIE-LCHlch(34.29, 40.09, 306.72°)
OKLaboklab(44.32% 0.0484 -0.0902)
OKLCHoklch(44.32% 0.102 298.2)
XYZxyz(10.6064, 8.1462, 22.8389)
Luminance0.0815 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B4584 #6E8445
analogous
#454F84 #5B4584 #7B4584
triadic
#5B4584 #845B45 #45845B
tetradic
#5B4584 #84454F #6E8445 #45847B
square
#5B4584 #84454F #6E8445 #45847B
split-complementary
#5B4584 #847B45 #4F8445
monochromatic
#241B34 #3F305C #5B4584 #775CAA #9984BF

Accessibility & contrast

On white

7.99
#5B4584 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.63
#5B4584 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B4584
7.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B4584#FFFFFF#000000##FFFFFF
##5B45841.007.992.637.99
#FFFFFF7.991.0021.001.00
#0000002.6321.001.0021.00
##FFFFFF7.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#315186
Deuteranopia (green-blind)
#365082
Tritanopia (blue-blind)
#53515E
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #5b4584;
/* rgb */ color: rgb(91, 69, 132);
/* oklch */ color: oklch(44.3% 0.102 298.2);
Tailwind
colors: {
  custom: {
    50: '#8b79a8',
    500: '#5b4584',
    950: '#000000',
  },
}
SCSS
$custom: #5b4584;
$custom-light: #8b79a8;
$custom-dark: #000000;
JSON
{
  "hex": "#5b4584",
  "rgb": {
    "r": 91,
    "g": 69,
    "b": 132
  },
  "hsl": {
    "h": 260.952,
    "s": 31.343,
    "l": 39.412
  },
  "oklch": {
    "l": 0.44323,
    "c": 0.10242,
    "h": 298.2
  },
  "luminance": 0.08146
}

Semantic roles & 50–950 ramp

primary
#5B4584
secondary
#9AAA7B
accent
#C860A3
background
#F8F7FA
surface
#F0EDF4
border
#CBC8CE
text
#0C090F
muted
#7D7B7F

Preview Lab

Preview with #5B4584

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

Preview Lab → · Contrast checker → · Palette generator →

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