#5B57DC#5B57DC

#5B57DC is a mid, vivid blue. Relative luminance 0.142; OKLCH L 53.8% C 0.197 H 278.8°. Best body text is #FFFFFF at 5.47:1 contrast (WCAG AA passes).

Color values

HEX#5B57DC
RGBrgb(91, 87, 220)
HSLhsl(242, 66%, 60%)
HSVhsv(242, 60%, 86%)
CMYKcmyk(58.6%, 60.5%, 0%, 13.7%)
CIE-LABlab(44.53, 39.62, -67.72)
CIE-LCHlch(44.53, 78.46, 300.33°)
OKLaboklab(53.8% 0.0301 -0.1947)
OKLCHoklch(53.8% 0.197 278.8)
XYZxyz(20.6367, 14.2064, 69.3509)
Luminance0.1421 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B57DC #D8DC57
analogous
#5795DC #5B57DC #9E57DC
triadic
#5B57DC #DC5B57 #57DC5B
tetradic
#5B57DC #DC5795 #D8DC57 #57DC9E
square
#5B57DC #DC5795 #D8DC57 #57DC9E
split-complementary
#5B57DC #DC9E57 #95DC57
monochromatic
#232099 #2F2ACB #5B57DC #8C8AE7 #BEBCF1

Accessibility & contrast

On white

5.47
#5B57DC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.84
#5B57DC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5B57DC
5.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B57DC#FFFFFF#000000##FFFFFF
##5B57DC1.005.473.845.47
#FFFFFF5.471.0021.001.00
#0000003.8421.001.0021.00
##FFFFFF5.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006FE0
Deuteranopia (green-blind)
#0064D9
Tritanopia (blue-blind)
#007891
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #5b57dc;
/* rgb */ color: rgb(91, 87, 220);
/* oklch */ color: oklch(53.8% 0.197 278.8);
Tailwind
colors: {
  custom: {
    50: '#9587e8',
    500: '#5b57dc',
    950: '#000000',
  },
}
SCSS
$custom: #5b57dc;
$custom-light: #9587e8;
$custom-dark: #000000;
JSON
{
  "hex": "#5b57dc",
  "rgb": {
    "r": 91,
    "g": 87,
    "b": 220
  },
  "hsl": {
    "h": 241.805,
    "s": 65.517,
    "l": 60.196
  },
  "oklch": {
    "l": 0.53802,
    "c": 0.19699,
    "h": 278.8
  },
  "luminance": 0.14208
}

Semantic roles & 50–950 ramp

primary
#5B57DC
secondary
#DFE1AE
accent
#CD18C8
background
#F9F8FE
surface
#F2EFFD
border
#CCCAD5
text
#0E0B16
muted
#7E7C84

Preview Lab

Preview with #5B57DC

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

Preview Lab → · Contrast checker → · Palette generator →

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