#5B56E5#5B56E5

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

Color values

HEX#5B56E5
RGBrgb(91, 86, 229)
HSLhsl(242, 73%, 62%)
HSVhsv(242, 62%, 90%)
CMYKcmyk(60.3%, 62.4%, 0%, 10.2%)
CIE-LABlab(44.99, 43.08, -72.08)
CIE-LCHlch(44.99, 83.97, 300.87°)
OKLaboklab(54.36% 0.0305 -0.2075)
OKLCHoklch(54.36% 0.21 278.4)
XYZxyz(21.7805, 14.5352, 75.7714)
Luminance0.1454 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B56E5 #E0E556
analogous
#5699E5 #5B56E5 #A356E5
triadic
#5B56E5 #E55B56 #56E55B
tetradic
#5B56E5 #E55699 #E0E556 #56E5A3
square
#5B56E5 #E55699 #E0E556 #56E5A3
split-complementary
#5B56E5 #E5A356 #99E556
monochromatic
#1F1AA7 #2822DC #5B56E5 #8E8BED #C2C0F5

Accessibility & contrast

On white

5.37
#5B56E5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.91
#5B56E5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5B56E5
5.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B56E5#FFFFFF#000000##FFFFFF
##5B56E51.005.373.915.37
#FFFFFF5.371.0021.001.00
#0000003.9121.001.0021.00
##FFFFFF5.371.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5b56e5;
/* rgb */ color: rgb(91, 86, 229);
/* oklch */ color: oklch(54.4% 0.210 278.4);
Tailwind
colors: {
  custom: {
    50: '#9786ee',
    500: '#5b56e5',
    950: '#000000',
  },
}
SCSS
$custom: #5b56e5;
$custom-light: #9786ee;
$custom-dark: #000000;
JSON
{
  "hex": "#5b56e5",
  "rgb": {
    "r": 91,
    "g": 86,
    "b": 229
  },
  "hsl": {
    "h": 242.098,
    "s": 73.333,
    "l": 61.765
  },
  "oklch": {
    "l": 0.54357,
    "c": 0.2097,
    "h": 278.4
  },
  "luminance": 0.14537
}

Semantic roles & 50–950 ramp

primary
#5B56E5
secondary
#E4E6B1
accent
#D510CF
background
#FAF8FE
surface
#F3EFFD
border
#CDCAD5
text
#0F0B17
muted
#7F7C85

Preview Lab

Preview with #5B56E5

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

Preview Lab → · Contrast checker → · Palette generator →

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