#5A5CE4#5A5CE4

#5A5CE4 is a mid, highly saturated blue. Relative luminance 0.154; OKLCH L 55.2% C 0.201 H 276.9°. Best body text is #FFFFFF at 5.14:1 contrast (WCAG AA passes).

Color values

HEX#5A5CE4
RGBrgb(90, 92, 228)
HSLhsl(239, 72%, 62%)
HSVhsv(239, 61%, 89%)
CMYKcmyk(60.5%, 59.6%, 0%, 10.6%)
CIE-LABlab(46.21, 39.03, -69.52)
CIE-LCHlch(46.21, 79.73, 299.31°)
OKLaboklab(55.21% 0.0242 -0.2)
OKLCHoklch(55.21% 0.201 276.9)
XYZxyz(22.0427, 15.4277, 75.2000)
Luminance0.1543 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A5CE4 #E4E25A
analogous
#5AA1E4 #5A5CE4 #9D5AE4
triadic
#5A5CE4 #E45A5C #5CE45A
tetradic
#5A5CE4 #E45AA1 #E4E25A #5AE49D
square
#5A5CE4 #E45AA1 #E4E25A #5AE49D
split-complementary
#5A5CE4 #E49D5A #A1E45A
monochromatic
#1C1EA8 #2528DB #5A5CE4 #8F90ED #C3C4F5

Accessibility & contrast

On white

5.14
#5A5CE4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.09
#5A5CE4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A5CE4
5.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A5CE4#FFFFFF#000000##FFFFFF
##5A5CE41.005.144.095.14
#FFFFFF5.141.0021.001.00
#0000004.0921.001.0021.00
##FFFFFF5.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0073E8
Deuteranopia (green-blind)
#0068E1
Tritanopia (blue-blind)
#007D97
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #5a5ce4;
/* rgb */ color: rgb(90, 92, 228);
/* oklch */ color: oklch(55.2% 0.201 276.9);
Tailwind
colors: {
  custom: {
    50: '#968aed',
    500: '#5a5ce4',
    950: '#000000',
  },
}
SCSS
$custom: #5a5ce4;
$custom-light: #968aed;
$custom-dark: #000000;
JSON
{
  "hex": "#5a5ce4",
  "rgb": {
    "r": 90,
    "g": 92,
    "b": 228
  },
  "hsl": {
    "h": 239.13,
    "s": 71.875,
    "l": 62.353
  },
  "oklch": {
    "l": 0.55214,
    "c": 0.20142,
    "h": 276.9
  },
  "luminance": 0.15429
}

Semantic roles & 50–950 ramp

primary
#5A5CE4
secondary
#E6E5B4
accent
#D112D4
background
#F9F8FE
surface
#F2F0FD
border
#CCCBD5
text
#0F0C16
muted
#7E7D84

Preview Lab

Preview with #5A5CE4

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

Preview Lab → · Contrast checker → · Palette generator →

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