#5A4AEE#5A4AEE

#5A4AEE is a mid, highly saturated blue. Relative luminance 0.132; OKLCH L 53.2% C 0.234 H 279.2°. Best body text is #FFFFFF at 5.76:1 contrast (WCAG AA passes).

Color values

HEX#5A4AEE
RGBrgb(90, 74, 238)
HSLhsl(246, 83%, 61%)
HSVhsv(246, 69%, 93%)
CMYKcmyk(62.2%, 68.9%, 0%, 6.7%)
CIE-LABlab(43.13, 52.57, -80.22)
CIE-LCHlch(43.13, 95.91, 303.24°)
OKLaboklab(53.22% 0.0375 -0.2314)
OKLCHoklch(53.22% 0.234 279.2)
XYZxyz(22.0929, 13.2425, 82.2642)
Luminance0.1324 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A4AEE #DEEE4A
analogous
#4A8CEE #5A4AEE #AC4AEE
triadic
#5A4AEE #EE5A4A #4AEE5A
tetradic
#5A4AEE #EE4A8C #DEEE4A #4AEEAC
square
#5A4AEE #EE4A8C #DEEE4A #4AEEAC
split-complementary
#5A4AEE #EEAC4A #8CEE4A
monochromatic
#2010AD #2A16E5 #5A4AEE #8D82F3 #C0BAF9

Accessibility & contrast

On white

5.76
#5A4AEE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.65
#5A4AEE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A4AEE
5.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A4AEE#FFFFFF#000000##FFFFFF
##5A4AEE1.005.763.655.76
#FFFFFF5.761.0021.001.00
#0000003.6521.001.0021.00
##FFFFFF5.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006CF3
Deuteranopia (green-blind)
#005FEB
Tritanopia (blue-blind)
#007697
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #5a4aee;
/* rgb */ color: rgb(90, 74, 238);
/* oklch */ color: oklch(53.2% 0.234 279.2);
Tailwind
colors: {
  custom: {
    50: '#997ef5',
    500: '#5a4aee',
    950: '#000000',
  },
}
SCSS
$custom: #5a4aee;
$custom-light: #997ef5;
$custom-dark: #000000;
JSON
{
  "hex": "#5a4aee",
  "rgb": {
    "r": 90,
    "g": 74,
    "b": 238
  },
  "hsl": {
    "h": 245.854,
    "s": 82.828,
    "l": 61.176
  },
  "oklch": {
    "l": 0.53219,
    "c": 0.2344,
    "h": 279.2
  },
  "luminance": 0.13244
}

Semantic roles & 50–950 ramp

primary
#5A4AEE
secondary
#E3E9AB
accent
#DF06CA
background
#FAF7FF
surface
#F4EEFF
border
#CEC9D7
text
#0F0A17
muted
#7F7C85

Preview Lab

Preview with #5A4AEE

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

Preview Lab → · Contrast checker → · Palette generator →

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