#5A56EC#5A56EC

#5A56EC is a mid, highly saturated blue. Relative luminance 0.149; OKLCH L 54.9% C 0.219 H 277.6°. Best body text is #FFFFFF at 5.28:1 contrast (WCAG AA passes).

Color values

HEX#5A56EC
RGBrgb(90, 86, 236)
HSLhsl(242, 80%, 63%)
HSVhsv(242, 64%, 93%)
CMYKcmyk(61.9%, 63.6%, 0%, 7.5%)
CIE-LABlab(45.47, 45.15, -75.24)
CIE-LCHlch(45.47, 87.75, 300.97°)
OKLaboklab(54.86% 0.0288 -0.2168)
OKLCHoklch(54.86% 0.219 277.6)
XYZxyz(22.6797, 14.8836, 81.0183)
Luminance0.1489 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A56EC #E8EC56
analogous
#569DEC #5A56EC #A556EC
triadic
#5A56EC #EC5A56 #56EC5A
tetradic
#5A56EC #EC569D #E8EC56 #56ECA5
square
#5A56EC #EC569D #E8EC56 #56ECA5
split-complementary
#5A56EC #ECA556 #9DEC56
monochromatic
#1814B3 #241FE6 #5A56EC #908DF2 #C5C4F8

Accessibility & contrast

On white

5.28
#5A56EC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.98
#5A56EC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A56EC
5.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A56EC#FFFFFF#000000##FFFFFF
##5A56EC1.005.283.985.28
#FFFFFF5.281.0021.001.00
#0000003.9821.001.0021.00
##FFFFFF5.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0072F1
Deuteranopia (green-blind)
#0065E9
Tritanopia (blue-blind)
#007C99
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #5a56ec;
/* rgb */ color: rgb(90, 86, 236);
/* oklch */ color: oklch(54.9% 0.219 277.6);
Tailwind
colors: {
  custom: {
    50: '#9886f3',
    500: '#5a56ec',
    950: '#000000',
  },
}
SCSS
$custom: #5a56ec;
$custom-light: #9886f3;
$custom-dark: #000000;
JSON
{
  "hex": "#5a56ec",
  "rgb": {
    "r": 90,
    "g": 86,
    "b": 236
  },
  "hsl": {
    "h": 241.6,
    "s": 79.787,
    "l": 63.137
  },
  "oklch": {
    "l": 0.54864,
    "c": 0.2187,
    "h": 277.6
  },
  "luminance": 0.14885
}

Semantic roles & 50–950 ramp

primary
#5A56EC
secondary
#E8EAB4
accent
#DC09D6
background
#FAF8FF
surface
#F4EFFE
border
#CECAD6
text
#0F0B17
muted
#7F7C85

Preview Lab

Preview with #5A56EC

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

Preview Lab → · Contrast checker → · Palette generator →

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