#5A5ECD#5A5ECD

#5A5ECD is a mid, vivid blue. Relative luminance 0.146; OKLCH L 53.8% C 0.168 H 277.6°. Best body text is #FFFFFF at 5.36:1 contrast (WCAG AA passes).

Color values

HEX#5A5ECD
RGBrgb(90, 94, 205)
HSLhsl(238, 53%, 58%)
HSVhsv(238, 56%, 80%)
CMYKcmyk(56.1%, 54.1%, 0%, 19.6%)
CIE-LABlab(45.06, 30.36, -58.28)
CIE-LCHlch(45.06, 65.71, 297.52°)
OKLaboklab(53.84% 0.0222 -0.1669)
OKLCHoklch(53.84% 0.168 277.6)
XYZxyz(19.2351, 14.5855, 59.5475)
Luminance0.1459 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A5ECD #CDC95A
analogous
#5A97CD #5A5ECD #8F5ACD
triadic
#5A5ECD #CD5A5E #5ECD5A
tetradic
#5A5ECD #CD5A97 #CDC95A #5ACD8F
square
#5A5ECD #CD5A97 #CDC95A #5ACD8F
split-complementary
#5A5ECD #CD8F5A #97CD5A
monochromatic
#282B84 #363BB3 #5A5ECD #898CDB #B8BAE9

Accessibility & contrast

On white

5.36
#5A5ECD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.92
#5A5ECD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A5ECD
5.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A5ECD#FFFFFF#000000##FFFFFF
##5A5ECD1.005.363.925.36
#FFFFFF5.361.0021.001.00
#0000003.9221.001.0021.00
##FFFFFF5.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#176FD1
Deuteranopia (green-blind)
#0066CB
Tritanopia (blue-blind)
#1A788C
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #5a5ecd;
/* rgb */ color: rgb(90, 94, 205);
/* oklch */ color: oklch(53.8% 0.168 277.6);
Tailwind
colors: {
  custom: {
    50: '#928bdd',
    500: '#5a5ecd',
    950: '#000000',
  },
}
SCSS
$custom: #5a5ecd;
$custom-light: #928bdd;
$custom-dark: #000000;
JSON
{
  "hex": "#5a5ecd",
  "rgb": {
    "r": 90,
    "g": 94,
    "b": 205
  },
  "hsl": {
    "h": 237.913,
    "s": 53.488,
    "l": 57.843
  },
  "oklch": {
    "l": 0.53841,
    "c": 0.16834,
    "h": 277.6
  },
  "luminance": 0.14587
}

Semantic roles & 50–950 ramp

primary
#5A5ECD
secondary
#D8D7AA
accent
#D84BDD
background
#F9F8FD
surface
#F2F0FB
border
#CCCBD4
text
#0E0C15
muted
#7E7D83

Preview Lab

Preview with #5A5ECD

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

Preview Lab → · Contrast checker → · Palette generator →

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