#5B57EC#5B57EC

#5B57EC is a mid, highly saturated blue. Relative luminance 0.151; OKLCH L 55.1% C 0.217 H 277.7°. Best body text is #FFFFFF at 5.22:1 contrast (WCAG AA passes).

Color values

HEX#5B57EC
RGBrgb(91, 87, 236)
HSLhsl(242, 80%, 63%)
HSVhsv(242, 63%, 93%)
CMYKcmyk(61.4%, 63.1%, 0%, 7.5%)
CIE-LABlab(45.76, 44.71, -74.77)
CIE-LCHlch(45.76, 87.12, 300.88°)
OKLaboklab(55.09% 0.0292 -0.2154)
OKLCHoklch(55.09% 0.217 277.7)
XYZxyz(22.8580, 15.0949, 81.0497)
Luminance0.1510 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B57EC #E8EC57
analogous
#579DEC #5B57EC #A557EC
triadic
#5B57EC #EC5B57 #57EC5B
tetradic
#5B57EC #EC579D #E8EC57 #57ECA5
square
#5B57EC #EC579D #E8EC57 #57ECA5
split-complementary
#5B57EC #ECA557 #9DEC57
monochromatic
#1914B4 #2520E6 #5B57EC #918EF2 #C6C5F8

Accessibility & contrast

On white

5.22
#5B57EC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.02
#5B57EC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5B57EC
5.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B57EC#FFFFFF#000000##FFFFFF
##5B57EC1.005.224.025.22
#FFFFFF5.221.0021.001.00
#0000004.0221.001.0021.00
##FFFFFF5.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0073F1
Deuteranopia (green-blind)
#0066E9
Tritanopia (blue-blind)
#007D9A
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #5b57ec;
/* rgb */ color: rgb(91, 87, 236);
/* oklch */ color: oklch(55.1% 0.217 277.7);
Tailwind
colors: {
  custom: {
    50: '#9887f3',
    500: '#5b57ec',
    950: '#000000',
  },
}
SCSS
$custom: #5b57ec;
$custom-light: #9887f3;
$custom-dark: #000000;
JSON
{
  "hex": "#5b57ec",
  "rgb": {
    "r": 91,
    "g": 87,
    "b": 236
  },
  "hsl": {
    "h": 241.611,
    "s": 79.679,
    "l": 63.333
  },
  "oklch": {
    "l": 0.55093,
    "c": 0.21734,
    "h": 277.7
  },
  "luminance": 0.15097
}

Semantic roles & 50–950 ramp

primary
#5B57EC
secondary
#E9EAB5
accent
#DC0AD6
background
#FAF8FF
surface
#F4EFFE
border
#CECAD6
text
#0F0B17
muted
#7F7C85

Preview Lab

Preview with #5B57EC

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

Preview Lab → · Contrast checker → · Palette generator →

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