#5A56E7#5A56E7

#5A56E7 is a mid, highly saturated blue. Relative luminance 0.146; OKLCH L 54.5% C 0.212 H 277.9°. Best body text is #FFFFFF at 5.36:1 contrast (WCAG AA passes).

Color values

HEX#5A56E7
RGBrgb(90, 86, 231)
HSLhsl(242, 75%, 62%)
HSVhsv(242, 63%, 91%)
CMYKcmyk(61%, 62.8%, 0%, 9.4%)
CIE-LABlab(45.08, 43.56, -73.07)
CIE-LCHlch(45.08, 85.07, 300.80°)
OKLaboklab(54.45% 0.0292 -0.2104)
OKLCHoklch(54.45% 0.212 277.9)
XYZxyz(21.9634, 14.5971, 77.2459)
Luminance0.1460 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A56E7 #E3E756
analogous
#569BE7 #5A56E7 #A256E7
triadic
#5A56E7 #E75A56 #56E75A
tetradic
#5A56E7 #E7569B #E3E756 #56E7A2
square
#5A56E7 #E7569B #E3E756 #56E7A2
split-complementary
#5A56E7 #E7A256 #9BE756
monochromatic
#1C18AA #2620DF #5A56E7 #8E8CEF #C3C1F6

Accessibility & contrast

On white

5.36
#5A56E7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.92
#5A56E7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A56E7
5.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A56E7#FFFFFF#000000##FFFFFF
##5A56E71.005.363.925.36
#FFFFFF5.361.0021.001.00
#0000003.9221.001.0021.00
##FFFFFF5.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0071EC
Deuteranopia (green-blind)
#0065E4
Tritanopia (blue-blind)
#007B97
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #5a56e7;
/* rgb */ color: rgb(90, 86, 231);
/* oklch */ color: oklch(54.5% 0.212 277.9);
Tailwind
colors: {
  custom: {
    50: '#9786f0',
    500: '#5a56e7',
    950: '#000000',
  },
}
SCSS
$custom: #5a56e7;
$custom-light: #9786f0;
$custom-dark: #000000;
JSON
{
  "hex": "#5a56e7",
  "rgb": {
    "r": 90,
    "g": 86,
    "b": 231
  },
  "hsl": {
    "h": 241.655,
    "s": 75.13,
    "l": 62.157
  },
  "oklch": {
    "l": 0.54451,
    "c": 0.21243,
    "h": 277.9
  },
  "luminance": 0.14599
}

Semantic roles & 50–950 ramp

primary
#5A56E7
secondary
#E6E7B2
accent
#D70ED2
background
#FAF8FE
surface
#F3EFFD
border
#CDCAD5
text
#0F0B17
muted
#7F7C85

Preview Lab

Preview with #5A56E7

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

Preview Lab → · Contrast checker → · Palette generator →

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