#5B57E8#5B57E8

#5B57E8 is a mid, highly saturated blue. Relative luminance 0.149; OKLCH L 54.8% C 0.212 H 278.0°. Best body text is #FFFFFF at 5.29:1 contrast (WCAG AA passes).

Color values

HEX#5B57E8
RGBrgb(91, 87, 232)
HSLhsl(242, 76%, 63%)
HSVhsv(242, 63%, 91%)
CMYKcmyk(60.8%, 62.5%, 0%, 9%)
CIE-LABlab(45.45, 43.44, -73.03)
CIE-LCHlch(45.45, 84.97, 300.75°)
OKLaboklab(54.77% 0.0295 -0.2103)
OKLCHoklch(54.77% 0.212 278)
XYZxyz(22.2834, 14.8650, 78.0233)
Luminance0.1487 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B57E8 #E4E857
analogous
#579CE8 #5B57E8 #A357E8
triadic
#5B57E8 #E85B57 #57E85B
tetradic
#5B57E8 #E8579C #E4E857 #57E8A3
square
#5B57E8 #E8579C #E4E857 #57E8A3
split-complementary
#5B57E8 #E8A357 #9CE857
monochromatic
#1C18AD #2621E1 #5B57E8 #908DEF #C4C3F7

Accessibility & contrast

On white

5.29
#5B57E8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.97
#5B57E8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5B57E8
5.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B57E8#FFFFFF#000000##FFFFFF
##5B57E81.005.293.975.29
#FFFFFF5.291.0021.001.00
#0000003.9721.001.0021.00
##FFFFFF5.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0072ED
Deuteranopia (green-blind)
#0066E5
Tritanopia (blue-blind)
#007B97
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #5b57e8;
/* rgb */ color: rgb(91, 87, 232);
/* oklch */ color: oklch(54.8% 0.212 278.0);
Tailwind
colors: {
  custom: {
    50: '#9787f0',
    500: '#5b57e8',
    950: '#000000',
  },
}
SCSS
$custom: #5b57e8;
$custom-light: #9787f0;
$custom-dark: #000000;
JSON
{
  "hex": "#5b57e8",
  "rgb": {
    "r": 91,
    "g": 87,
    "b": 232
  },
  "hsl": {
    "h": 241.655,
    "s": 75.916,
    "l": 62.549
  },
  "oklch": {
    "l": 0.54765,
    "c": 0.21231,
    "h": 278
  },
  "luminance": 0.14867
}

Semantic roles & 50–950 ramp

primary
#5B57E8
secondary
#E6E8B3
accent
#D80DD3
background
#FAF8FE
surface
#F3EFFD
border
#CDCAD5
text
#0F0B17
muted
#7F7C85

Preview Lab

Preview with #5B57E8

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

Preview Lab → · Contrast checker → · Palette generator →

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