#5A5ECC#5A5ECC

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

Color values

HEX#5A5ECC
RGBrgb(90, 94, 204)
HSLhsl(238, 53%, 58%)
HSVhsv(238, 56%, 80%)
CMYKcmyk(55.9%, 53.9%, 0%, 20%)
CIE-LABlab(44.99, 30.04, -57.81)
CIE-LCHlch(44.99, 65.15, 297.45°)
OKLaboklab(53.77% 0.0221 -0.1655)
OKLCHoklch(53.77% 0.167 277.6)
XYZxyz(19.1148, 14.5374, 58.9138)
Luminance0.1454 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A5ECC #CCC85A
analogous
#5A97CC #5A5ECC #8F5ACC
triadic
#5A5ECC #CC5A5E #5ECC5A
tetradic
#5A5ECC #CC5A97 #CCC85A #5ACC8F
square
#5A5ECC #CC5A97 #CCC85A #5ACC8F
split-complementary
#5A5ECC #CC8F5A #97CC5A
monochromatic
#292C83 #373BB2 #5A5ECC #898CDA #B7B9E9

Accessibility & contrast

On white

5.37
#5A5ECC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.91
#5A5ECC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A5ECC
5.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A5ECC#FFFFFF#000000##FFFFFF
##5A5ECC1.005.373.915.37
#FFFFFF5.371.0021.001.00
#0000003.9121.001.0021.00
##FFFFFF5.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#196FD0
Deuteranopia (green-blind)
#0066CA
Tritanopia (blue-blind)
#1C778C
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #5a5ecc;
/* rgb */ color: rgb(90, 94, 204);
/* oklch */ color: oklch(53.8% 0.167 277.6);
Tailwind
colors: {
  custom: {
    50: '#928bdc',
    500: '#5a5ecc',
    950: '#000000',
  },
}
SCSS
$custom: #5a5ecc;
$custom-light: #928bdc;
$custom-dark: #000000;
JSON
{
  "hex": "#5a5ecc",
  "rgb": {
    "r": 90,
    "g": 94,
    "b": 204
  },
  "hsl": {
    "h": 237.895,
    "s": 52.778,
    "l": 57.647
  },
  "oklch": {
    "l": 0.5377,
    "c": 0.16697,
    "h": 277.6
  },
  "luminance": 0.14539
}

Semantic roles & 50–950 ramp

primary
#5A5ECC
secondary
#D8D6AA
accent
#D74CDC
background
#F9F8FD
surface
#F2F0FB
border
#CCCBD4
text
#0E0C15
muted
#7E7D83

Preview Lab

Preview with #5A5ECC

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

Preview Lab → · Contrast checker → · Palette generator →

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