#5A4E9A#5A4E9A

#5A4E9A is a mid, moderate blue. Relative luminance 0.100; OKLCH L 47.3% C 0.119 H 288.2°. Best body text is #FFFFFF at 7.02:1 contrast (WCAG AA passes).

Color values

HEX#5A4E9A
RGBrgb(90, 78, 154)
HSLhsl(249, 33%, 45%)
HSVhsv(249, 49%, 60%)
CMYKcmyk(41.6%, 49.4%, 0%, 39.6%)
CIE-LABlab(37.76, 24.37, -40.02)
CIE-LCHlch(37.76, 46.86, 301.34°)
OKLaboklab(47.33% 0.0373 -0.1133)
OKLCHoklch(47.33% 0.119 288.2)
XYZxyz(12.7719, 9.9551, 31.8142)
Luminance0.0996 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A4E9A #8E9A4E
analogous
#4E689A #5A4E9A #804E9A
triadic
#5A4E9A #9A5A4E #4E9A5A
tetradic
#5A4E9A #9A4E68 #8E9A4E #4E9A80
square
#5A4E9A #9A4E68 #8E9A4E #4E9A80
split-complementary
#5A4E9A #9A804E #689A4E
monochromatic
#2B2549 #423971 #5A4E9A #7A6FB6 #A098CB

Accessibility & contrast

On white

7.02
#5A4E9A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5A4E9A
7.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A4E9A#FFFFFF#000000##FFFFFF
##5A4E9A1.007.022.997.02
#FFFFFF7.021.0021.001.00
#0000002.9921.001.0021.00
##FFFFFF7.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#305B9D
Deuteranopia (green-blind)
#305798
Tritanopia (blue-blind)
#485D6C
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #5a4e9a;
/* rgb */ color: rgb(90, 78, 154);
/* oklch */ color: oklch(47.3% 0.119 288.2);
Tailwind
colors: {
  custom: {
    50: '#8c7fb8',
    500: '#5a4e9a',
    950: '#000000',
  },
}
SCSS
$custom: #5a4e9a;
$custom-light: #8c7fb8;
$custom-dark: #000000;
JSON
{
  "hex": "#5a4e9a",
  "rgb": {
    "r": 90,
    "g": 78,
    "b": 154
  },
  "hsl": {
    "h": 249.474,
    "s": 32.759,
    "l": 45.49
  },
  "oklch": {
    "l": 0.47326,
    "c": 0.11931,
    "h": 288.2
  },
  "luminance": 0.09956
}

Semantic roles & 50–950 ramp

primary
#5A4E9A
secondary
#B1B78D
accent
#C95FB8
background
#F8F7FB
surface
#F0EEF6
border
#CBC9D0
text
#0C0A11
muted
#7D7C80

Preview Lab

Preview with #5A4E9A

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

Preview Lab → · Contrast checker → · Palette generator →

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