#5A56EA#5A56EA

#5A56EA is a mid, highly saturated blue. Relative luminance 0.148; OKLCH L 54.7% C 0.216 H 277.7°. Best body text is #FFFFFF at 5.31:1 contrast (WCAG AA passes).

Color values

HEX#5A56EA
RGBrgb(90, 86, 234)
HSLhsl(242, 78%, 63%)
HSVhsv(242, 63%, 92%)
CMYKcmyk(61.5%, 63.2%, 0%, 8.2%)
CIE-LABlab(45.31, 44.51, -74.38)
CIE-LCHlch(45.31, 86.68, 300.90°)
OKLaboklab(54.7% 0.0289 -0.2142)
OKLCHoklch(54.7% 0.216 277.7)
XYZxyz(22.3907, 14.7680, 79.4965)
Luminance0.1477 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A56EA #E6EA56
analogous
#569CEA #5A56EA #A456EA
triadic
#5A56EA #EA5A56 #56EA5A
tetradic
#5A56EA #EA569C #E6EA56 #56EAA4
square
#5A56EA #EA569C #E6EA56 #56EAA4
split-complementary
#5A56EA #EAA456 #9CEA56
monochromatic
#1A16B0 #2520E3 #5A56EA #8F8CF1 #C4C3F8

Accessibility & contrast

On white

5.31
#5A56EA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.95
#5A56EA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A56EA
5.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A56EA#FFFFFF#000000##FFFFFF
##5A56EA1.005.313.955.31
#FFFFFF5.311.0021.001.00
#0000003.9521.001.0021.00
##FFFFFF5.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0071EF
Deuteranopia (green-blind)
#0065E7
Tritanopia (blue-blind)
#007C98
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #5a56ea;
/* rgb */ color: rgb(90, 86, 234);
/* oklch */ color: oklch(54.7% 0.216 277.7);
Tailwind
colors: {
  custom: {
    50: '#9786f2',
    500: '#5a56ea',
    950: '#000000',
  },
}
SCSS
$custom: #5a56ea;
$custom-light: #9786f2;
$custom-dark: #000000;
JSON
{
  "hex": "#5a56ea",
  "rgb": {
    "r": 90,
    "g": 86,
    "b": 234
  },
  "hsl": {
    "h": 241.622,
    "s": 77.895,
    "l": 62.745
  },
  "oklch": {
    "l": 0.54698,
    "c": 0.2162,
    "h": 277.7
  },
  "luminance": 0.1477
}

Semantic roles & 50–950 ramp

primary
#5A56EA
secondary
#E7E9B3
accent
#DA0BD5
background
#FAF8FE
surface
#F3EFFD
border
#CDCAD5
text
#0F0B17
muted
#7F7C85

Preview Lab

Preview with #5A56EA

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

Preview Lab → · Contrast checker → · Palette generator →

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