#5A5CE3#5A5CE3

#5A5CE3 is a mid, highly saturated blue. Relative luminance 0.154; OKLCH L 55.1% C 0.200 H 277.0°. Best body text is #FFFFFF at 5.15:1 contrast (WCAG AA passes).

Color values

HEX#5A5CE3
RGBrgb(90, 92, 227)
HSLhsl(239, 71%, 62%)
HSVhsv(239, 60%, 89%)
CMYKcmyk(60.4%, 59.5%, 0%, 11%)
CIE-LABlab(46.14, 38.70, -69.08)
CIE-LCHlch(46.14, 79.18, 299.26°)
OKLaboklab(55.14% 0.0242 -0.1986)
OKLCHoklch(55.14% 0.2 277)
XYZxyz(21.9042, 15.3723, 74.4710)
Luminance0.1537 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A5CE3 #E3E15A
analogous
#5AA1E3 #5A5CE3 #9D5AE3
triadic
#5A5CE3 #E35A5C #5CE35A
tetradic
#5A5CE3 #E35AA1 #E3E15A #5AE39D
square
#5A5CE3 #E35AA1 #E3E15A #5AE39D
split-complementary
#5A5CE3 #E39D5A #A1E35A
monochromatic
#1C1EA6 #2628DA #5A5CE3 #8E90EC #C3C3F5

Accessibility & contrast

On white

5.15
#5A5CE3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.07
#5A5CE3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A5CE3
5.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A5CE3#FFFFFF#000000##FFFFFF
##5A5CE31.005.154.075.15
#FFFFFF5.151.0021.001.00
#0000004.0721.001.0021.00
##FFFFFF5.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0073E7
Deuteranopia (green-blind)
#0068E0
Tritanopia (blue-blind)
#007D97
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #5a5ce3;
/* rgb */ color: rgb(90, 92, 227);
/* oklch */ color: oklch(55.1% 0.200 277.0);
Tailwind
colors: {
  custom: {
    50: '#968aed',
    500: '#5a5ce3',
    950: '#000000',
  },
}
SCSS
$custom: #5a5ce3;
$custom-light: #968aed;
$custom-dark: #000000;
JSON
{
  "hex": "#5a5ce3",
  "rgb": {
    "r": 90,
    "g": 92,
    "b": 227
  },
  "hsl": {
    "h": 239.124,
    "s": 70.984,
    "l": 62.157
  },
  "oklch": {
    "l": 0.55135,
    "c": 0.20012,
    "h": 277
  },
  "luminance": 0.15374
}

Semantic roles & 50–950 ramp

primary
#5A5CE3
secondary
#E6E5B3
accent
#D012D3
background
#F9F8FE
surface
#F2F0FD
border
#CCCBD5
text
#0F0C16
muted
#7E7D84

Preview Lab

Preview with #5A5CE3

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

Preview Lab → · Contrast checker → · Palette generator →

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