#5B4E90#5B4E90

#5B4E90 is a mid, moderate violet. Relative luminance 0.097; OKLCH L 46.8% C 0.105 H 290.8°. Best body text is #FFFFFF at 7.15:1 contrast (WCAG AA passes).

Color values

HEX#5B4E90
RGBrgb(91, 78, 144)
HSLhsl(252, 30%, 44%)
HSVhsv(252, 46%, 56%)
CMYKcmyk(36.8%, 45.8%, 0%, 43.5%)
CIE-LABlab(37.27, 21.70, -34.75)
CIE-LCHlch(37.27, 40.97, 301.99°)
OKLaboklab(46.79% 0.0373 -0.0979)
OKLCHoklch(46.79% 0.105 290.8)
XYZxyz(12.0715, 9.6862, 27.6138)
Luminance0.0969 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B4E90 #83904E
analogous
#4E6290 #5B4E90 #7C4E90
triadic
#5B4E90 #905B4E #4E905B
tetradic
#5B4E90 #904E62 #83904E #4E907C
square
#5B4E90 #904E62 #83904E #4E907C
split-complementary
#5B4E90 #907C4E #62904E
monochromatic
#292341 #423868 #5B4E90 #796CAF #9D94C5

Accessibility & contrast

On white

7.15
#5B4E90 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.94
#5B4E90 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B4E90
7.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B4E90#FFFFFF#000000##FFFFFF
##5B4E901.007.152.947.15
#FFFFFF7.151.0021.001.00
#0000002.9421.001.0021.00
##FFFFFF7.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#385992
Deuteranopia (green-blind)
#39568E
Tritanopia (blue-blind)
#4E5B68
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #5b4e90;
/* rgb */ color: rgb(91, 78, 144);
/* oklch */ color: oklch(46.8% 0.105 290.8);
Tailwind
colors: {
  custom: {
    50: '#8c7fb1',
    500: '#5b4e90',
    950: '#000000',
  },
}
SCSS
$custom: #5b4e90;
$custom-light: #8c7fb1;
$custom-dark: #000000;
JSON
{
  "hex": "#5b4e90",
  "rgb": {
    "r": 91,
    "g": 78,
    "b": 144
  },
  "hsl": {
    "h": 251.818,
    "s": 29.73,
    "l": 43.529
  },
  "oklch": {
    "l": 0.46792,
    "c": 0.10471,
    "h": 290.8
  },
  "luminance": 0.09687
}

Semantic roles & 50–950 ramp

primary
#5B4E90
secondary
#A9B188
accent
#C662B2
background
#F8F7FA
surface
#F0EEF5
border
#CBC9CF
text
#0C0A10
muted
#7D7C7F

Preview Lab

Preview with #5B4E90

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

Preview Lab → · Contrast checker → · Palette generator →

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