#5A4E97#5A4E97

#5A4E97 is a mid, moderate blue. Relative luminance 0.099; OKLCH L 47.1% C 0.115 H 288.7°. Best body text is #FFFFFF at 7.07:1 contrast (WCAG AA passes).

Color values

HEX#5A4E97
RGBrgb(90, 78, 151)
HSLhsl(250, 32%, 45%)
HSVhsv(250, 48%, 59%)
CMYKcmyk(40.4%, 48.3%, 0%, 40.8%)
CIE-LABlab(37.58, 23.48, -38.50)
CIE-LCHlch(37.58, 45.09, 301.38°)
OKLaboklab(47.13% 0.0369 -0.1089)
OKLCHoklch(47.13% 0.115 288.7)
XYZxyz(12.5252, 9.8564, 30.5147)
Luminance0.0986 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A4E97 #8B974E
analogous
#4E6797 #5A4E97 #7F4E97
triadic
#5A4E97 #975A4E #4E975A
tetradic
#5A4E97 #974E67 #8B974E #4E977F
square
#5A4E97 #974E67 #8B974E #4E977F
split-complementary
#5A4E97 #977F4E #67974E
monochromatic
#2A2446 #42396F #5A4E97 #7A6EB4 #9F96C9

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##5A4E97#FFFFFF#000000##FFFFFF
##5A4E971.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)
#325A9A
Deuteranopia (green-blind)
#335795
Tritanopia (blue-blind)
#495D6B
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #5a4e97;
/* rgb */ color: rgb(90, 78, 151);
/* oklch */ color: oklch(47.1% 0.115 288.7);
Tailwind
colors: {
  custom: {
    50: '#8c7fb6',
    500: '#5a4e97',
    950: '#000000',
  },
}
SCSS
$custom: #5a4e97;
$custom-light: #8c7fb6;
$custom-dark: #000000;
JSON
{
  "hex": "#5a4e97",
  "rgb": {
    "r": 90,
    "g": 78,
    "b": 151
  },
  "hsl": {
    "h": 249.863,
    "s": 31.878,
    "l": 44.902
  },
  "oklch": {
    "l": 0.47134,
    "c": 0.11496,
    "h": 288.7
  },
  "luminance": 0.09857
}

Semantic roles & 50–950 ramp

primary
#5A4E97
secondary
#AFB68B
accent
#C860B7
background
#F8F7FB
surface
#F0EEF6
border
#CBC9D0
text
#0C0A11
muted
#7D7C80

Preview Lab

Preview with #5A4E97

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

Preview Lab → · Contrast checker → · Palette generator →

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