#5A57F0#5A57F0

#5A57F0 is a mid, highly saturated blue. Relative luminance 0.153; OKLCH L 55.4% C 0.223 H 277.1°. Best body text is #FFFFFF at 5.18:1 contrast (WCAG AA passes).

Color values

HEX#5A57F0
RGBrgb(90, 87, 240)
HSLhsl(241, 84%, 64%)
HSVhsv(241, 64%, 94%)
CMYKcmyk(62.5%, 63.7%, 0%, 5.9%)
CIE-LABlab(46.01, 45.84, -76.61)
CIE-LCHlch(46.01, 89.28, 300.89°)
OKLaboklab(55.36% 0.0277 -0.2208)
OKLCHoklch(55.36% 0.223 277.1)
XYZxyz(23.3477, 15.2794, 84.1400)
Luminance0.1528 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A57F0 #EDF057
analogous
#57A1F0 #5A57F0 #A657F0
triadic
#5A57F0 #F05A57 #57F05A
tetradic
#5A57F0 #F057A1 #EDF057 #57F0A6
square
#5A57F0 #F057A1 #EDF057 #57F0A6
split-complementary
#5A57F0 #F0A657 #A1F057
monochromatic
#1411BC #231FEB #5A57F0 #918FF5 #C8C7FA

Accessibility & contrast

On white

5.18
#5A57F0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.06
#5A57F0 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A57F0
5.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A57F0#FFFFFF#000000##FFFFFF
##5A57F01.005.184.065.18
#FFFFFF5.181.0021.001.00
#0000004.0621.001.0021.00
##FFFFFF5.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0074F5
Deuteranopia (green-blind)
#0066ED
Tritanopia (blue-blind)
#007E9C
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #5a57f0;
/* rgb */ color: rgb(90, 87, 240);
/* oklch */ color: oklch(55.4% 0.223 277.1);
Tailwind
colors: {
  custom: {
    50: '#9887f6',
    500: '#5a57f0',
    950: '#000000',
  },
}
SCSS
$custom: #5a57f0;
$custom-light: #9887f6;
$custom-dark: #000000;
JSON
{
  "hex": "#5a57f0",
  "rgb": {
    "r": 90,
    "g": 87,
    "b": 240
  },
  "hsl": {
    "h": 241.176,
    "s": 83.607,
    "l": 64.118
  },
  "oklch": {
    "l": 0.55357,
    "c": 0.22252,
    "h": 277.1
  },
  "luminance": 0.15281
}

Semantic roles & 50–950 ramp

primary
#5A57F0
secondary
#EBECB7
accent
#E005DC
background
#FAF8FF
surface
#F4EFFF
border
#CECAD7
text
#0F0B17
muted
#7F7C85

Preview Lab

Preview with #5A57F0

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

Preview Lab → · Contrast checker → · Palette generator →

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