#5B4E97#5B4E97

#5B4E97 is a mid, moderate violet. Relative luminance 0.099; OKLCH L 47.2% C 0.115 H 289.4°. Best body text is #FFFFFF at 7.04:1 contrast (WCAG AA passes).

Color values

HEX#5B4E97
RGBrgb(91, 78, 151)
HSLhsl(251, 32%, 45%)
HSVhsv(251, 48%, 59%)
CMYKcmyk(39.7%, 48.3%, 0%, 40.8%)
CIE-LABlab(37.67, 23.74, -38.35)
CIE-LCHlch(37.67, 45.10, 301.77°)
OKLaboklab(47.23% 0.0382 -0.1084)
OKLCHoklch(47.23% 0.115 289.4)
XYZxyz(12.6232, 9.9069, 30.5193)
Luminance0.0991 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B4E97 #8A974E
analogous
#4E6597 #5B4E97 #804E97
triadic
#5B4E97 #975B4E #4E975B
tetradic
#5B4E97 #974E65 #8A974E #4E9780
square
#5B4E97 #974E65 #8A974E #4E9780
split-complementary
#5B4E97 #97804E #65974E
monochromatic
#2A2446 #43396F #5B4E97 #7B6EB4 #9F96C9

Accessibility & contrast

On white

7.04
#5B4E97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.98
#5B4E97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B4E97
7.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B4E97#FFFFFF#000000##FFFFFF
##5B4E971.007.042.987.04
#FFFFFF7.041.0021.001.00
#0000002.9821.001.0021.00
##FFFFFF7.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#335A9A
Deuteranopia (green-blind)
#335795
Tritanopia (blue-blind)
#4B5D6B
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #5b4e97;
/* rgb */ color: rgb(91, 78, 151);
/* oklch */ color: oklch(47.2% 0.115 289.4);
Tailwind
colors: {
  custom: {
    50: '#8c7fb6',
    500: '#5b4e97',
    950: '#000000',
  },
}
SCSS
$custom: #5b4e97;
$custom-light: #8c7fb6;
$custom-dark: #000000;
JSON
{
  "hex": "#5b4e97",
  "rgb": {
    "r": 91,
    "g": 78,
    "b": 151
  },
  "hsl": {
    "h": 250.685,
    "s": 31.878,
    "l": 44.902
  },
  "oklch": {
    "l": 0.47225,
    "c": 0.11494,
    "h": 289.4
  },
  "luminance": 0.09907
}

Semantic roles & 50–950 ramp

primary
#5B4E97
secondary
#AEB68B
accent
#C860B5
background
#F8F7FB
surface
#F0EEF6
border
#CBC9D0
text
#0C0A11
muted
#7D7C80

Preview Lab

Preview with #5B4E97

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

Preview Lab → · Contrast checker → · Palette generator →

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