#5B4E9B#5B4E9B

#5B4E9B is a mid, vivid violet. Relative luminance 0.100; OKLCH L 47.5% C 0.121 H 288.7°. Best body text is #FFFFFF at 6.98:1 contrast (WCAG AA passes).

Color values

HEX#5B4E9B
RGBrgb(91, 78, 155)
HSLhsl(250, 33%, 46%)
HSVhsv(250, 50%, 61%)
CMYKcmyk(41.3%, 49.7%, 0%, 39.2%)
CIE-LABlab(37.91, 24.93, -40.38)
CIE-LCHlch(37.91, 47.45, 301.69°)
OKLaboklab(47.48% 0.0387 -0.1143)
OKLCHoklch(47.48% 0.121 288.7)
XYZxyz(12.9535, 10.0391, 32.2592)
Luminance0.1004 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B4E9B #8E9B4E
analogous
#4E679B #5B4E9B #814E9B
triadic
#5B4E9B #9B5B4E #4E9B5B
tetradic
#5B4E9B #9B4E67 #8E9B4E #4E9B81
square
#5B4E9B #9B4E67 #8E9B4E #4E9B81
split-complementary
#5B4E9B #9B814E #679B4E
monochromatic
#2B254A #433A72 #5B4E9B #7B6FB7 #A198CB

Accessibility & contrast

On white

6.98
#5B4E9B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.01
#5B4E9B on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5B4E9B
6.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B4E9B#FFFFFF#000000##FFFFFF
##5B4E9B1.006.983.016.98
#FFFFFF6.981.0021.001.00
#0000003.0121.001.0021.00
##FFFFFF6.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2F5B9E
Deuteranopia (green-blind)
#305799
Tritanopia (blue-blind)
#495E6D
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #5b4e9b;
/* rgb */ color: rgb(91, 78, 155);
/* oklch */ color: oklch(47.5% 0.121 288.7);
Tailwind
colors: {
  custom: {
    50: '#8d7fb9',
    500: '#5b4e9b',
    950: '#000000',
  },
}
SCSS
$custom: #5b4e9b;
$custom-light: #8d7fb9;
$custom-dark: #000000;
JSON
{
  "hex": "#5b4e9b",
  "rgb": {
    "r": 91,
    "g": 78,
    "b": 155
  },
  "hsl": {
    "h": 250.13,
    "s": 33.047,
    "l": 45.686
  },
  "oklch": {
    "l": 0.47481,
    "c": 0.12071,
    "h": 288.7
  },
  "luminance": 0.10039
}

Semantic roles & 50–950 ramp

primary
#5B4E9B
secondary
#B1B88D
accent
#C95FB7
background
#F8F7FB
surface
#F0EEF6
border
#CBC9D0
text
#0C0A11
muted
#7D7C80

Preview Lab

Preview with #5B4E9B

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

Preview Lab → · Contrast checker → · Palette generator →

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