#5B4E7B#5B4E7B

#5B4E7B is a mid, moderate violet. Relative luminance 0.091; OKLCH L 45.6% C 0.073 H 296.7°. Best body text is #FFFFFF at 7.45:1 contrast (WCAG AA passes).

Color values

HEX#5B4E7B
RGBrgb(91, 78, 123)
HSLhsl(257, 22%, 39%)
HSVhsv(257, 37%, 48%)
CMYKcmyk(26%, 36.6%, 0%, 51.8%)
CIE-LABlab(36.18, 15.85, -23.59)
CIE-LCHlch(36.18, 28.42, 303.89°)
OKLaboklab(45.61% 0.0329 -0.0655)
OKLCHoklch(45.61% 0.073 296.7)
XYZxyz(10.6131, 9.1029, 19.9329)
Luminance0.0910 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B4E7B #6E7B4E
analogous
#4E587B #5B4E7B #724E7B
triadic
#5B4E7B #7B5B4E #4E7B5B
tetradic
#5B4E7B #7B4E58 #6E7B4E #4E7B72
square
#5B4E7B #7B4E58 #6E7B4E #4E7B72
split-complementary
#5B4E7B #7B724E #587B4E
monochromatic
#241F30 #3F3656 #5B4E7B #77679F #998DB7

Accessibility & contrast

On white

7.45
#5B4E7B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.82
#5B4E7B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B4E7B
7.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B4E7B#FFFFFF#000000##FFFFFF
##5B4E7B1.007.452.827.45
#FFFFFF7.451.0021.001.00
#0000002.8221.001.0021.00
##FFFFFF7.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#43557D
Deuteranopia (green-blind)
#45557A
Tritanopia (blue-blind)
#55555F
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #5b4e7b;
/* rgb */ color: rgb(91, 78, 123);
/* oklch */ color: oklch(45.6% 0.073 296.7);
Tailwind
colors: {
  custom: {
    50: '#8a7fa1',
    500: '#5b4e7b',
    950: '#000000',
  },
}
SCSS
$custom: #5b4e7b;
$custom-light: #8a7fa1;
$custom-dark: #000000;
JSON
{
  "hex": "#5b4e7b",
  "rgb": {
    "r": 91,
    "g": 78,
    "b": 123
  },
  "hsl": {
    "h": 257.333,
    "s": 22.388,
    "l": 39.412
  },
  "oklch": {
    "l": 0.45606,
    "c": 0.07331,
    "h": 296.7
  },
  "luminance": 0.09103
}

Semantic roles & 50–950 ramp

primary
#5B4E7B
secondary
#9AA381
accent
#BF69A6
background
#F8F7F9
surface
#F0EEF2
border
#CBC9CC
text
#0C0A0F
muted
#7D7C7E

Preview Lab

Preview with #5B4E7B

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

Preview Lab → · Contrast checker → · Palette generator →

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