#5A5ECA#5A5ECA

#5A5ECA is a mid, vivid blue. Relative luminance 0.144; OKLCH L 53.6% C 0.164 H 277.7°. Best body text is #FFFFFF at 5.40:1 contrast (WCAG AA passes).

Color values

HEX#5A5ECA
RGBrgb(90, 94, 202)
HSLhsl(238, 51%, 57%)
HSVhsv(238, 55%, 79%)
CMYKcmyk(55.4%, 53.5%, 0%, 20.8%)
CIE-LABlab(44.86, 29.39, -56.88)
CIE-LCHlch(44.86, 64.02, 297.33°)
OKLaboklab(53.63% 0.0221 -0.1627)
OKLCHoklch(53.63% 0.164 277.7)
XYZxyz(18.8764, 14.4421, 57.6586)
Luminance0.1444 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A5ECA #CAC65A
analogous
#5A96CA #5A5ECA #8E5ACA
triadic
#5A5ECA #CA5A5E #5ECA5A
tetradic
#5A5ECA #CA5A96 #CAC65A #5ACA8E
square
#5A5ECA #CA5A96 #CAC65A #5ACA8E
split-complementary
#5A5ECA #CA8E5A #96CA5A
monochromatic
#292C80 #383CAF #5A5ECA #888BD9 #B7B8E8

Accessibility & contrast

On white

5.40
#5A5ECA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.89
#5A5ECA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A5ECA
5.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A5ECA#FFFFFF#000000##FFFFFF
##5A5ECA1.005.403.895.40
#FFFFFF5.401.0021.001.00
#0000003.8921.001.0021.00
##FFFFFF5.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1D6FCE
Deuteranopia (green-blind)
#0066C8
Tritanopia (blue-blind)
#20778B
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #5a5eca;
/* rgb */ color: rgb(90, 94, 202);
/* oklch */ color: oklch(53.6% 0.164 277.7);
Tailwind
colors: {
  custom: {
    50: '#928bdb',
    500: '#5a5eca',
    950: '#000000',
  },
}
SCSS
$custom: #5a5eca;
$custom-light: #928bdb;
$custom-dark: #000000;
JSON
{
  "hex": "#5a5eca",
  "rgb": {
    "r": 90,
    "g": 94,
    "b": 202
  },
  "hsl": {
    "h": 237.857,
    "s": 51.376,
    "l": 57.255
  },
  "oklch": {
    "l": 0.53627,
    "c": 0.16424,
    "h": 277.7
  },
  "luminance": 0.14443
}

Semantic roles & 50–950 ramp

primary
#5A5ECA
secondary
#D7D5A9
accent
#D64DDB
background
#F9F8FD
surface
#F2F0FB
border
#CCCBD4
text
#0E0C15
muted
#7E7D83

Preview Lab

Preview with #5A5ECA

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

Preview Lab → · Contrast checker → · Palette generator →

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