#5A4ED8#5A4ED8

#5A4ED8 is a mid, highly saturated blue. Relative luminance 0.126; OKLCH L 51.9% C 0.203 H 280.6°. Best body text is #FFFFFF at 5.97:1 contrast (WCAG AA passes).

Color values

HEX#5A4ED8
RGBrgb(90, 78, 216)
HSLhsl(245, 64%, 58%)
HSVhsv(245, 64%, 85%)
CMYKcmyk(58.3%, 63.9%, 0%, 15.3%)
CIE-LABlab(42.12, 43.52, -69.36)
CIE-LCHlch(42.12, 81.88, 302.11°)
OKLaboklab(51.93% 0.0372 -0.1996)
OKLCHoklch(51.93% 0.203 280.6)
XYZxyz(19.3316, 12.5790, 66.3617)
Luminance0.1258 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A4ED8 #CCD84E
analogous
#4E87D8 #5A4ED8 #9F4ED8
triadic
#5A4ED8 #D85A4E #4ED85A
tetradic
#5A4ED8 #D84E87 #CCD84E #4ED89F
square
#5A4ED8 #D84E87 #CCD84E #4ED89F
split-complementary
#5A4ED8 #D89F4E #87D84E
monochromatic
#291F8D #372ABF #5A4ED8 #8980E3 #B7B2EE

Accessibility & contrast

On white

5.97
#5A4ED8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.52
#5A4ED8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A4ED8
5.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A4ED8#FFFFFF#000000##FFFFFF
##5A4ED81.005.973.525.97
#FFFFFF5.971.0021.001.00
#0000003.5221.001.0021.00
##FFFFFF5.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0068DC
Deuteranopia (green-blind)
#005ED5
Tritanopia (blue-blind)
#00718C
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #5a4ed8;
/* rgb */ color: rgb(90, 78, 216);
/* oklch */ color: oklch(51.9% 0.203 280.6);
Tailwind
colors: {
  custom: {
    50: '#9580e5',
    500: '#5a4ed8',
    950: '#000000',
  },
}
SCSS
$custom: #5a4ed8;
$custom-light: #9580e5;
$custom-dark: #000000;
JSON
{
  "hex": "#5a4ed8",
  "rgb": {
    "r": 90,
    "g": 78,
    "b": 216
  },
  "hsl": {
    "h": 245.217,
    "s": 63.889,
    "l": 57.647
  },
  "oklch": {
    "l": 0.51927,
    "c": 0.203,
    "h": 280.6
  },
  "luminance": 0.1258
}

Semantic roles & 50–950 ramp

primary
#5A4ED8
secondary
#D8DDA5
accent
#E741D8
background
#F9F7FE
surface
#F2EEFC
border
#CCC9D5
text
#0E0A16
muted
#7E7C84

Preview Lab

Preview with #5A4ED8

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

Preview Lab → · Contrast checker → · Palette generator →

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