#5B57C8#5B57C8

#5B57C8 is a mid, vivid blue. Relative luminance 0.132; OKLCH L 52.3% C 0.171 H 280.3°. Best body text is #FFFFFF at 5.77:1 contrast (WCAG AA passes).

Color values

HEX#5B57C8
RGBrgb(91, 87, 200)
HSLhsl(242, 51%, 56%)
HSVhsv(242, 57%, 78%)
CMYKcmyk(54.5%, 56.5%, 0%, 21.6%)
CIE-LABlab(43.08, 33.26, -58.60)
CIE-LCHlch(43.08, 67.38, 299.58°)
OKLaboklab(52.27% 0.0305 -0.1678)
OKLCHoklch(52.27% 0.171 280.3)
XYZxyz(18.1447, 13.2095, 56.2260)
Luminance0.1321 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B57C8 #C4C857
analogous
#578CC8 #5B57C8 #9457C8
triadic
#5B57C8 #C85B57 #57C85B
tetradic
#5B57C8 #C8578C #C4C857 #57C894
square
#5B57C8 #C8578C #C4C857 #57C894
split-complementary
#5B57C8 #C89457 #8CC857
monochromatic
#2C297C #3C38AA #5B57C8 #8885D7 #B5B3E6

Accessibility & contrast

On white

5.77
#5B57C8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.64
#5B57C8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5B57C8
5.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B57C8#FFFFFF#000000##FFFFFF
##5B57C81.005.773.645.77
#FFFFFF5.771.0021.001.00
#0000003.6421.001.0021.00
##FFFFFF5.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006ACC
Deuteranopia (green-blind)
#0061C6
Tritanopia (blue-blind)
#287187
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #5b57c8;
/* rgb */ color: rgb(91, 87, 200);
/* oklch */ color: oklch(52.3% 0.171 280.3);
Tailwind
colors: {
  custom: {
    50: '#9286d9',
    500: '#5b57c8',
    950: '#000000',
  },
}
SCSS
$custom: #5b57c8;
$custom-light: #9286d9;
$custom-dark: #000000;
JSON
{
  "hex": "#5b57c8",
  "rgb": {
    "r": 91,
    "g": 87,
    "b": 200
  },
  "hsl": {
    "h": 242.124,
    "s": 50.673,
    "l": 56.275
  },
  "oklch": {
    "l": 0.52274,
    "c": 0.17059,
    "h": 280.3
  },
  "luminance": 0.13211
}

Semantic roles & 50–950 ramp

primary
#5B57C8
secondary
#D3D5A6
accent
#DA4ED5
background
#F9F8FD
surface
#F2EFFB
border
#CCCAD4
text
#0E0B15
muted
#7E7C83

Preview Lab

Preview with #5B57C8

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

Preview Lab → · Contrast checker → · Palette generator →

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