#5A56EF#5A56EF

#5A56EF is a mid, highly saturated blue. Relative luminance 0.151; OKLCH L 55.1% C 0.222 H 277.4°. Best body text is #FFFFFF at 5.23:1 contrast (WCAG AA passes).

Color values

HEX#5A56EF
RGBrgb(90, 86, 239)
HSLhsl(242, 83%, 64%)
HSVhsv(242, 64%, 94%)
CMYKcmyk(62.3%, 64%, 0%, 6.3%)
CIE-LABlab(45.72, 46.10, -76.54)
CIE-LCHlch(45.72, 89.35, 301.06°)
OKLaboklab(55.11% 0.0285 -0.2206)
OKLCHoklch(55.11% 0.222 277.4)
XYZxyz(23.1192, 15.0594, 83.3330)
Luminance0.1506 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A56EF #EBEF56
analogous
#569EEF #5A56EF #A656EF
triadic
#5A56EF #EF5A56 #56EF5A
tetradic
#5A56EF #EF569E #EBEF56 #56EFA6
square
#5A56EF #EF569E #EBEF56 #56EFA6
split-complementary
#5A56EF #EFA656 #9EEF56
monochromatic
#1612B9 #231EEA #5A56EF #918EF4 #C7C6FA

Accessibility & contrast

On white

5.23
#5A56EF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.01
#5A56EF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A56EF
5.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A56EF#FFFFFF#000000##FFFFFF
##5A56EF1.005.234.015.23
#FFFFFF5.231.0021.001.00
#0000004.0121.001.0021.00
##FFFFFF5.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0073F4
Deuteranopia (green-blind)
#0066EC
Tritanopia (blue-blind)
#007D9B
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #5a56ef;
/* rgb */ color: rgb(90, 86, 239);
/* oklch */ color: oklch(55.1% 0.222 277.4);
Tailwind
colors: {
  custom: {
    50: '#9886f5',
    500: '#5a56ef',
    950: '#000000',
  },
}
SCSS
$custom: #5a56ef;
$custom-light: #9886f5;
$custom-dark: #000000;
JSON
{
  "hex": "#5a56ef",
  "rgb": {
    "r": 90,
    "g": 86,
    "b": 239
  },
  "hsl": {
    "h": 241.569,
    "s": 82.703,
    "l": 63.725
  },
  "oklch": {
    "l": 0.55114,
    "c": 0.22242,
    "h": 277.4
  },
  "luminance": 0.15061
}

Semantic roles & 50–950 ramp

primary
#5A56EF
secondary
#EAEBB5
accent
#DF06D9
background
#FAF8FF
surface
#F4EFFF
border
#CECAD7
text
#0F0B17
muted
#7F7C85

Preview Lab

Preview with #5A56EF

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

Preview Lab → · Contrast checker → · Palette generator →

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