#5B4591#5B4591

#5B4591 is a mid, vivid violet. Relative luminance 0.085; OKLCH L 45.1% C 0.121 H 294.4°. Best body text is #FFFFFF at 7.76:1 contrast (WCAG AA passes).

Color values

HEX#5B4591
RGBrgb(91, 69, 145)
HSLhsl(257, 36%, 42%)
HSVhsv(257, 52%, 57%)
CMYKcmyk(37.2%, 52.4%, 0%, 43.1%)
CIE-LABlab(35.05, 27.62, -38.89)
CIE-LCHlch(35.05, 47.70, 305.38°)
OKLaboklab(45.15% 0.0499 -0.11)
OKLCHoklch(45.15% 0.121 294.4)
XYZxyz(11.5520, 8.5245, 27.8193)
Luminance0.0853 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B4591 #7B9145
analogous
#455591 #5B4591 #814591
triadic
#5B4591 #915B45 #45915B
tetradic
#5B4591 #914555 #7B9145 #459181
square
#5B4591 #914555 #7B9145 #459181
split-complementary
#5B4591 #918145 #559145
monochromatic
#271E3E #413168 #5B4591 #7860B3 #9B89C7

Accessibility & contrast

On white

7.76
#5B4591 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.71
#5B4591 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B4591
7.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B4591#FFFFFF#000000##FFFFFF
##5B45911.007.762.717.76
#FFFFFF7.761.0021.001.00
#0000002.7121.001.0021.00
##FFFFFF7.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#275394
Deuteranopia (green-blind)
#2C518F
Tritanopia (blue-blind)
#4E5464
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #5b4591;
/* rgb */ color: rgb(91, 69, 145);
/* oklch */ color: oklch(45.1% 0.121 294.4);
Tailwind
colors: {
  custom: {
    50: '#8c79b2',
    500: '#5b4591',
    950: '#000000',
  },
}
SCSS
$custom: #5b4591;
$custom-light: #8c79b2;
$custom-dark: #000000;
JSON
{
  "hex": "#5b4591",
  "rgb": {
    "r": 91,
    "g": 69,
    "b": 145
  },
  "hsl": {
    "h": 257.368,
    "s": 35.514,
    "l": 41.961
  },
  "oklch": {
    "l": 0.45145,
    "c": 0.12079,
    "h": 294.4
  },
  "luminance": 0.08525
}

Semantic roles & 50–950 ramp

primary
#5B4591
secondary
#A4B280
accent
#CC5CAB
background
#F8F7FB
surface
#F0EDF6
border
#CBC8D0
text
#0C0911
muted
#7D7B80

Preview Lab

Preview with #5B4591

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

Preview Lab → · Contrast checker → · Palette generator →

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