#5A56E4#5A56E4

#5A56E4 is a mid, highly saturated blue. Relative luminance 0.144; OKLCH L 54.2% C 0.209 H 278.1°. Best body text is #FFFFFF at 5.40:1 contrast (WCAG AA passes).

Color values

HEX#5A56E4
RGBrgb(90, 86, 228)
HSLhsl(242, 72%, 62%)
HSVhsv(242, 62%, 89%)
CMYKcmyk(60.5%, 62.3%, 0%, 10.6%)
CIE-LABlab(44.84, 42.61, -71.76)
CIE-LCHlch(44.84, 83.45, 300.70°)
OKLaboklab(54.21% 0.0294 -0.2066)
OKLCHoklch(54.21% 0.209 278.1)
XYZxyz(21.5433, 14.4290, 75.0336)
Luminance0.1443 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A56E4 #E0E456
analogous
#5699E4 #5A56E4 #A156E4
triadic
#5A56E4 #E45A56 #56E45A
tetradic
#5A56E4 #E45699 #E0E456 #56E4A1
square
#5A56E4 #E45699 #E0E456 #56E4A1
split-complementary
#5A56E4 #E4A156 #99E456
monochromatic
#1E1AA5 #2823DA #5A56E4 #8E8BEC #C1C0F5

Accessibility & contrast

On white

5.40
#5A56E4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.89
#5A56E4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A56E4
5.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A56E4#FFFFFF#000000##FFFFFF
##5A56E41.005.403.895.40
#FFFFFF5.401.0021.001.00
#0000003.8921.001.0021.00
##FFFFFF5.401.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: #5a56e4;
/* rgb */ color: rgb(90, 86, 228);
/* oklch */ color: oklch(54.2% 0.209 278.1);
Tailwind
colors: {
  custom: {
    50: '#9686ee',
    500: '#5a56e4',
    950: '#000000',
  },
}
SCSS
$custom: #5a56e4;
$custom-light: #9686ee;
$custom-dark: #000000;
JSON
{
  "hex": "#5a56e4",
  "rgb": {
    "r": 90,
    "g": 86,
    "b": 228
  },
  "hsl": {
    "h": 241.69,
    "s": 72.449,
    "l": 61.569
  },
  "oklch": {
    "l": 0.54206,
    "c": 0.20864,
    "h": 278.1
  },
  "luminance": 0.14431
}

Semantic roles & 50–950 ramp

primary
#5A56E4
secondary
#E4E5B0
accent
#D511CF
background
#F9F8FE
surface
#F2EFFD
border
#CCCAD5
text
#0F0B16
muted
#7E7C84

Preview Lab

Preview with #5A56E4

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

Preview Lab → · Contrast checker → · Palette generator →

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