#5A57F5#5A57F5

#5A57F5 is a mid, highly saturated blue. Relative luminance 0.156; OKLCH L 55.8% C 0.229 H 276.8°. Best body text is #FFFFFF at 5.10:1 contrast (WCAG AA passes).

Color values

HEX#5A57F5
RGBrgb(90, 87, 245)
HSLhsl(241, 89%, 65%)
HSVhsv(241, 64%, 96%)
CMYKcmyk(63.3%, 64.5%, 0%, 3.9%)
CIE-LABlab(46.42, 47.42, -78.75)
CIE-LCHlch(46.42, 91.93, 301.06°)
OKLaboklab(55.78% 0.0272 -0.2271)
OKLCHoklch(55.78% 0.229 276.8)
XYZxyz(24.1007, 15.5806, 88.1058)
Luminance0.1558 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A57F5 #F2F557
analogous
#57A3F5 #5A57F5 #A957F5
triadic
#5A57F5 #F55A57 #57F55A
tetradic
#5A57F5 #F557A3 #F2F557 #57F5A9
square
#5A57F5 #F557A3 #F2F557 #57F5A9
split-complementary
#5A57F5 #F5A957 #A3F557
monochromatic
#0F0CC6 #211DF2 #5A57F5 #9391F8 #CBCBFC

Accessibility & contrast

On white

5.10
#5A57F5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.12
#5A57F5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A57F5
5.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A57F5#FFFFFF#000000##FFFFFF
##5A57F51.005.104.125.10
#FFFFFF5.101.0021.001.00
#0000004.1221.001.0021.00
##FFFFFF5.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0075FA
Deuteranopia (green-blind)
#0067F2
Tritanopia (blue-blind)
#00809E
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #5a57f5;
/* rgb */ color: rgb(90, 87, 245);
/* oklch */ color: oklch(55.8% 0.229 276.8);
Tailwind
colors: {
  custom: {
    50: '#9987fa',
    500: '#5a57f5',
    950: '#000000',
  },
}
SCSS
$custom: #5a57f5;
$custom-light: #9987fa;
$custom-dark: #000000;
JSON
{
  "hex": "#5a57f5",
  "rgb": {
    "r": 90,
    "g": 87,
    "b": 245
  },
  "hsl": {
    "h": 241.139,
    "s": 88.764,
    "l": 65.098
  },
  "oklch": {
    "l": 0.55777,
    "c": 0.2287,
    "h": 276.8
  },
  "luminance": 0.15583
}

Semantic roles & 50–950 ramp

primary
#5A57F5
secondary
#EEEFB9
accent
#E500E1
background
#FAF8FF
surface
#F4EFFF
border
#CECAD7
text
#0F0B17
muted
#7F7C85

Preview Lab

Preview with #5A57F5

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

Preview Lab → · Contrast checker → · Palette generator →

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