#5A5EE8#5A5EE8

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

Color values

HEX#5A5EE8
RGBrgb(90, 94, 232)
HSLhsl(238, 76%, 63%)
HSVhsv(238, 61%, 91%)
CMYKcmyk(61.2%, 59.5%, 0%, 9%)
CIE-LABlab(46.98, 39.12, -70.54)
CIE-LCHlch(46.98, 80.66, 299.01°)
OKLaboklab(55.87% 0.0223 -0.2029)
OKLCHoklch(55.87% 0.204 276.3)
XYZxyz(22.7799, 16.0035, 78.2168)
Luminance0.1600 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A5EE8 #E8E45A
analogous
#5AA5E8 #5A5EE8 #9D5AE8
triadic
#5A5EE8 #E85A5E #5EE85A
tetradic
#5A5EE8 #E85AA5 #E8E45A #5AE89D
square
#5A5EE8 #E85AA5 #E8E45A #5AE89D
split-complementary
#5A5EE8 #E89D5A #A5E85A
monochromatic
#181DAF #242AE1 #5A5EE8 #9092EF #C5C7F7

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##5A5EE8#FFFFFF#000000##FFFFFF
##5A5EE81.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)
#0076ED
Deuteranopia (green-blind)
#0069E5
Tritanopia (blue-blind)
#00809A
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #5a5ee8;
/* rgb */ color: rgb(90, 94, 232);
/* oklch */ color: oklch(55.9% 0.204 276.3);
Tailwind
colors: {
  custom: {
    50: '#968cf0',
    500: '#5a5ee8',
    950: '#000000',
  },
}
SCSS
$custom: #5a5ee8;
$custom-light: #968cf0;
$custom-dark: #000000;
JSON
{
  "hex": "#5a5ee8",
  "rgb": {
    "r": 90,
    "g": 94,
    "b": 232
  },
  "hsl": {
    "h": 238.31,
    "s": 75.532,
    "l": 63.137
  },
  "oklch": {
    "l": 0.55871,
    "c": 0.20415,
    "h": 276.3
  },
  "luminance": 0.16005
}

Semantic roles & 50–950 ramp

primary
#5A5EE8
secondary
#E8E7B5
accent
#D20ED8
background
#FAF8FE
surface
#F3F0FD
border
#CDCBD5
text
#0F0C17
muted
#7F7D85

Preview Lab

Preview with #5A5EE8

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

Preview Lab → · Contrast checker → · Palette generator →

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