#5A56E8#5A56E8

#5A56E8 is a mid, highly saturated blue. Relative luminance 0.147; OKLCH L 54.5% C 0.214 H 277.8°. Best body text is #FFFFFF at 5.34:1 contrast (WCAG AA passes).

Color values

HEX#5A56E8
RGBrgb(90, 86, 232)
HSLhsl(242, 76%, 62%)
HSVhsv(242, 63%, 91%)
CMYKcmyk(61.2%, 62.9%, 0%, 9%)
CIE-LABlab(45.16, 43.88, -73.51)
CIE-LCHlch(45.16, 85.61, 300.83°)
OKLaboklab(54.53% 0.0291 -0.2117)
OKLCHoklch(54.53% 0.214 277.8)
XYZxyz(22.1050, 14.6537, 77.9919)
Luminance0.1466 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A56E8 #E4E856
analogous
#569BE8 #5A56E8 #A356E8
triadic
#5A56E8 #E85A56 #56E85A
tetradic
#5A56E8 #E8569B #E4E856 #56E8A3
square
#5A56E8 #E8569B #E4E856 #56E8A3
split-complementary
#5A56E8 #E8A356 #9BE856
monochromatic
#1C17AC #2520E1 #5A56E8 #8F8CEF #C3C2F7

Accessibility & contrast

On white

5.34
#5A56E8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.93
#5A56E8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A56E8
5.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A56E8#FFFFFF#000000##FFFFFF
##5A56E81.005.343.935.34
#FFFFFF5.341.0021.001.00
#0000003.9321.001.0021.00
##FFFFFF5.341.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: #5a56e8;
/* rgb */ color: rgb(90, 86, 232);
/* oklch */ color: oklch(54.5% 0.214 277.8);
Tailwind
colors: {
  custom: {
    50: '#9786f0',
    500: '#5a56e8',
    950: '#000000',
  },
}
SCSS
$custom: #5a56e8;
$custom-light: #9786f0;
$custom-dark: #000000;
JSON
{
  "hex": "#5a56e8",
  "rgb": {
    "r": 90,
    "g": 86,
    "b": 232
  },
  "hsl": {
    "h": 241.644,
    "s": 76.042,
    "l": 62.353
  },
  "oklch": {
    "l": 0.54533,
    "c": 0.21369,
    "h": 277.8
  },
  "luminance": 0.14655
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5A56E8

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

Preview Lab → · Contrast checker → · Palette generator →

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