#5A57EC#5A57EC

#5A57EC is a mid, highly saturated blue. Relative luminance 0.150; OKLCH L 55.0% C 0.218 H 277.4°. Best body text is #FFFFFF at 5.24:1 contrast (WCAG AA passes).

Color values

HEX#5A57EC
RGBrgb(90, 87, 236)
HSLhsl(241, 80%, 63%)
HSVhsv(241, 63%, 93%)
CMYKcmyk(61.9%, 63.1%, 0%, 7.5%)
CIE-LABlab(45.69, 44.56, -74.88)
CIE-LCHlch(45.69, 87.14, 300.76°)
OKLaboklab(55.03% 0.028 -0.2157)
OKLCHoklch(55.03% 0.218 277.4)
XYZxyz(22.7601, 15.0444, 81.0451)
Luminance0.1505 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A57EC #E9EC57
analogous
#579EEC #5A57EC #A457EC
triadic
#5A57EC #EC5A57 #57EC5A
tetradic
#5A57EC #EC579E #E9EC57 #57ECA4
square
#5A57EC #EC579E #E9EC57 #57ECA4
split-complementary
#5A57EC #ECA457 #9EEC57
monochromatic
#1814B4 #2420E6 #5A57EC #908EF2 #C6C5F8

Accessibility & contrast

On white

5.24
#5A57EC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.01
#5A57EC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A57EC
5.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A57EC#FFFFFF#000000##FFFFFF
##5A57EC1.005.244.015.24
#FFFFFF5.241.0021.001.00
#0000004.0121.001.0021.00
##FFFFFF5.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0073F1
Deuteranopia (green-blind)
#0066E9
Tritanopia (blue-blind)
#007D9A
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #5a57ec;
/* rgb */ color: rgb(90, 87, 236);
/* oklch */ color: oklch(55.0% 0.218 277.4);
Tailwind
colors: {
  custom: {
    50: '#9787f3',
    500: '#5a57ec',
    950: '#000000',
  },
}
SCSS
$custom: #5a57ec;
$custom-light: #9787f3;
$custom-dark: #000000;
JSON
{
  "hex": "#5a57ec",
  "rgb": {
    "r": 90,
    "g": 87,
    "b": 236
  },
  "hsl": {
    "h": 241.208,
    "s": 79.679,
    "l": 63.333
  },
  "oklch": {
    "l": 0.55025,
    "c": 0.21754,
    "h": 277.4
  },
  "luminance": 0.15046
}

Semantic roles & 50–950 ramp

primary
#5A57EC
secondary
#E9EAB5
accent
#DC0AD8
background
#FAF8FF
surface
#F3EFFE
border
#CDCAD6
text
#0F0B17
muted
#7F7C85

Preview Lab

Preview with #5A57EC

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

Preview Lab → · Contrast checker → · Palette generator →

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