#5B4E86#5B4E86

#5B4E86 is a mid, moderate violet. Relative luminance 0.094; OKLCH L 46.2% C 0.090 H 293.2°. Best body text is #FFFFFF at 7.29:1 contrast (WCAG AA passes).

Color values

HEX#5B4E86
RGBrgb(91, 78, 134)
HSLhsl(254, 26%, 42%)
HSVhsv(254, 42%, 53%)
CMYKcmyk(32.1%, 41.8%, 0%, 47.5%)
CIE-LABlab(36.73, 18.86, -29.50)
CIE-LCHlch(36.73, 35.01, 302.59°)
OKLaboklab(46.21% 0.0355 -0.0826)
OKLCHoklch(46.21% 0.09 293.2)
XYZxyz(11.3408, 9.3940, 23.7654)
Luminance0.0939 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B4E86 #79864E
analogous
#4E5D86 #5B4E86 #774E86
triadic
#5B4E86 #865B4E #4E865B
tetradic
#5B4E86 #864E5D #79864E #4E8677
square
#5B4E86 #864E5D #79864E #4E8677
split-complementary
#5B4E86 #86774E #5D864E
monochromatic
#262139 #41375F #5B4E86 #7869A8 #9B90BE

Accessibility & contrast

On white

7.29
#5B4E86 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.88
#5B4E86 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B4E86
7.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B4E86#FFFFFF#000000##FFFFFF
##5B4E861.007.292.887.29
#FFFFFF7.291.0021.001.00
#0000002.8821.001.0021.00
##FFFFFF7.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3D5788
Deuteranopia (green-blind)
#3F5585
Tritanopia (blue-blind)
#515863
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #5b4e86;
/* rgb */ color: rgb(91, 78, 134);
/* oklch */ color: oklch(46.2% 0.090 293.2);
Tailwind
colors: {
  custom: {
    50: '#8b7fa9',
    500: '#5b4e86',
    950: '#000000',
  },
}
SCSS
$custom: #5b4e86;
$custom-light: #8b7fa9;
$custom-dark: #000000;
JSON
{
  "hex": "#5b4e86",
  "rgb": {
    "r": 91,
    "g": 78,
    "b": 134
  },
  "hsl": {
    "h": 253.929,
    "s": 26.415,
    "l": 41.569
  },
  "oklch": {
    "l": 0.46206,
    "c": 0.08988,
    "h": 293.2
  },
  "luminance": 0.09394
}

Semantic roles & 50–950 ramp

primary
#5B4E86
secondary
#A2AB85
accent
#C365AD
background
#F8F7FA
surface
#F0EEF4
border
#CBC9CE
text
#0C0A10
muted
#7D7C7F

Preview Lab

Preview with #5B4E86

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

Preview Lab → · Contrast checker → · Palette generator →

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