#5B57E5#5B57E5

#5B57E5 is a mid, highly saturated blue. Relative luminance 0.147; OKLCH L 54.5% C 0.209 H 278.2°. Best body text is #FFFFFF at 5.33:1 contrast (WCAG AA passes).

Color values

HEX#5B57E5
RGBrgb(91, 87, 229)
HSLhsl(242, 73%, 62%)
HSVhsv(242, 62%, 90%)
CMYKcmyk(60.3%, 62%, 0%, 10.2%)
CIE-LABlab(45.22, 42.49, -71.71)
CIE-LCHlch(45.22, 83.35, 300.65°)
OKLaboklab(54.52% 0.0297 -0.2064)
OKLCHoklch(54.52% 0.209 278.2)
XYZxyz(21.8609, 14.6960, 75.7982)
Luminance0.1470 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B57E5 #E1E557
analogous
#579AE5 #5B57E5 #A257E5
triadic
#5B57E5 #E55B57 #57E55B
tetradic
#5B57E5 #E5579A #E1E557 #57E5A2
square
#5B57E5 #E5579A #E1E557 #57E5A2
split-complementary
#5B57E5 #E5A257 #9AE557
monochromatic
#1E1AA8 #2722DD #5B57E5 #8F8CED #C2C1F5

Accessibility & contrast

On white

5.33
#5B57E5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.94
#5B57E5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5B57E5
5.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B57E5#FFFFFF#000000##FFFFFF
##5B57E51.005.333.945.33
#FFFFFF5.331.0021.001.00
#0000003.9421.001.0021.00
##FFFFFF5.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0071EA
Deuteranopia (green-blind)
#0065E2
Tritanopia (blue-blind)
#007A96
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #5b57e5;
/* rgb */ color: rgb(91, 87, 229);
/* oklch */ color: oklch(54.5% 0.209 278.2);
Tailwind
colors: {
  custom: {
    50: '#9787ee',
    500: '#5b57e5',
    950: '#000000',
  },
}
SCSS
$custom: #5b57e5;
$custom-light: #9787ee;
$custom-dark: #000000;
JSON
{
  "hex": "#5b57e5",
  "rgb": {
    "r": 91,
    "g": 87,
    "b": 229
  },
  "hsl": {
    "h": 241.69,
    "s": 73.196,
    "l": 61.961
  },
  "oklch": {
    "l": 0.54521,
    "c": 0.20852,
    "h": 278.2
  },
  "luminance": 0.14698
}

Semantic roles & 50–950 ramp

primary
#5B57E5
secondary
#E5E6B2
accent
#D510D0
background
#FAF8FE
surface
#F3EFFD
border
#CDCAD5
text
#0F0B16
muted
#7F7C84

Preview Lab

Preview with #5B57E5

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

Preview Lab → · Contrast checker → · Palette generator →

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