#5B4C8A#5B4C8A

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

Color values

HEX#5B4C8A
RGBrgb(91, 76, 138)
HSLhsl(255, 29%, 42%)
HSVhsv(255, 45%, 54%)
CMYKcmyk(34.1%, 44.9%, 0%, 45.9%)
CIE-LABlab(36.42, 21.25, -32.44)
CIE-LCHlch(36.42, 38.78, 303.22°)
OKLaboklab(46.04% 0.0391 -0.0911)
OKLCHoklch(46.04% 0.099 293.2)
XYZxyz(11.4851, 9.2278, 25.2159)
Luminance0.0923 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B4C8A #7B8A4C
analogous
#4C5C8A #5B4C8A #7A4C8A
triadic
#5B4C8A #8A5B4C #4C8A5B
tetradic
#5B4C8A #8A4C5C #7B8A4C #4C8A7A
square
#5B4C8A #8A4C5C #7B8A4C #4C8A7A
split-complementary
#5B4C8A #8A7A4C #5C8A4C
monochromatic
#27213B #413663 #5B4C8A #7868AC #9B8FC1

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##5B4C8A#FFFFFF#000000##FFFFFF
##5B4C8A1.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)
#38568C
Deuteranopia (green-blind)
#3A5588
Tritanopia (blue-blind)
#505864
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #5b4c8a;
/* rgb */ color: rgb(91, 76, 138);
/* oklch */ color: oklch(46.0% 0.099 293.2);
Tailwind
colors: {
  custom: {
    50: '#8b7eac',
    500: '#5b4c8a',
    950: '#000000',
  },
}
SCSS
$custom: #5b4c8a;
$custom-light: #8b7eac;
$custom-dark: #000000;
JSON
{
  "hex": "#5b4c8a",
  "rgb": {
    "r": 91,
    "g": 76,
    "b": 138
  },
  "hsl": {
    "h": 254.516,
    "s": 28.972,
    "l": 41.961
  },
  "oklch": {
    "l": 0.46039,
    "c": 0.09919,
    "h": 293.2
  },
  "luminance": 0.09228
}

Semantic roles & 50–950 ramp

primary
#5B4C8A
secondary
#A4AE84
accent
#C563AD
background
#F8F7FA
surface
#F0EEF4
border
#CBC9CE
text
#0C0A10
muted
#7D7C7F

Preview Lab

Preview with #5B4C8A

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

Preview Lab → · Contrast checker → · Palette generator →

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