#5A5EE4#5A5EE4

#5A5EE4 is a mid, vivid blue. Relative luminance 0.158; OKLCH L 55.6% C 0.199 H 276.5°. Best body text is #FFFFFF at 5.05:1 contrast (WCAG AA passes).

Color values

HEX#5A5EE4
RGBrgb(90, 94, 228)
HSLhsl(238, 72%, 62%)
HSVhsv(238, 61%, 89%)
CMYKcmyk(60.5%, 58.8%, 0%, 10.6%)
CIE-LABlab(46.68, 37.82, -68.76)
CIE-LCHlch(46.68, 78.47, 298.81°)
OKLaboklab(55.56% 0.0224 -0.1977)
OKLCHoklch(55.56% 0.199 276.5)
XYZxyz(22.2182, 15.7788, 75.2585)
Luminance0.1578 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A5EE4 #E4E05A
analogous
#5AA3E4 #5A5EE4 #9B5AE4
triadic
#5A5EE4 #E45A5E #5EE45A
tetradic
#5A5EE4 #E45AA3 #E4E05A #5AE49B
square
#5A5EE4 #E45AA3 #E4E05A #5AE49B
split-complementary
#5A5EE4 #E49B5A #A3E45A
monochromatic
#1C20A8 #252BDB #5A5EE4 #8F91ED #C3C5F5

Accessibility & contrast

On white

5.05
#5A5EE4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.16
#5A5EE4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A5EE4
5.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A5EE4#FFFFFF#000000##FFFFFF
##5A5EE41.005.054.165.05
#FFFFFF5.051.0021.001.00
#0000004.1621.001.0021.00
##FFFFFF5.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0075E8
Deuteranopia (green-blind)
#0069E1
Tritanopia (blue-blind)
#007F98
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #5a5ee4;
/* rgb */ color: rgb(90, 94, 228);
/* oklch */ color: oklch(55.6% 0.199 276.5);
Tailwind
colors: {
  custom: {
    50: '#968ced',
    500: '#5a5ee4',
    950: '#000000',
  },
}
SCSS
$custom: #5a5ee4;
$custom-light: #968ced;
$custom-dark: #000000;
JSON
{
  "hex": "#5a5ee4",
  "rgb": {
    "r": 90,
    "g": 94,
    "b": 228
  },
  "hsl": {
    "h": 238.261,
    "s": 71.875,
    "l": 62.353
  },
  "oklch": {
    "l": 0.5556,
    "c": 0.19897,
    "h": 276.5
  },
  "luminance": 0.15781
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5A5EE4

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

Preview Lab → · Contrast checker → · Palette generator →

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