#5A5CE5#5A5CE5

#5A5CE5 is a mid, highly saturated blue. Relative luminance 0.155; OKLCH L 55.3% C 0.203 H 276.8°. Best body text is #FFFFFF at 5.13:1 contrast (WCAG AA passes).

Color values

HEX#5A5CE5
RGBrgb(90, 92, 229)
HSLhsl(239, 73%, 63%)
HSVhsv(239, 61%, 90%)
CMYKcmyk(60.7%, 59.8%, 0%, 10.2%)
CIE-LABlab(46.29, 39.35, -69.96)
CIE-LCHlch(46.29, 80.27, 299.36°)
OKLaboklab(55.29% 0.0242 -0.2013)
OKLCHoklch(55.29% 0.203 276.8)
XYZxyz(22.1819, 15.4834, 75.9332)
Luminance0.1548 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A5CE5 #E5E35A
analogous
#5AA1E5 #5A5CE5 #9E5AE5
triadic
#5A5CE5 #E55A5C #5CE55A
tetradic
#5A5CE5 #E55AA1 #E5E35A #5AE59E
square
#5A5CE5 #E55AA1 #E5E35A #5AE59E
split-complementary
#5A5CE5 #E59E5A #A1E55A
monochromatic
#1B1DAA #2528DD #5A5CE5 #8F90ED #C4C4F6

Accessibility & contrast

On white

5.13
#5A5CE5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.10
#5A5CE5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A5CE5
5.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A5CE5#FFFFFF#000000##FFFFFF
##5A5CE51.005.134.105.13
#FFFFFF5.131.0021.001.00
#0000004.1021.001.0021.00
##FFFFFF5.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0074E9
Deuteranopia (green-blind)
#0068E2
Tritanopia (blue-blind)
#007E98
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #5a5ce5;
/* rgb */ color: rgb(90, 92, 229);
/* oklch */ color: oklch(55.3% 0.203 276.8);
Tailwind
colors: {
  custom: {
    50: '#968aee',
    500: '#5a5ce5',
    950: '#000000',
  },
}
SCSS
$custom: #5a5ce5;
$custom-light: #968aee;
$custom-dark: #000000;
JSON
{
  "hex": "#5a5ce5",
  "rgb": {
    "r": 90,
    "g": 92,
    "b": 229
  },
  "hsl": {
    "h": 239.137,
    "s": 72.775,
    "l": 62.549
  },
  "oklch": {
    "l": 0.55292,
    "c": 0.20271,
    "h": 276.8
  },
  "luminance": 0.15485
}

Semantic roles & 50–950 ramp

primary
#5A5CE5
secondary
#E7E6B4
accent
#D211D5
background
#F9F8FE
surface
#F2F0FD
border
#CCCBD5
text
#0F0C16
muted
#7E7D84

Preview Lab

Preview with #5A5CE5

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

Preview Lab → · Contrast checker → · Palette generator →

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