#5A56E5#5A56E5

#5A56E5 is a mid, highly saturated blue. Relative luminance 0.145; OKLCH L 54.3% C 0.210 H 278.0°. Best body text is #FFFFFF at 5.39:1 contrast (WCAG AA passes).

Color values

HEX#5A56E5
RGBrgb(90, 86, 229)
HSLhsl(242, 73%, 62%)
HSVhsv(242, 62%, 90%)
CMYKcmyk(60.7%, 62.4%, 0%, 10.2%)
CIE-LABlab(44.92, 42.92, -72.19)
CIE-LCHlch(44.92, 83.99, 300.73°)
OKLaboklab(54.29% 0.0293 -0.2078)
OKLCHoklch(54.29% 0.21 278)
XYZxyz(21.6826, 14.4847, 75.7668)
Luminance0.1449 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A56E5 #E1E556
analogous
#569AE5 #5A56E5 #A156E5
triadic
#5A56E5 #E55A56 #56E55A
tetradic
#5A56E5 #E5569A #E1E556 #56E5A1
square
#5A56E5 #E5569A #E1E556 #56E5A1
split-complementary
#5A56E5 #E5A156 #9AE556
monochromatic
#1E1AA7 #2722DC #5A56E5 #8E8BED #C2C0F5

Accessibility & contrast

On white

5.39
#5A56E5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.90
#5A56E5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A56E5
5.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A56E5#FFFFFF#000000##FFFFFF
##5A56E51.005.393.905.39
#FFFFFF5.391.0021.001.00
#0000003.9021.001.0021.00
##FFFFFF5.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0070EA
Deuteranopia (green-blind)
#0064E2
Tritanopia (blue-blind)
#007A96
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #5a56e5;
/* rgb */ color: rgb(90, 86, 229);
/* oklch */ color: oklch(54.3% 0.210 278.0);
Tailwind
colors: {
  custom: {
    50: '#9686ee',
    500: '#5a56e5',
    950: '#000000',
  },
}
SCSS
$custom: #5a56e5;
$custom-light: #9686ee;
$custom-dark: #000000;
JSON
{
  "hex": "#5a56e5",
  "rgb": {
    "r": 90,
    "g": 86,
    "b": 229
  },
  "hsl": {
    "h": 241.678,
    "s": 73.333,
    "l": 61.765
  },
  "oklch": {
    "l": 0.54287,
    "c": 0.20991,
    "h": 278
  },
  "luminance": 0.14486
}

Semantic roles & 50–950 ramp

primary
#5A56E5
secondary
#E4E6B1
accent
#D510D0
background
#FAF8FE
surface
#F3EFFD
border
#CDCAD5
text
#0F0B17
muted
#7F7C85

Preview Lab

Preview with #5A56E5

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

Preview Lab → · Contrast checker → · Palette generator →

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