#5B56E4#5B56E4

#5B56E4 is a mid, highly saturated blue. Relative luminance 0.145; OKLCH L 54.3% C 0.208 H 278.4°. Best body text is #FFFFFF at 5.39:1 contrast (WCAG AA passes).

Color values

HEX#5B56E4
RGBrgb(91, 86, 228)
HSLhsl(242, 72%, 62%)
HSVhsv(242, 62%, 89%)
CMYKcmyk(60.1%, 62.3%, 0%, 10.6%)
CIE-LABlab(44.91, 42.76, -71.64)
CIE-LCHlch(44.91, 83.43, 300.83°)
OKLaboklab(54.28% 0.0306 -0.2062)
OKLCHoklch(54.28% 0.208 278.4)
XYZxyz(21.6413, 14.4795, 75.0382)
Luminance0.1448 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B56E4 #DFE456
analogous
#5698E4 #5B56E4 #A256E4
triadic
#5B56E4 #E45B56 #56E45B
tetradic
#5B56E4 #E45698 #DFE456 #56E4A2
square
#5B56E4 #E45698 #DFE456 #56E4A2
split-complementary
#5B56E4 #E4A256 #98E456
monochromatic
#1F1AA5 #2923DA #5B56E4 #8E8BEC #C1C0F5

Accessibility & contrast

On white

5.39
#5B56E4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.90
#5B56E4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5B56E4
5.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B56E4#FFFFFF#000000##FFFFFF
##5B56E41.005.393.905.39
#FFFFFF5.391.0021.001.00
#0000003.9021.001.0021.00
##FFFFFF5.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0070E9
Deuteranopia (green-blind)
#0064E1
Tritanopia (blue-blind)
#007A95
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #5b56e4;
/* rgb */ color: rgb(91, 86, 228);
/* oklch */ color: oklch(54.3% 0.208 278.4);
Tailwind
colors: {
  custom: {
    50: '#9786ee',
    500: '#5b56e4',
    950: '#000000',
  },
}
SCSS
$custom: #5b56e4;
$custom-light: #9786ee;
$custom-dark: #000000;
JSON
{
  "hex": "#5b56e4",
  "rgb": {
    "r": 91,
    "g": 86,
    "b": 228
  },
  "hsl": {
    "h": 242.113,
    "s": 72.449,
    "l": 61.569
  },
  "oklch": {
    "l": 0.54276,
    "c": 0.20843,
    "h": 278.4
  },
  "luminance": 0.14481
}

Semantic roles & 50–950 ramp

primary
#5B56E4
secondary
#E3E5B0
accent
#D511CE
background
#FAF8FE
surface
#F3EFFD
border
#CDCAD5
text
#0F0B16
muted
#7F7C84

Preview Lab

Preview with #5B56E4

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

Preview Lab → · Contrast checker → · Palette generator →

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