#5A57DC#5A57DC

#5A57DC is a mid, vivid blue. Relative luminance 0.142; OKLCH L 53.7% C 0.197 H 278.4°. Best body text is #FFFFFF at 5.48:1 contrast (WCAG AA passes).

Color values

HEX#5A57DC
RGBrgb(90, 87, 220)
HSLhsl(241, 66%, 60%)
HSVhsv(241, 60%, 86%)
CMYKcmyk(59.1%, 60.5%, 0%, 13.7%)
CIE-LABlab(44.46, 39.46, -67.84)
CIE-LCHlch(44.46, 78.48, 300.18°)
OKLaboklab(53.73% 0.029 -0.195)
OKLCHoklch(53.73% 0.197 278.4)
XYZxyz(20.5388, 14.1559, 69.3463)
Luminance0.1416 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A57DC #D9DC57
analogous
#5797DC #5A57DC #9C57DC
triadic
#5A57DC #DC5A57 #57DC5A
tetradic
#5A57DC #DC5797 #D9DC57 #57DC9C
square
#5A57DC #DC5797 #D9DC57 #57DC9C
split-complementary
#5A57DC #DC9C57 #97DC57
monochromatic
#232099 #2E2ACB #5A57DC #8C8AE7 #BDBCF1

Accessibility & contrast

On white

5.48
#5A57DC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.83
#5A57DC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A57DC
5.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A57DC#FFFFFF#000000##FFFFFF
##5A57DC1.005.483.835.48
#FFFFFF5.481.0021.001.00
#0000003.8321.001.0021.00
##FFFFFF5.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006FE0
Deuteranopia (green-blind)
#0064D9
Tritanopia (blue-blind)
#007891
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #5a57dc;
/* rgb */ color: rgb(90, 87, 220);
/* oklch */ color: oklch(53.7% 0.197 278.4);
Tailwind
colors: {
  custom: {
    50: '#9587e8',
    500: '#5a57dc',
    950: '#000000',
  },
}
SCSS
$custom: #5a57dc;
$custom-light: #9587e8;
$custom-dark: #000000;
JSON
{
  "hex": "#5a57dc",
  "rgb": {
    "r": 90,
    "g": 87,
    "b": 220
  },
  "hsl": {
    "h": 241.353,
    "s": 65.517,
    "l": 60.196
  },
  "oklch": {
    "l": 0.53731,
    "c": 0.19719,
    "h": 278.4
  },
  "luminance": 0.14157
}

Semantic roles & 50–950 ramp

primary
#5A57DC
secondary
#E0E1AE
accent
#CD18C9
background
#F9F8FE
surface
#F2EFFD
border
#CCCAD5
text
#0E0B16
muted
#7E7C84

Preview Lab

Preview with #5A57DC

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

Preview Lab → · Contrast checker → · Palette generator →

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