#5A57EB#5A57EB

#5A57EB is a mid, highly saturated blue. Relative luminance 0.150; OKLCH L 54.9% C 0.216 H 277.5°. Best body text is #FFFFFF at 5.25:1 contrast (WCAG AA passes).

Color values

HEX#5A57EB
RGBrgb(90, 87, 235)
HSLhsl(241, 79%, 63%)
HSVhsv(241, 63%, 92%)
CMYKcmyk(61.7%, 63%, 0%, 7.8%)
CIE-LABlab(45.62, 44.25, -74.45)
CIE-LCHlch(45.62, 86.60, 300.72°)
OKLaboklab(54.94% 0.0281 -0.2145)
OKLCHoklch(54.94% 0.216 277.5)
XYZxyz(22.6152, 14.9864, 80.2821)
Luminance0.1499 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A57EB #E8EB57
analogous
#579EEB #5A57EB #A457EB
triadic
#5A57EB #EB5A57 #57EB5A
tetradic
#5A57EB #EB579E #E8EB57 #57EBA4
square
#5A57EB #EB579E #E8EB57 #57EBA4
split-complementary
#5A57EB #EBA457 #9EEB57
monochromatic
#1815B2 #2420E4 #5A57EB #908EF2 #C5C4F8

Accessibility & contrast

On white

5.25
#5A57EB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.00
#5A57EB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A57EB
5.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A57EB#FFFFFF#000000##FFFFFF
##5A57EB1.005.254.005.25
#FFFFFF5.251.0021.001.00
#0000004.0021.001.0021.00
##FFFFFF5.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0072F0
Deuteranopia (green-blind)
#0066E8
Tritanopia (blue-blind)
#007D99
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #5a57eb;
/* rgb */ color: rgb(90, 87, 235);
/* oklch */ color: oklch(54.9% 0.216 277.5);
Tailwind
colors: {
  custom: {
    50: '#9787f3',
    500: '#5a57eb',
    950: '#000000',
  },
}
SCSS
$custom: #5a57eb;
$custom-light: #9787f3;
$custom-dark: #000000;
JSON
{
  "hex": "#5a57eb",
  "rgb": {
    "r": 90,
    "g": 87,
    "b": 235
  },
  "hsl": {
    "h": 241.216,
    "s": 78.723,
    "l": 63.137
  },
  "oklch": {
    "l": 0.54942,
    "c": 0.21629,
    "h": 277.5
  },
  "luminance": 0.14988
}

Semantic roles & 50–950 ramp

primary
#5A57EB
secondary
#E8E9B4
accent
#DB0AD7
background
#FAF8FF
surface
#F3EFFE
border
#CDCAD6
text
#0F0B17
muted
#7F7C85

Preview Lab

Preview with #5A57EB

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

Preview Lab → · Contrast checker → · Palette generator →

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