#5A5CE8#5A5CE8

#5A5CE8 is a mid, highly saturated blue. Relative luminance 0.157; OKLCH L 55.5% C 0.207 H 276.7°. Best body text is #FFFFFF at 5.08:1 contrast (WCAG AA passes).

Color values

HEX#5A5CE8
RGBrgb(90, 92, 232)
HSLhsl(239, 76%, 63%)
HSVhsv(239, 61%, 91%)
CMYKcmyk(61.2%, 60.3%, 0%, 9%)
CIE-LABlab(46.52, 40.32, -71.29)
CIE-LCHlch(46.52, 81.90, 299.49°)
OKLaboklab(55.53% 0.0241 -0.2052)
OKLCHoklch(55.53% 0.207 276.7)
XYZxyz(22.6044, 15.6524, 78.1583)
Luminance0.1565 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A5CE8 #E8E65A
analogous
#5AA3E8 #5A5CE8 #9F5AE8
triadic
#5A5CE8 #E85A5C #5CE85A
tetradic
#5A5CE8 #E85AA3 #E8E65A #5AE89F
square
#5A5CE8 #E85AA3 #E8E65A #5AE89F
split-complementary
#5A5CE8 #E89F5A #A3E85A
monochromatic
#181BAF #2427E1 #5A5CE8 #9091EF #C5C6F7

Accessibility & contrast

On white

5.08
#5A5CE8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.13
#5A5CE8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A5CE8
5.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A5CE8#FFFFFF#000000##FFFFFF
##5A5CE81.005.084.135.08
#FFFFFF5.081.0021.001.00
#0000004.1321.001.0021.00
##FFFFFF5.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0074ED
Deuteranopia (green-blind)
#0068E5
Tritanopia (blue-blind)
#007F99
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #5a5ce8;
/* rgb */ color: rgb(90, 92, 232);
/* oklch */ color: oklch(55.5% 0.207 276.7);
Tailwind
colors: {
  custom: {
    50: '#968af0',
    500: '#5a5ce8',
    950: '#000000',
  },
}
SCSS
$custom: #5a5ce8;
$custom-light: #968af0;
$custom-dark: #000000;
JSON
{
  "hex": "#5a5ce8",
  "rgb": {
    "r": 90,
    "g": 92,
    "b": 232
  },
  "hsl": {
    "h": 239.155,
    "s": 75.532,
    "l": 63.137
  },
  "oklch": {
    "l": 0.55529,
    "c": 0.20657,
    "h": 276.7
  },
  "luminance": 0.15654
}

Semantic roles & 50–950 ramp

primary
#5A5CE8
secondary
#E8E8B5
accent
#D50ED8
background
#FAF8FE
surface
#F3F0FD
border
#CDCBD5
text
#0F0C17
muted
#7F7D85

Preview Lab

Preview with #5A5CE8

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

Preview Lab → · Contrast checker → · Palette generator →

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