#5A4EE8#5A4EE8

#5A4EE8 is a mid, highly saturated blue. Relative luminance 0.134; OKLCH L 53.3% C 0.223 H 279.2°. Best body text is #FFFFFF at 5.69:1 contrast (WCAG AA passes).

Color values

HEX#5A4EE8
RGBrgb(90, 78, 232)
HSLhsl(245, 77%, 61%)
HSVhsv(245, 66%, 91%)
CMYKcmyk(61.2%, 66.4%, 0%, 9%)
CIE-LABlab(43.43, 48.50, -76.33)
CIE-LCHlch(43.43, 90.43, 302.43°)
OKLaboklab(53.28% 0.0354 -0.22)
OKLCHoklch(53.28% 0.223 279.2)
XYZxyz(21.5017, 13.4470, 77.7907)
Luminance0.1345 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A4EE8 #DCE84E
analogous
#4E8FE8 #5A4EE8 #A74EE8
triadic
#5A4EE8 #E85A4E #4EE85A
tetradic
#5A4EE8 #E84E8F #DCE84E #4EE8A7
square
#5A4EE8 #E84E8F #DCE84E #4EE8A7
split-complementary
#5A4EE8 #E8A74E #8FE84E
monochromatic
#2116A6 #2C1DDC #5A4EE8 #8C84EF #BFBAF6

Accessibility & contrast

On white

5.69
#5A4EE8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.69
#5A4EE8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A4EE8
5.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A4EE8#FFFFFF#000000##FFFFFF
##5A4EE81.005.693.695.69
#FFFFFF5.691.0021.001.00
#0000003.6921.001.0021.00
##FFFFFF5.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006DED
Deuteranopia (green-blind)
#0060E5
Tritanopia (blue-blind)
#007695
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #5a4ee8;
/* rgb */ color: rgb(90, 78, 232);
/* oklch */ color: oklch(53.3% 0.223 279.2);
Tailwind
colors: {
  custom: {
    50: '#9781f0',
    500: '#5a4ee8',
    950: '#000000',
  },
}
SCSS
$custom: #5a4ee8;
$custom-light: #9781f0;
$custom-dark: #000000;
JSON
{
  "hex": "#5a4ee8",
  "rgb": {
    "r": 90,
    "g": 78,
    "b": 232
  },
  "hsl": {
    "h": 244.675,
    "s": 77,
    "l": 60.784
  },
  "oklch": {
    "l": 0.53279,
    "c": 0.22284,
    "h": 279.2
  },
  "luminance": 0.13449
}

Semantic roles & 50–950 ramp

primary
#5A4EE8
secondary
#E2E6AC
accent
#D90CC9
background
#FAF7FE
surface
#F4EEFD
border
#CEC9D5
text
#0F0A17
muted
#7F7C85

Preview Lab

Preview with #5A4EE8

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

Preview Lab → · Contrast checker → · Palette generator →

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