#5A57EF#5A57EF

#5A57EF is a mid, highly saturated blue. Relative luminance 0.152; OKLCH L 55.3% C 0.221 H 277.2°. Best body text is #FFFFFF at 5.19:1 contrast (WCAG AA passes).

Color values

HEX#5A57EF
RGBrgb(90, 87, 239)
HSLhsl(241, 83%, 64%)
HSVhsv(241, 64%, 94%)
CMYKcmyk(62.3%, 63.6%, 0%, 6.3%)
CIE-LABlab(45.93, 45.52, -76.18)
CIE-LCHlch(45.93, 88.74, 300.86°)
OKLaboklab(55.27% 0.0277 -0.2195)
OKLCHoklch(55.27% 0.221 277.2)
XYZxyz(23.1996, 15.2202, 83.3598)
Luminance0.1522 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A57EF #ECEF57
analogous
#57A0EF #5A57EF #A657EF
triadic
#5A57EF #EF5A57 #57EF5A
tetradic
#5A57EF #EF57A0 #ECEF57 #57EFA6
square
#5A57EF #EF57A0 #ECEF57 #57EFA6
split-complementary
#5A57EF #EFA657 #A0EF57
monochromatic
#1512BA #231FEA #5A57EF #918FF4 #C8C7FA

Accessibility & contrast

On white

5.19
#5A57EF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.04
#5A57EF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A57EF
5.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A57EF#FFFFFF#000000##FFFFFF
##5A57EF1.005.194.045.19
#FFFFFF5.191.0021.001.00
#0000004.0421.001.0021.00
##FFFFFF5.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0073F4
Deuteranopia (green-blind)
#0066EC
Tritanopia (blue-blind)
#007E9B
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #5a57ef;
/* rgb */ color: rgb(90, 87, 239);
/* oklch */ color: oklch(55.3% 0.221 277.2);
Tailwind
colors: {
  custom: {
    50: '#9887f5',
    500: '#5a57ef',
    950: '#000000',
  },
}
SCSS
$custom: #5a57ef;
$custom-light: #9887f5;
$custom-dark: #000000;
JSON
{
  "hex": "#5a57ef",
  "rgb": {
    "r": 90,
    "g": 87,
    "b": 239
  },
  "hsl": {
    "h": 241.184,
    "s": 82.609,
    "l": 63.922
  },
  "oklch": {
    "l": 0.55274,
    "c": 0.22128,
    "h": 277.2
  },
  "luminance": 0.15222
}

Semantic roles & 50–950 ramp

primary
#5A57EF
secondary
#EBECB6
accent
#DF06DB
background
#FAF8FF
surface
#F4EFFF
border
#CECAD7
text
#0F0B17
muted
#7F7C85

Preview Lab

Preview with #5A57EF

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

Preview Lab → · Contrast checker → · Palette generator →

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