#5B4E80#5B4E80

#5B4E80 is a mid, moderate violet. Relative luminance 0.092; OKLCH L 45.9% C 0.081 H 295.0°. Best body text is #FFFFFF at 7.38:1 contrast (WCAG AA passes).

Color values

HEX#5B4E80
RGBrgb(91, 78, 128)
HSLhsl(256, 24%, 40%)
HSVhsv(256, 39%, 50%)
CMYKcmyk(28.9%, 39.1%, 0%, 49.8%)
CIE-LABlab(36.43, 17.20, -26.30)
CIE-LCHlch(36.43, 31.42, 303.19°)
OKLaboklab(45.87% 0.0341 -0.0733)
OKLCHoklch(45.87% 0.081 295)
XYZxyz(10.9341, 9.2313, 21.6236)
Luminance0.0923 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B4E80 #73804E
analogous
#4E5A80 #5B4E80 #744E80
triadic
#5B4E80 #805B4E #4E805B
tetradic
#5B4E80 #804E5A #73804E #4E8074
square
#5B4E80 #804E5A #73804E #4E8074
split-complementary
#5B4E80 #80744E #5A804E
monochromatic
#252034 #40375A #5B4E80 #7768A3 #9A8EBA

Accessibility & contrast

On white

7.38
#5B4E80 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.85
#5B4E80 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B4E80
7.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B4E80#FFFFFF#000000##FFFFFF
##5B4E801.007.382.857.38
#FFFFFF7.381.0021.001.00
#0000002.8521.001.0021.00
##FFFFFF7.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#405682
Deuteranopia (green-blind)
#42557F
Tritanopia (blue-blind)
#535761
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #5b4e80;
/* rgb */ color: rgb(91, 78, 128);
/* oklch */ color: oklch(45.9% 0.081 295.0);
Tailwind
colors: {
  custom: {
    50: '#8b7fa5',
    500: '#5b4e80',
    950: '#000000',
  },
}
SCSS
$custom: #5b4e80;
$custom-light: #8b7fa5;
$custom-dark: #000000;
JSON
{
  "hex": "#5b4e80",
  "rgb": {
    "r": 91,
    "g": 78,
    "b": 128
  },
  "hsl": {
    "h": 255.6,
    "s": 24.272,
    "l": 40.392
  },
  "oklch": {
    "l": 0.45873,
    "c": 0.08087,
    "h": 295
  },
  "luminance": 0.09231
}

Semantic roles & 50–950 ramp

primary
#5B4E80
secondary
#9EA783
accent
#C167A9
background
#F8F7FA
surface
#F0EEF4
border
#CBC9CE
text
#0C0A0F
muted
#7D7C7F

Preview Lab

Preview with #5B4E80

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

Preview Lab → · Contrast checker → · Palette generator →

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