#5A5BEE#5A5BEE

#5A5BEE is a mid, highly saturated blue. Relative luminance 0.158; OKLCH L 55.8% C 0.215 H 276.6°. Best body text is #FFFFFF at 5.04:1 contrast (WCAG AA passes).

Color values

HEX#5A5BEE
RGBrgb(90, 91, 238)
HSLhsl(240, 81%, 64%)
HSVhsv(240, 62%, 93%)
CMYKcmyk(62.2%, 61.8%, 0%, 6.7%)
CIE-LABlab(46.75, 42.85, -74.29)
CIE-LCHlch(46.75, 85.76, 299.97°)
OKLaboklab(55.84% 0.0246 -0.214)
OKLCHoklch(55.84% 0.215 276.6)
XYZxyz(23.3851, 15.8270, 82.6949)
Luminance0.1583 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A5BEE #EEED5A
analogous
#5AA5EE #5A5BEE #A35AEE
triadic
#5A5BEE #EE5A5B #5BEE5A
tetradic
#5A5BEE #EE5AA5 #EEED5A #5AEEA3
square
#5A5BEE #EE5AA5 #EEED5A #5AEEA3
split-complementary
#5A5BEE #EEA35A #A5EE5A
monochromatic
#1314BA #2324E8 #5A5BEE #9192F4 #C9C9F9

Accessibility & contrast

On white

5.04
#5A5BEE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.17
#5A5BEE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A5BEE
5.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A5BEE#FFFFFF#000000##FFFFFF
##5A5BEE1.005.044.175.04
#FFFFFF5.041.0021.001.00
#0000004.1721.001.0021.00
##FFFFFF5.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0075F3
Deuteranopia (green-blind)
#0068EB
Tritanopia (blue-blind)
#00809C
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #5a5bee;
/* rgb */ color: rgb(90, 91, 238);
/* oklch */ color: oklch(55.8% 0.215 276.6);
Tailwind
colors: {
  custom: {
    50: '#988af5',
    500: '#5a5bee',
    950: '#000000',
  },
}
SCSS
$custom: #5a5bee;
$custom-light: #988af5;
$custom-dark: #000000;
JSON
{
  "hex": "#5a5bee",
  "rgb": {
    "r": 90,
    "g": 91,
    "b": 238
  },
  "hsl": {
    "h": 239.595,
    "s": 81.319,
    "l": 64.314
  },
  "oklch": {
    "l": 0.55843,
    "c": 0.21539,
    "h": 276.6
  },
  "luminance": 0.15829
}

Semantic roles & 50–950 ramp

primary
#5A5BEE
secondary
#ECEBB8
accent
#DC08DE
background
#FAF8FF
surface
#F3F0FE
border
#CDCBD6
text
#0F0B17
muted
#7F7C85

Preview Lab

Preview with #5A5BEE

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

Preview Lab → · Contrast checker → · Palette generator →

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