#5A5CEE#5A5CEE

#5A5CEE is a mid, highly saturated blue. Relative luminance 0.160; OKLCH L 56.0% C 0.214 H 276.4°. Best body text is #FFFFFF at 5.00:1 contrast (WCAG AA passes).

Color values

HEX#5A5CEE
RGBrgb(90, 92, 238)
HSLhsl(239, 81%, 64%)
HSVhsv(239, 62%, 93%)
CMYKcmyk(62.2%, 61.3%, 0%, 6.7%)
CIE-LABlab(46.97, 42.25, -73.92)
CIE-LCHlch(46.97, 85.15, 299.75°)
OKLaboklab(56.01% 0.0238 -0.2129)
OKLCHoklch(56.01% 0.214 276.4)
XYZxyz(23.4712, 15.9991, 82.7236)
Luminance0.1600 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A5CEE #EEEC5A
analogous
#5AA6EE #5A5CEE #A25AEE
triadic
#5A5CEE #EE5A5C #5CEE5A
tetradic
#5A5CEE #EE5AA6 #EEEC5A #5AEEA2
square
#5A5CEE #EE5AA6 #EEEC5A #5AEEA2
split-complementary
#5A5CEE #EEA25A #A6EE5A
monochromatic
#1315BA #2325E8 #5A5CEE #9193F4 #C9CAF9

Accessibility & contrast

On white

5.00
#5A5CEE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.20
#5A5CEE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A5CEE
5.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A5CEE#FFFFFF#000000##FFFFFF
##5A5CEE1.005.004.205.00
#FFFFFF5.001.0021.001.00
#0000004.2021.001.0021.00
##FFFFFF5.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0076F3
Deuteranopia (green-blind)
#0069EB
Tritanopia (blue-blind)
#00819C
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #5a5cee;
/* rgb */ color: rgb(90, 92, 238);
/* oklch */ color: oklch(56.0% 0.214 276.4);
Tailwind
colors: {
  custom: {
    50: '#978af5',
    500: '#5a5cee',
    950: '#000000',
  },
}
SCSS
$custom: #5a5cee;
$custom-light: #978af5;
$custom-dark: #000000;
JSON
{
  "hex": "#5a5cee",
  "rgb": {
    "r": 90,
    "g": 92,
    "b": 238
  },
  "hsl": {
    "h": 239.189,
    "s": 81.319,
    "l": 64.314
  },
  "oklch": {
    "l": 0.56009,
    "c": 0.21422,
    "h": 276.4
  },
  "luminance": 0.16001
}

Semantic roles & 50–950 ramp

primary
#5A5CEE
secondary
#ECEBB8
accent
#DB08DE
background
#FAF8FF
surface
#F3F0FE
border
#CDCBD6
text
#0F0C17
muted
#7F7D85

Preview Lab

Preview with #5A5CEE

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

Preview Lab → · Contrast checker → · Palette generator →

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