#5A56EB#5A56EB

#5A56EB is a mid, highly saturated blue. Relative luminance 0.148; OKLCH L 54.8% C 0.217 H 277.6°. Best body text is #FFFFFF at 5.30:1 contrast (WCAG AA passes).

Color values

HEX#5A56EB
RGBrgb(90, 86, 235)
HSLhsl(242, 79%, 63%)
HSVhsv(242, 63%, 92%)
CMYKcmyk(61.7%, 63.4%, 0%, 7.8%)
CIE-LABlab(45.39, 44.83, -74.81)
CIE-LCHlch(45.39, 87.21, 300.93°)
OKLaboklab(54.78% 0.0289 -0.2155)
OKLCHoklch(54.78% 0.217 277.6)
XYZxyz(22.5348, 14.8256, 80.2553)
Luminance0.1483 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A56EB #E7EB56
analogous
#569CEB #5A56EB #A556EB
triadic
#5A56EB #EB5A56 #56EB5A
tetradic
#5A56EB #EB569C #E7EB56 #56EBA5
square
#5A56EB #EB569C #E7EB56 #56EBA5
split-complementary
#5A56EB #EBA556 #9CEB56
monochromatic
#1915B2 #251FE5 #5A56EB #8F8DF1 #C5C3F8

Accessibility & contrast

On white

5.30
#5A56EB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.97
#5A56EB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A56EB
5.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A56EB#FFFFFF#000000##FFFFFF
##5A56EB1.005.303.975.30
#FFFFFF5.301.0021.001.00
#0000003.9721.001.0021.00
##FFFFFF5.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0072F0
Deuteranopia (green-blind)
#0065E8
Tritanopia (blue-blind)
#007C99
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #5a56eb;
/* rgb */ color: rgb(90, 86, 235);
/* oklch */ color: oklch(54.8% 0.217 277.6);
Tailwind
colors: {
  custom: {
    50: '#9786f3',
    500: '#5a56eb',
    950: '#000000',
  },
}
SCSS
$custom: #5a56eb;
$custom-light: #9786f3;
$custom-dark: #000000;
JSON
{
  "hex": "#5a56eb",
  "rgb": {
    "r": 90,
    "g": 86,
    "b": 235
  },
  "hsl": {
    "h": 241.611,
    "s": 78.836,
    "l": 62.941
  },
  "oklch": {
    "l": 0.54781,
    "c": 0.21745,
    "h": 277.6
  },
  "luminance": 0.14827
}

Semantic roles & 50–950 ramp

primary
#5A56EB
secondary
#E8E9B4
accent
#DB0AD6
background
#FAF8FF
surface
#F3EFFE
border
#CDCAD6
text
#0F0B17
muted
#7F7C85

Preview Lab

Preview with #5A56EB

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

Preview Lab → · Contrast checker → · Palette generator →

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