#5A4E9B#5A4E9B

#5A4E9B is a mid, vivid blue. Relative luminance 0.100; OKLCH L 47.4% C 0.121 H 288.0°. Best body text is #FFFFFF at 7.01:1 contrast (WCAG AA passes).

Color values

HEX#5A4E9B
RGBrgb(90, 78, 155)
HSLhsl(249, 33%, 46%)
HSVhsv(249, 50%, 61%)
CMYKcmyk(41.9%, 49.7%, 0%, 39.2%)
CIE-LABlab(37.82, 24.67, -40.53)
CIE-LCHlch(37.82, 47.44, 301.33°)
OKLaboklab(47.39% 0.0374 -0.1148)
OKLCHoklch(47.39% 0.121 288)
XYZxyz(12.8556, 9.9886, 32.2546)
Luminance0.0999 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A4E9B #8F9B4E
analogous
#4E689B #5A4E9B #804E9B
triadic
#5A4E9B #9B5A4E #4E9B5A
tetradic
#5A4E9B #9B4E68 #8F9B4E #4E9B80
square
#5A4E9B #9B4E68 #8F9B4E #4E9B80
split-complementary
#5A4E9B #9B804E #689B4E
monochromatic
#2B254A #423A72 #5A4E9B #7B6FB7 #A098CB

Accessibility & contrast

On white

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

On black

3.00
#5A4E9B on #000000
AA ✗AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##5A4E9B#FFFFFF#000000##FFFFFF
##5A4E9B1.007.013.007.01
#FFFFFF7.011.0021.001.00
#0000003.0021.001.0021.00
##FFFFFF7.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2F5B9E
Deuteranopia (green-blind)
#2F5799
Tritanopia (blue-blind)
#485E6D
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #5a4e9b;
/* rgb */ color: rgb(90, 78, 155);
/* oklch */ color: oklch(47.4% 0.121 288.0);
Tailwind
colors: {
  custom: {
    50: '#8c7fb9',
    500: '#5a4e9b',
    950: '#000000',
  },
}
SCSS
$custom: #5a4e9b;
$custom-light: #8c7fb9;
$custom-dark: #000000;
JSON
{
  "hex": "#5a4e9b",
  "rgb": {
    "r": 90,
    "g": 78,
    "b": 155
  },
  "hsl": {
    "h": 249.351,
    "s": 33.047,
    "l": 45.686
  },
  "oklch": {
    "l": 0.47391,
    "c": 0.12075,
    "h": 288
  },
  "luminance": 0.09989
}

Semantic roles & 50–950 ramp

primary
#5A4E9B
secondary
#B1B88D
accent
#C95FB9
background
#F8F7FB
surface
#F0EEF6
border
#CBC9D0
text
#0C0A11
muted
#7D7C80

Preview Lab

Preview with #5A4E9B

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

Preview Lab → · Contrast checker → · Palette generator →

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