#5B4E99#5B4E99

#5B4E99 is a mid, moderate violet. Relative luminance 0.100; OKLCH L 47.4% C 0.118 H 289.1°. Best body text is #FFFFFF at 7.01:1 contrast (WCAG AA passes).

Color values

HEX#5B4E99
RGBrgb(91, 78, 153)
HSLhsl(250, 32%, 45%)
HSVhsv(250, 49%, 60%)
CMYKcmyk(40.5%, 49%, 0%, 40%)
CIE-LABlab(37.79, 24.33, -39.36)
CIE-LCHlch(37.79, 46.28, 301.72°)
OKLaboklab(47.35% 0.0385 -0.1114)
OKLCHoklch(47.35% 0.118 289.1)
XYZxyz(12.7870, 9.9724, 31.3820)
Luminance0.0997 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B4E99 #8C994E
analogous
#4E6699 #5B4E99 #804E99
triadic
#5B4E99 #995B4E #4E995B
tetradic
#5B4E99 #994E66 #8C994E #4E9980
square
#5B4E99 #994E66 #8C994E #4E9980
split-complementary
#5B4E99 #99804E #66994E
monochromatic
#2B2548 #433970 #5B4E99 #7B6FB5 #A097CA

Accessibility & contrast

On white

7.01
#5B4E99 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.99
#5B4E99 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B4E99
7.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B4E99#FFFFFF#000000##FFFFFF
##5B4E991.007.012.997.01
#FFFFFF7.011.0021.001.00
#0000002.9921.001.0021.00
##FFFFFF7.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#315B9C
Deuteranopia (green-blind)
#325797
Tritanopia (blue-blind)
#4A5D6C
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #5b4e99;
/* rgb */ color: rgb(91, 78, 153);
/* oklch */ color: oklch(47.4% 0.118 289.1);
Tailwind
colors: {
  custom: {
    50: '#8d7fb7',
    500: '#5b4e99',
    950: '#000000',
  },
}
SCSS
$custom: #5b4e99;
$custom-light: #8d7fb7;
$custom-dark: #000000;
JSON
{
  "hex": "#5b4e99",
  "rgb": {
    "r": 91,
    "g": 78,
    "b": 153
  },
  "hsl": {
    "h": 250.4,
    "s": 32.468,
    "l": 45.294
  },
  "oklch": {
    "l": 0.47352,
    "c": 0.11783,
    "h": 289.1
  },
  "luminance": 0.09973
}

Semantic roles & 50–950 ramp

primary
#5B4E99
secondary
#AFB78C
accent
#C95FB6
background
#F8F7FB
surface
#F0EEF6
border
#CBC9D0
text
#0C0A11
muted
#7D7C80

Preview Lab

Preview with #5B4E99

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

Preview Lab → · Contrast checker → · Palette generator →

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