#5B4C8D#5B4C8D

#5B4C8D is a mid, moderate violet. Relative luminance 0.093; OKLCH L 46.2% C 0.104 H 292.5°. Best body text is #FFFFFF at 7.33:1 contrast (WCAG AA passes).

Color values

HEX#5B4C8D
RGBrgb(91, 76, 141)
HSLhsl(254, 30%, 43%)
HSVhsv(254, 46%, 55%)
CMYKcmyk(35.5%, 46.1%, 0%, 44.7%)
CIE-LABlab(36.59, 22.10, -34.01)
CIE-LCHlch(36.59, 40.56, 303.02°)
OKLaboklab(46.22% 0.0396 -0.0957)
OKLCHoklch(46.22% 0.104 292.5)
XYZxyz(11.7053, 9.3159, 26.3756)
Luminance0.0932 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B4C8D #7E8D4C
analogous
#4C5E8D #5B4C8D #7B4C8D
triadic
#5B4C8D #8D5B4C #4C8D5B
tetradic
#5B4C8D #8D4C5E #7E8D4C #4C8D7B
square
#5B4C8D #8D4C5E #7E8D4C #4C8D7B
split-complementary
#5B4C8D #8D7B4C #5E8D4C
monochromatic
#28213D #413765 #5B4C8D #7868AE #9C90C3

Accessibility & contrast

On white

7.33
#5B4C8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.86
#5B4C8D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B4C8D
7.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B4C8D#FFFFFF#000000##FFFFFF
##5B4C8D1.007.332.867.33
#FFFFFF7.331.0021.001.00
#0000002.8621.001.0021.00
##FFFFFF7.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#36578F
Deuteranopia (green-blind)
#38558B
Tritanopia (blue-blind)
#4F5865
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #5b4c8d;
/* rgb */ color: rgb(91, 76, 141);
/* oklch */ color: oklch(46.2% 0.104 292.5);
Tailwind
colors: {
  custom: {
    50: '#8c7eaf',
    500: '#5b4c8d',
    950: '#000000',
  },
}
SCSS
$custom: #5b4c8d;
$custom-light: #8c7eaf;
$custom-dark: #000000;
JSON
{
  "hex": "#5b4c8d",
  "rgb": {
    "r": 91,
    "g": 76,
    "b": 141
  },
  "hsl": {
    "h": 253.846,
    "s": 29.954,
    "l": 42.549
  },
  "oklch": {
    "l": 0.46218,
    "c": 0.1036,
    "h": 292.5
  },
  "luminance": 0.09316
}

Semantic roles & 50–950 ramp

primary
#5B4C8D
secondary
#A6AF85
accent
#C662AF
background
#F8F7FA
surface
#F0EEF4
border
#CBC9CE
text
#0C0A10
muted
#7D7C7F

Preview Lab

Preview with #5B4C8D

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

Preview Lab → · Contrast checker → · Palette generator →

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