#5A4E91#5A4E91

#5A4E91 is a mid, moderate violet. Relative luminance 0.097; OKLCH L 46.8% C 0.106 H 289.9°. Best body text is #FFFFFF at 7.16:1 contrast (WCAG AA passes).

Color values

HEX#5A4E91
RGBrgb(90, 78, 145)
HSLhsl(251, 30%, 44%)
HSVhsv(251, 46%, 57%)
CMYKcmyk(37.9%, 46.2%, 0%, 43.1%)
CIE-LABlab(37.24, 21.71, -35.42)
CIE-LCHlch(37.24, 41.54, 301.51°)
OKLaboklab(46.76% 0.0361 -0.0998)
OKLCHoklch(46.76% 0.106 289.9)
XYZxyz(12.0503, 9.6664, 28.0135)
Luminance0.0967 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A4E91 #85914E
analogous
#4E6391 #5A4E91 #7B4E91
triadic
#5A4E91 #915A4E #4E915A
tetradic
#5A4E91 #914E63 #85914E #4E917B
square
#5A4E91 #914E63 #85914E #4E917B
split-complementary
#5A4E91 #917B4E #63914E
monochromatic
#292341 #413969 #5A4E91 #786CB0 #9D94C5

Accessibility & contrast

On white

7.16
#5A4E91 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.93
#5A4E91 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A4E91
7.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A4E91#FFFFFF#000000##FFFFFF
##5A4E911.007.162.937.16
#FFFFFF7.161.0021.001.00
#0000002.9321.001.0021.00
##FFFFFF7.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#375993
Deuteranopia (green-blind)
#37568F
Tritanopia (blue-blind)
#4C5B68
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #5a4e91;
/* rgb */ color: rgb(90, 78, 145);
/* oklch */ color: oklch(46.8% 0.106 289.9);
Tailwind
colors: {
  custom: {
    50: '#8b7fb1',
    500: '#5a4e91',
    950: '#000000',
  },
}
SCSS
$custom: #5a4e91;
$custom-light: #8b7fb1;
$custom-dark: #000000;
JSON
{
  "hex": "#5a4e91",
  "rgb": {
    "r": 90,
    "g": 78,
    "b": 145
  },
  "hsl": {
    "h": 250.746,
    "s": 30.045,
    "l": 43.725
  },
  "oklch": {
    "l": 0.4676,
    "c": 0.10618,
    "h": 289.9
  },
  "luminance": 0.09667
}

Semantic roles & 50–950 ramp

primary
#5A4E91
secondary
#ABB289
accent
#C662B4
background
#F8F7FA
surface
#F0EEF5
border
#CBC9CF
text
#0C0A11
muted
#7D7C80

Preview Lab

Preview with #5A4E91

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

Preview Lab → · Contrast checker → · Palette generator →

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