#5B57EF#5B57EF

#5B57EF is a mid, highly saturated blue. Relative luminance 0.153; OKLCH L 55.3% C 0.221 H 277.5°. Best body text is #FFFFFF at 5.18:1 contrast (WCAG AA passes).

Color values

HEX#5B57EF
RGBrgb(91, 87, 239)
HSLhsl(242, 83%, 64%)
HSVhsv(242, 64%, 94%)
CMYKcmyk(61.9%, 63.6%, 0%, 6.3%)
CIE-LABlab(46.00, 45.66, -76.06)
CIE-LCHlch(46.00, 88.72, 300.98°)
OKLaboklab(55.34% 0.0289 -0.2192)
OKLCHoklch(55.34% 0.221 277.5)
XYZxyz(23.2975, 15.2707, 83.3644)
Luminance0.1527 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B57EF #EBEF57
analogous
#579FEF #5B57EF #A757EF
triadic
#5B57EF #EF5B57 #57EF5B
tetradic
#5B57EF #EF579F #EBEF57 #57EFA7
square
#5B57EF #EF579F #EBEF57 #57EFA7
split-complementary
#5B57EF #EFA757 #9FEF57
monochromatic
#1612BA #241FEA #5B57EF #928FF4 #C8C7FA

Accessibility & contrast

On white

5.18
#5B57EF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.05
#5B57EF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5B57EF
5.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B57EF#FFFFFF#000000##FFFFFF
##5B57EF1.005.184.055.18
#FFFFFF5.181.0021.001.00
#0000004.0521.001.0021.00
##FFFFFF5.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0073F4
Deuteranopia (green-blind)
#0067EC
Tritanopia (blue-blind)
#007E9B
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #5b57ef;
/* rgb */ color: rgb(91, 87, 239);
/* oklch */ color: oklch(55.3% 0.221 277.5);
Tailwind
colors: {
  custom: {
    50: '#9887f5',
    500: '#5b57ef',
    950: '#000000',
  },
}
SCSS
$custom: #5b57ef;
$custom-light: #9887f5;
$custom-dark: #000000;
JSON
{
  "hex": "#5b57ef",
  "rgb": {
    "r": 91,
    "g": 87,
    "b": 239
  },
  "hsl": {
    "h": 241.579,
    "s": 82.609,
    "l": 63.922
  },
  "oklch": {
    "l": 0.55341,
    "c": 0.22108,
    "h": 277.5
  },
  "luminance": 0.15273
}

Semantic roles & 50–950 ramp

primary
#5B57EF
secondary
#EAECB6
accent
#DF06D9
background
#FAF8FF
surface
#F4EFFF
border
#CECAD7
text
#0F0B17
muted
#7F7C85

Preview Lab

Preview with #5B57EF

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

Preview Lab → · Contrast checker → · Palette generator →

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