#5B4E85#5B4E85

#5B4E85 is a mid, moderate violet. Relative luminance 0.094; OKLCH L 46.1% C 0.088 H 293.5°. Best body text is #FFFFFF at 7.31:1 contrast (WCAG AA passes).

Color values

HEX#5B4E85
RGBrgb(91, 78, 133)
HSLhsl(254, 26%, 41%)
HSVhsv(254, 41%, 52%)
CMYKcmyk(31.6%, 41.4%, 0%, 47.8%)
CIE-LABlab(36.68, 18.58, -28.97)
CIE-LCHlch(36.68, 34.42, 302.68°)
OKLaboklab(46.15% 0.0352 -0.081)
OKLCHoklch(46.15% 0.088 293.5)
XYZxyz(11.2714, 9.3662, 23.3998)
Luminance0.0937 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B4E85 #78854E
analogous
#4E5D85 #5B4E85 #774E85
triadic
#5B4E85 #855B4E #4E855B
tetradic
#5B4E85 #854E5D #78854E #4E8577
square
#5B4E85 #854E5D #78854E #4E8577
split-complementary
#5B4E85 #85774E #5D854E
monochromatic
#262138 #41375E #5B4E85 #7869A7 #9B90BE

Accessibility & contrast

On white

7.31
#5B4E85 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.87
#5B4E85 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B4E85
7.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B4E85#FFFFFF#000000##FFFFFF
##5B4E851.007.312.877.31
#FFFFFF7.311.0021.001.00
#0000002.8721.001.0021.00
##FFFFFF7.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3E5787
Deuteranopia (green-blind)
#405584
Tritanopia (blue-blind)
#525863
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #5b4e85;
/* rgb */ color: rgb(91, 78, 133);
/* oklch */ color: oklch(46.1% 0.088 293.5);
Tailwind
colors: {
  custom: {
    50: '#8b7fa9',
    500: '#5b4e85',
    950: '#000000',
  },
}
SCSS
$custom: #5b4e85;
$custom-light: #8b7fa9;
$custom-dark: #000000;
JSON
{
  "hex": "#5b4e85",
  "rgb": {
    "r": 91,
    "g": 78,
    "b": 133
  },
  "hsl": {
    "h": 254.182,
    "s": 26.066,
    "l": 41.373
  },
  "oklch": {
    "l": 0.46149,
    "c": 0.08838,
    "h": 293.5
  },
  "luminance": 0.09366
}

Semantic roles & 50–950 ramp

primary
#5B4E85
secondary
#A1AA84
accent
#C265AC
background
#F8F7FA
surface
#F0EEF4
border
#CBC9CE
text
#0C0A10
muted
#7D7C7F

Preview Lab

Preview with #5B4E85

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

Preview Lab → · Contrast checker → · Palette generator →

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