#5A5AE7#5A5AE7

#5A5AE7 is a mid, highly saturated blue. Relative luminance 0.153; OKLCH L 55.1% C 0.208 H 277.1°. Best body text is #FFFFFF at 5.18:1 contrast (WCAG AA passes).

Color values

HEX#5A5AE7
RGBrgb(90, 90, 231)
HSLhsl(240, 75%, 63%)
HSVhsv(240, 61%, 91%)
CMYKcmyk(61%, 61%, 0%, 9.4%)
CIE-LABlab(45.98, 41.19, -71.60)
CIE-LCHlch(45.98, 82.60, 299.91°)
OKLaboklab(55.11% 0.0258 -0.2061)
OKLCHoklch(55.11% 0.208 277.1)
XYZxyz(22.2918, 15.2538, 77.3554)
Luminance0.1526 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A5AE7 #E7E75A
analogous
#5AA0E7 #5A5AE7 #A05AE7
triadic
#5A5AE7 #E75A5A #5AE75A
tetradic
#5A5AE7 #E75AA0 #E7E75A #5AE7A0
square
#5A5AE7 #E75AA0 #E7E75A #5AE7A0
split-complementary
#5A5AE7 #E7A05A #A0E75A
monochromatic
#1919AD #2525DF #5A5AE7 #8F8FEF #C5C5F7

Accessibility & contrast

On white

5.18
#5A5AE7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.05
#5A5AE7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A5AE7
5.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A5AE7#FFFFFF#000000##FFFFFF
##5A5AE71.005.184.055.18
#FFFFFF5.181.0021.001.00
#0000004.0521.001.0021.00
##FFFFFF5.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0073EC
Deuteranopia (green-blind)
#0067E4
Tritanopia (blue-blind)
#007D98
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #5a5ae7;
/* rgb */ color: rgb(90, 90, 231);
/* oklch */ color: oklch(55.1% 0.208 277.1);
Tailwind
colors: {
  custom: {
    50: '#9689f0',
    500: '#5a5ae7',
    950: '#000000',
  },
}
SCSS
$custom: #5a5ae7;
$custom-light: #9689f0;
$custom-dark: #000000;
JSON
{
  "hex": "#5a5ae7",
  "rgb": {
    "r": 90,
    "g": 90,
    "b": 231
  },
  "hsl": {
    "h": 240,
    "s": 74.603,
    "l": 62.941
  },
  "oklch": {
    "l": 0.55112,
    "c": 0.20768,
    "h": 277.1
  },
  "luminance": 0.15256
}

Semantic roles & 50–950 ramp

primary
#5A5AE7
secondary
#E8E8B5
accent
#D70FD7
background
#FAF8FE
surface
#F3F0FD
border
#CDCBD5
text
#0F0B17
muted
#7F7C85

Preview Lab

Preview with #5A5AE7

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

Preview Lab → · Contrast checker → · Palette generator →

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