#5B56E8#5B56E8

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

Color values

HEX#5B56E8
RGBrgb(91, 86, 232)
HSLhsl(242, 76%, 62%)
HSVhsv(242, 63%, 91%)
CMYKcmyk(60.8%, 62.9%, 0%, 9%)
CIE-LABlab(45.23, 44.03, -73.39)
CIE-LCHlch(45.23, 85.58, 300.96°)
OKLaboklab(54.6% 0.0303 -0.2113)
OKLCHoklch(54.6% 0.213 278.2)
XYZxyz(22.2030, 14.7042, 77.9965)
Luminance0.1471 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B56E8 #E3E856
analogous
#569AE8 #5B56E8 #A456E8
triadic
#5B56E8 #E85B56 #56E85B
tetradic
#5B56E8 #E8569A #E3E856 #56E8A4
square
#5B56E8 #E8569A #E3E856 #56E8A4
split-complementary
#5B56E8 #E8A456 #9AE856
monochromatic
#1D17AC #2720E1 #5B56E8 #8F8CEF #C4C2F7

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##5B56E8#FFFFFF#000000##FFFFFF
##5B56E81.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)
#0071ED
Deuteranopia (green-blind)
#0065E5
Tritanopia (blue-blind)
#007B97
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #5b56e8;
/* rgb */ color: rgb(91, 86, 232);
/* oklch */ color: oklch(54.6% 0.213 278.2);
Tailwind
colors: {
  custom: {
    50: '#9786f0',
    500: '#5b56e8',
    950: '#000000',
  },
}
SCSS
$custom: #5b56e8;
$custom-light: #9786f0;
$custom-dark: #000000;
JSON
{
  "hex": "#5b56e8",
  "rgb": {
    "r": 91,
    "g": 86,
    "b": 232
  },
  "hsl": {
    "h": 242.055,
    "s": 76.042,
    "l": 62.353
  },
  "oklch": {
    "l": 0.54602,
    "c": 0.21349,
    "h": 278.2
  },
  "luminance": 0.14706
}

Semantic roles & 50–950 ramp

primary
#5B56E8
secondary
#E6E8B2
accent
#D80DD1
background
#FAF8FE
surface
#F3EFFD
border
#CDCAD5
text
#0F0B17
muted
#7F7C85

Preview Lab

Preview with #5B56E8

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

Preview Lab → · Contrast checker → · Palette generator →

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