#5A57FE#5A57FE

#5A57FE is a mid, highly saturated blue. Relative luminance 0.161; OKLCH L 56.5% C 0.240 H 276.3°. Best body text is #FFFFFF at 4.97:1 contrast (WCAG AA passes).

Color values

HEX#5A57FE
RGBrgb(90, 87, 254)
HSLhsl(241, 99%, 67%)
HSVhsv(241, 66%, 100%)
CMYKcmyk(64.6%, 65.7%, 0%, 0.4%)
CIE-LABlab(47.16, 50.26, -82.56)
CIE-LCHlch(47.16, 96.65, 301.33°)
OKLaboklab(56.55% 0.0263 -0.2382)
OKLCHoklch(56.55% 0.24 276.3)
XYZxyz(25.5082, 16.1436, 95.5185)
Luminance0.1615 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A57FE #FBFE57
analogous
#57A8FE #5A57FE #AE57FE
triadic
#5A57FE #FE5A57 #57FE5A
tetradic
#5A57FE #FE57A8 #FBFE57 #57FEAE
square
#5A57FE #FE57A8 #FBFE57 #57FEAE
split-complementary
#5A57FE #FEAE57 #A8FE57
monochromatic
#0501D9 #1E1AFE #5A57FE #9694FE #D2D1FF

Accessibility & contrast

On white

4.97
#5A57FE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.23
#5A57FE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A57FE
4.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A57FE#FFFFFF#000000##FFFFFF
##5A57FE1.004.974.234.97
#FFFFFF4.971.0021.001.00
#0000004.2321.001.0021.00
##FFFFFF4.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0077FF
Deuteranopia (green-blind)
#0068FB
Tritanopia (blue-blind)
#0083A3
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #5a57fe;
/* rgb */ color: rgb(90, 87, 254);
/* oklch */ color: oklch(56.5% 0.240 276.3);
Tailwind
colors: {
  custom: {
    50: '#9b87ff',
    500: '#5a57fe',
    950: '#000000',
  },
}
SCSS
$custom: #5a57fe;
$custom-light: #9b87ff;
$custom-dark: #000000;
JSON
{
  "hex": "#5a57fe",
  "rgb": {
    "r": 90,
    "g": 87,
    "b": 254
  },
  "hsl": {
    "h": 241.078,
    "s": 98.817,
    "l": 66.863
  },
  "oklch": {
    "l": 0.56545,
    "c": 0.23968,
    "h": 276.3
  },
  "luminance": 0.16146
}

Semantic roles & 50–950 ramp

primary
#5A57FE
secondary
#F2F3BE
accent
#E600E1
background
#FAF8FF
surface
#F4F0FF
border
#CECBD7
text
#100B18
muted
#7F7C86

Preview Lab

Preview with #5A57FE

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

Preview Lab → · Contrast checker → · Palette generator →

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