#5A4E99#5A4E99

#5A4E99 is a mid, moderate blue. Relative luminance 0.099; OKLCH L 47.3% C 0.118 H 288.4°. Best body text is #FFFFFF at 7.04:1 contrast (WCAG AA passes).

Color values

HEX#5A4E99
RGBrgb(90, 78, 153)
HSLhsl(250, 32%, 45%)
HSVhsv(250, 49%, 60%)
CMYKcmyk(41.2%, 49%, 0%, 40%)
CIE-LABlab(37.70, 24.07, -39.51)
CIE-LCHlch(37.70, 46.27, 301.35°)
OKLaboklab(47.26% 0.0372 -0.1118)
OKLCHoklch(47.26% 0.118 288.4)
XYZxyz(12.6890, 9.9219, 31.3774)
Luminance0.0992 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A4E99 #8D994E
analogous
#4E6799 #5A4E99 #7F4E99
triadic
#5A4E99 #995A4E #4E995A
tetradic
#5A4E99 #994E67 #8D994E #4E997F
square
#5A4E99 #994E67 #8D994E #4E997F
split-complementary
#5A4E99 #997F4E #67994E
monochromatic
#2A2548 #423970 #5A4E99 #7A6FB5 #9F97CA

Accessibility & contrast

On white

7.04
#5A4E99 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.98
#5A4E99 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A4E99
7.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A4E99#FFFFFF#000000##FFFFFF
##5A4E991.007.042.987.04
#FFFFFF7.041.0021.001.00
#0000002.9821.001.0021.00
##FFFFFF7.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#315A9C
Deuteranopia (green-blind)
#315797
Tritanopia (blue-blind)
#485D6C
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #5a4e99;
/* rgb */ color: rgb(90, 78, 153);
/* oklch */ color: oklch(47.3% 0.118 288.4);
Tailwind
colors: {
  custom: {
    50: '#8c7fb7',
    500: '#5a4e99',
    950: '#000000',
  },
}
SCSS
$custom: #5a4e99;
$custom-light: #8c7fb7;
$custom-dark: #000000;
JSON
{
  "hex": "#5a4e99",
  "rgb": {
    "r": 90,
    "g": 78,
    "b": 153
  },
  "hsl": {
    "h": 249.6,
    "s": 32.468,
    "l": 45.294
  },
  "oklch": {
    "l": 0.47262,
    "c": 0.11786,
    "h": 288.4
  },
  "luminance": 0.09922
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5A4E99

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

Preview Lab → · Contrast checker → · Palette generator →

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