#5A5ECB#5A5ECB

#5A5ECB is a mid, vivid blue. Relative luminance 0.145; OKLCH L 53.7% C 0.166 H 277.7°. Best body text is #FFFFFF at 5.39:1 contrast (WCAG AA passes).

Color values

HEX#5A5ECB
RGBrgb(90, 94, 203)
HSLhsl(238, 52%, 57%)
HSVhsv(238, 56%, 80%)
CMYKcmyk(55.7%, 53.7%, 0%, 20.4%)
CIE-LABlab(44.93, 29.71, -57.34)
CIE-LCHlch(44.93, 64.58, 297.39°)
OKLaboklab(53.7% 0.0221 -0.1641)
OKLCHoklch(53.7% 0.166 277.7)
XYZxyz(18.9952, 14.4896, 58.2841)
Luminance0.1449 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A5ECB #CBC75A
analogous
#5A97CB #5A5ECB #8E5ACB
triadic
#5A5ECB #CB5A5E #5ECB5A
tetradic
#5A5ECB #CB5A97 #CBC75A #5ACB8E
square
#5A5ECB #CB5A97 #CBC75A #5ACB8E
split-complementary
#5A5ECB #CB8E5A #97CB5A
monochromatic
#292C82 #383CB0 #5A5ECB #898BDA #B7B9E8

Accessibility & contrast

On white

5.39
#5A5ECB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.90
#5A5ECB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A5ECB
5.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A5ECB#FFFFFF#000000##FFFFFF
##5A5ECB1.005.393.905.39
#FFFFFF5.391.0021.001.00
#0000003.9021.001.0021.00
##FFFFFF5.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1B6FCF
Deuteranopia (green-blind)
#0066C9
Tritanopia (blue-blind)
#1E778B
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #5a5ecb;
/* rgb */ color: rgb(90, 94, 203);
/* oklch */ color: oklch(53.7% 0.166 277.7);
Tailwind
colors: {
  custom: {
    50: '#928bdb',
    500: '#5a5ecb',
    950: '#000000',
  },
}
SCSS
$custom: #5a5ecb;
$custom-light: #928bdb;
$custom-dark: #000000;
JSON
{
  "hex": "#5a5ecb",
  "rgb": {
    "r": 90,
    "g": 94,
    "b": 203
  },
  "hsl": {
    "h": 237.876,
    "s": 52.074,
    "l": 57.451
  },
  "oklch": {
    "l": 0.53698,
    "c": 0.16561,
    "h": 277.7
  },
  "luminance": 0.14491
}

Semantic roles & 50–950 ramp

primary
#5A5ECB
secondary
#D7D6AA
accent
#D64CDC
background
#F9F8FD
surface
#F2F0FB
border
#CCCBD4
text
#0E0C15
muted
#7E7D83

Preview Lab

Preview with #5A5ECB

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

Preview Lab → · Contrast checker → · Palette generator →

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