#5A5EEE#5A5EEE

#5A5EEE is a mid, highly saturated blue. Relative luminance 0.164; OKLCH L 56.3% C 0.212 H 276.0°. Best body text is #FFFFFF at 4.92:1 contrast (WCAG AA passes).

Color values

HEX#5A5EEE
RGBrgb(90, 94, 238)
HSLhsl(238, 81%, 64%)
HSVhsv(238, 62%, 93%)
CMYKcmyk(62.2%, 60.5%, 0%, 6.7%)
CIE-LABlab(47.43, 41.06, -73.18)
CIE-LCHlch(47.43, 83.91, 299.30°)
OKLaboklab(56.35% 0.0221 -0.2107)
OKLCHoklch(56.35% 0.212 276)
XYZxyz(23.6467, 16.3502, 82.7821)
Luminance0.1635 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A5EEE #EEEA5A
analogous
#5AA8EE #5A5EEE #A05AEE
triadic
#5A5EEE #EE5A5E #5EEE5A
tetradic
#5A5EEE #EE5AA8 #EEEA5A #5AEEA0
square
#5A5EEE #EE5AA8 #EEEA5A #5AEEA0
split-complementary
#5A5EEE #EEA05A #A8EE5A
monochromatic
#1318BA #2328E8 #5A5EEE #9194F4 #C9CAF9

Accessibility & contrast

On white

4.92
#5A5EEE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.27
#5A5EEE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A5EEE
4.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A5EEE#FFFFFF#000000##FFFFFF
##5A5EEE1.004.924.274.92
#FFFFFF4.921.0021.001.00
#0000004.2721.001.0021.00
##FFFFFF4.921.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5a5eee;
/* rgb */ color: rgb(90, 94, 238);
/* oklch */ color: oklch(56.3% 0.212 276.0);
Tailwind
colors: {
  custom: {
    50: '#978cf5',
    500: '#5a5eee',
    950: '#000000',
  },
}
SCSS
$custom: #5a5eee;
$custom-light: #978cf5;
$custom-dark: #000000;
JSON
{
  "hex": "#5a5eee",
  "rgb": {
    "r": 90,
    "g": 94,
    "b": 238
  },
  "hsl": {
    "h": 238.378,
    "s": 81.319,
    "l": 64.314
  },
  "oklch": {
    "l": 0.56345,
    "c": 0.21184,
    "h": 276
  },
  "luminance": 0.16352
}

Semantic roles & 50–950 ramp

primary
#5A5EEE
secondary
#ECEAB8
accent
#D808DE
background
#FAF8FF
surface
#F3F0FE
border
#CDCBD6
text
#0F0C17
muted
#7F7D85

Preview Lab

Preview with #5A5EEE

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

Preview Lab → · Contrast checker → · Palette generator →

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