#5B57E7#5B57E7

#5B57E7 is a mid, highly saturated blue. Relative luminance 0.148; OKLCH L 54.7% C 0.211 H 278.0°. Best body text is #FFFFFF at 5.30:1 contrast (WCAG AA passes).

Color values

HEX#5B57E7
RGBrgb(91, 87, 231)
HSLhsl(242, 75%, 62%)
HSVhsv(242, 62%, 91%)
CMYKcmyk(60.6%, 62.3%, 0%, 9.4%)
CIE-LABlab(45.37, 43.12, -72.59)
CIE-LCHlch(45.37, 84.43, 300.71°)
OKLaboklab(54.68% 0.0295 -0.209)
OKLCHoklch(54.68% 0.211 278)
XYZxyz(22.1418, 14.8084, 77.2773)
Luminance0.1481 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B57E7 #E3E757
analogous
#579BE7 #5B57E7 #A357E7
triadic
#5B57E7 #E75B57 #57E75B
tetradic
#5B57E7 #E7579B #E3E757 #57E7A3
square
#5B57E7 #E7579B #E3E757 #57E7A3
split-complementary
#5B57E7 #E7A357 #9BE757
monochromatic
#1D18AB #2721DF #5B57E7 #8F8DEF #C4C2F6

Accessibility & contrast

On white

5.30
#5B57E7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.96
#5B57E7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5B57E7
5.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B57E7#FFFFFF#000000##FFFFFF
##5B57E71.005.303.965.30
#FFFFFF5.301.0021.001.00
#0000003.9621.001.0021.00
##FFFFFF5.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0071EC
Deuteranopia (green-blind)
#0065E4
Tritanopia (blue-blind)
#007B97
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #5b57e7;
/* rgb */ color: rgb(91, 87, 231);
/* oklch */ color: oklch(54.7% 0.211 278.0);
Tailwind
colors: {
  custom: {
    50: '#9787f0',
    500: '#5b57e7',
    950: '#000000',
  },
}
SCSS
$custom: #5b57e7;
$custom-light: #9787f0;
$custom-dark: #000000;
JSON
{
  "hex": "#5b57e7",
  "rgb": {
    "r": 91,
    "g": 87,
    "b": 231
  },
  "hsl": {
    "h": 241.667,
    "s": 75,
    "l": 62.353
  },
  "oklch": {
    "l": 0.54683,
    "c": 0.21104,
    "h": 278
  },
  "luminance": 0.1481
}

Semantic roles & 50–950 ramp

primary
#5B57E7
secondary
#E6E7B3
accent
#D70ED2
background
#FAF8FE
surface
#F3EFFD
border
#CDCAD5
text
#0F0B17
muted
#7F7C85

Preview Lab

Preview with #5B57E7

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

Preview Lab → · Contrast checker → · Palette generator →

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