#5B4E95#5B4E95

#5B4E95 is a mid, moderate violet. Relative luminance 0.098; OKLCH L 47.1% C 0.112 H 289.8°. Best body text is #FFFFFF at 7.07:1 contrast (WCAG AA passes).

Color values

HEX#5B4E95
RGBrgb(91, 78, 149)
HSLhsl(251, 31%, 45%)
HSVhsv(251, 48%, 58%)
CMYKcmyk(38.9%, 47.7%, 0%, 41.6%)
CIE-LABlab(37.56, 23.16, -37.32)
CIE-LCHlch(37.56, 43.92, 301.82°)
OKLaboklab(47.1% 0.038 -0.1054)
OKLCHoklch(47.1% 0.112 289.8)
XYZxyz(12.4621, 9.8425, 29.6711)
Luminance0.0984 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B4E95 #88954E
analogous
#4E6595 #5B4E95 #7F4E95
triadic
#5B4E95 #955B4E #4E955B
tetradic
#5B4E95 #954E65 #88954E #4E957F
square
#5B4E95 #954E65 #88954E #4E957F
split-complementary
#5B4E95 #957F4E #65954E
monochromatic
#2A2445 #42396D #5B4E95 #7A6DB3 #9F96C8

Accessibility & contrast

On white

7.07
#5B4E95 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.97
#5B4E95 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B4E95
7.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B4E95#FFFFFF#000000##FFFFFF
##5B4E951.007.072.977.07
#FFFFFF7.071.0021.001.00
#0000002.9721.001.0021.00
##FFFFFF7.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#345A98
Deuteranopia (green-blind)
#355793
Tritanopia (blue-blind)
#4C5C6A
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #5b4e95;
/* rgb */ color: rgb(91, 78, 149);
/* oklch */ color: oklch(47.1% 0.112 289.8);
Tailwind
colors: {
  custom: {
    50: '#8c7fb4',
    500: '#5b4e95',
    950: '#000000',
  },
}
SCSS
$custom: #5b4e95;
$custom-light: #8c7fb4;
$custom-dark: #000000;
JSON
{
  "hex": "#5b4e95",
  "rgb": {
    "r": 91,
    "g": 78,
    "b": 149
  },
  "hsl": {
    "h": 250.986,
    "s": 31.278,
    "l": 44.51
  },
  "oklch": {
    "l": 0.471,
    "c": 0.11203,
    "h": 289.8
  },
  "luminance": 0.09843
}

Semantic roles & 50–950 ramp

primary
#5B4E95
secondary
#ADB48A
accent
#C760B5
background
#F8F7FB
surface
#F0EEF6
border
#CBC9D0
text
#0C0A11
muted
#7D7C80

Preview Lab

Preview with #5B4E95

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

Preview Lab → · Contrast checker → · Palette generator →

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