#5A5AE5#5A5AE5

#5A5AE5 is a mid, highly saturated blue. Relative luminance 0.151; OKLCH L 55.0% C 0.205 H 277.3°. Best body text is #FFFFFF at 5.21:1 contrast (WCAG AA passes).

Color values

HEX#5A5AE5
RGBrgb(90, 90, 229)
HSLhsl(240, 73%, 63%)
HSVhsv(240, 61%, 90%)
CMYKcmyk(60.7%, 60.7%, 0%, 10.2%)
CIE-LABlab(45.83, 40.55, -70.72)
CIE-LCHlch(45.83, 81.52, 299.83°)
OKLaboklab(54.95% 0.0259 -0.2035)
OKLCHoklch(54.95% 0.205 277.3)
XYZxyz(22.0109, 15.1414, 75.8762)
Luminance0.1514 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A5AE5 #E5E55A
analogous
#5A9FE5 #5A5AE5 #9F5AE5
triadic
#5A5AE5 #E55A5A #5AE55A
tetradic
#5A5AE5 #E55A9F #E5E55A #5AE59F
square
#5A5AE5 #E55A9F #E5E55A #5AE59F
split-complementary
#5A5AE5 #E59F5A #9FE55A
monochromatic
#1B1BAA #2525DD #5A5AE5 #8F8FED #C4C4F6

Accessibility & contrast

On white

5.21
#5A5AE5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.03
#5A5AE5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A5AE5
5.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A5AE5#FFFFFF#000000##FFFFFF
##5A5AE51.005.214.035.21
#FFFFFF5.211.0021.001.00
#0000004.0321.001.0021.00
##FFFFFF5.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0072EA
Deuteranopia (green-blind)
#0067E2
Tritanopia (blue-blind)
#007C97
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #5a5ae5;
/* rgb */ color: rgb(90, 90, 229);
/* oklch */ color: oklch(55.0% 0.205 277.3);
Tailwind
colors: {
  custom: {
    50: '#9689ee',
    500: '#5a5ae5',
    950: '#000000',
  },
}
SCSS
$custom: #5a5ae5;
$custom-light: #9689ee;
$custom-dark: #000000;
JSON
{
  "hex": "#5a5ae5",
  "rgb": {
    "r": 90,
    "g": 90,
    "b": 229
  },
  "hsl": {
    "h": 240,
    "s": 72.775,
    "l": 62.549
  },
  "oklch": {
    "l": 0.54952,
    "c": 0.20512,
    "h": 277.3
  },
  "luminance": 0.15143
}

Semantic roles & 50–950 ramp

primary
#5A5AE5
secondary
#E7E7B4
accent
#D511D5
background
#F9F8FE
surface
#F2F0FD
border
#CCCBD5
text
#0F0B16
muted
#7E7C84

Preview Lab

Preview with #5A5AE5

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

Preview Lab → · Contrast checker → · Palette generator →

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