#5A5DEE#5A5DEE

#5A5DEE is a mid, highly saturated blue. Relative luminance 0.162; OKLCH L 56.2% C 0.213 H 276.2°. Best body text is #FFFFFF at 4.96:1 contrast (WCAG AA passes).

Color values

HEX#5A5DEE
RGBrgb(90, 93, 238)
HSLhsl(239, 81%, 64%)
HSVhsv(239, 62%, 93%)
CMYKcmyk(62.2%, 60.9%, 0%, 6.7%)
CIE-LABlab(47.20, 41.66, -73.55)
CIE-LCHlch(47.20, 84.53, 299.53°)
OKLaboklab(56.18% 0.023 -0.2118)
OKLCHoklch(56.18% 0.213 276.2)
XYZxyz(23.5584, 16.1735, 82.7527)
Luminance0.1618 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A5DEE #EEEB5A
analogous
#5AA7EE #5A5DEE #A15AEE
triadic
#5A5DEE #EE5A5D #5DEE5A
tetradic
#5A5DEE #EE5AA7 #EEEB5A #5AEEA1
square
#5A5DEE #EE5AA7 #EEEB5A #5AEEA1
split-complementary
#5A5DEE #EEA15A #A7EE5A
monochromatic
#1317BA #2327E8 #5A5DEE #9193F4 #C9CAF9

Accessibility & contrast

On white

4.96
#5A5DEE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.23
#5A5DEE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A5DEE
4.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A5DEE#FFFFFF#000000##FFFFFF
##5A5DEE1.004.964.234.96
#FFFFFF4.961.0021.001.00
#0000004.2321.001.0021.00
##FFFFFF4.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0076F3
Deuteranopia (green-blind)
#006AEB
Tritanopia (blue-blind)
#00819D
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #5a5dee;
/* rgb */ color: rgb(90, 93, 238);
/* oklch */ color: oklch(56.2% 0.213 276.2);
Tailwind
colors: {
  custom: {
    50: '#978bf5',
    500: '#5a5dee',
    950: '#000000',
  },
}
SCSS
$custom: #5a5dee;
$custom-light: #978bf5;
$custom-dark: #000000;
JSON
{
  "hex": "#5a5dee",
  "rgb": {
    "r": 90,
    "g": 93,
    "b": 238
  },
  "hsl": {
    "h": 238.784,
    "s": 81.319,
    "l": 64.314
  },
  "oklch": {
    "l": 0.56177,
    "c": 0.21303,
    "h": 276.2
  },
  "luminance": 0.16175
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5A5DEE

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

Preview Lab → · Contrast checker → · Palette generator →

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