#5A5CEF#5A5CEF

#5A5CEF is a mid, highly saturated blue. Relative luminance 0.161; OKLCH L 56.1% C 0.215 H 276.3°. Best body text is #FFFFFF at 4.99:1 contrast (WCAG AA passes).

Color values

HEX#5A5CEF
RGBrgb(90, 92, 239)
HSLhsl(239, 82%, 65%)
HSVhsv(239, 62%, 94%)
CMYKcmyk(62.3%, 61.5%, 0%, 6.3%)
CIE-LABlab(47.05, 42.58, -74.36)
CIE-LCHlch(47.05, 85.68, 299.80°)
OKLaboklab(56.09% 0.0237 -0.2142)
OKLCHoklch(56.09% 0.215 276.3)
XYZxyz(23.6185, 16.0580, 83.4995)
Luminance0.1606 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A5CEF #EFED5A
analogous
#5AA6EF #5A5CEF #A35AEF
triadic
#5A5CEF #EF5A5C #5CEF5A
tetradic
#5A5CEF #EF5AA6 #EFED5A #5AEFA3
square
#5A5CEF #EF5AA6 #EFED5A #5AEFA3
split-complementary
#5A5CEF #EFA35A #A6EF5A
monochromatic
#1215BC #2225EA #5A5CEF #9293F4 #CACAFA

Accessibility & contrast

On white

4.99
#5A5CEF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.21
#5A5CEF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A5CEF
4.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A5CEF#FFFFFF#000000##FFFFFF
##5A5CEF1.004.994.214.99
#FFFFFF4.991.0021.001.00
#0000004.2121.001.0021.00
##FFFFFF4.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0076F4
Deuteranopia (green-blind)
#0069EC
Tritanopia (blue-blind)
#00819D
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #5a5cef;
/* rgb */ color: rgb(90, 92, 239);
/* oklch */ color: oklch(56.1% 0.215 276.3);
Tailwind
colors: {
  custom: {
    50: '#988af5',
    500: '#5a5cef',
    950: '#000000',
  },
}
SCSS
$custom: #5a5cef;
$custom-light: #988af5;
$custom-dark: #000000;
JSON
{
  "hex": "#5a5cef",
  "rgb": {
    "r": 90,
    "g": 92,
    "b": 239
  },
  "hsl": {
    "h": 239.195,
    "s": 82.32,
    "l": 64.51
  },
  "oklch": {
    "l": 0.5609,
    "c": 0.21548,
    "h": 276.3
  },
  "luminance": 0.1606
}

Semantic roles & 50–950 ramp

primary
#5A5CEF
secondary
#ECEBB9
accent
#DC07DF
background
#FAF8FF
surface
#F4F0FF
border
#CECBD7
text
#0F0C17
muted
#7F7D85

Preview Lab

Preview with #5A5CEF

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

Preview Lab → · Contrast checker → · Palette generator →

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