#5B4E8A#5B4E8A

#5B4E8A is a mid, moderate violet. Relative luminance 0.095; OKLCH L 46.4% C 0.096 H 292.2°. Best body text is #FFFFFF at 7.24:1 contrast (WCAG AA passes).

Color values

HEX#5B4E8A
RGBrgb(91, 78, 138)
HSLhsl(253, 28%, 42%)
HSVhsv(253, 43%, 54%)
CMYKcmyk(34.1%, 43.5%, 0%, 45.9%)
CIE-LABlab(36.94, 19.99, -31.61)
CIE-LCHlch(36.94, 37.40, 302.30°)
OKLaboklab(46.44% 0.0362 -0.0887)
OKLCHoklch(46.44% 0.096 292.2)
XYZxyz(11.6250, 9.5077, 25.2625)
Luminance0.0951 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B4E8A #7D8A4E
analogous
#4E5F8A #5B4E8A #794E8A
triadic
#5B4E8A #8A5B4E #4E8A5B
tetradic
#5B4E8A #8A4E5F #7D8A4E #4E8A79
square
#5B4E8A #8A4E5F #7D8A4E #4E8A79
split-complementary
#5B4E8A #8A794E #5F8A4E
monochromatic
#27223C #413863 #5B4E8A #786AAB #9C91C1

Accessibility & contrast

On white

7.24
#5B4E8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.90
#5B4E8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B4E8A
7.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B4E8A#FFFFFF#000000##FFFFFF
##5B4E8A1.007.242.907.24
#FFFFFF7.241.0021.001.00
#0000002.9021.001.0021.00
##FFFFFF7.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3B588C
Deuteranopia (green-blind)
#3D5689
Tritanopia (blue-blind)
#505965
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #5b4e8a;
/* rgb */ color: rgb(91, 78, 138);
/* oklch */ color: oklch(46.4% 0.096 292.2);
Tailwind
colors: {
  custom: {
    50: '#8b7fac',
    500: '#5b4e8a',
    950: '#000000',
  },
}
SCSS
$custom: #5b4e8a;
$custom-light: #8b7fac;
$custom-dark: #000000;
JSON
{
  "hex": "#5b4e8a",
  "rgb": {
    "r": 91,
    "g": 78,
    "b": 138
  },
  "hsl": {
    "h": 253,
    "s": 27.778,
    "l": 42.353
  },
  "oklch": {
    "l": 0.46436,
    "c": 0.09584,
    "h": 292.2
  },
  "luminance": 0.09508
}

Semantic roles & 50–950 ramp

primary
#5B4E8A
secondary
#A5AE86
accent
#C464AF
background
#F8F7FA
surface
#F0EEF4
border
#CBC9CE
text
#0C0A10
muted
#7D7C7F

Preview Lab

Preview with #5B4E8A

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

Preview Lab → · Contrast checker → · Palette generator →

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