#5A78EC#5A78EC

#5A78EC is a mid, vivid blue. Relative luminance 0.217; OKLCH L 61.0% C 0.177 H 269.6°. Best body text is #000000 at 5.33:1 contrast (WCAG AA passes).

Color values

HEX#5A78EC
RGBrgb(90, 120, 236)
HSLhsl(228, 79%, 64%)
HSVhsv(228, 62%, 93%)
CMYKcmyk(61.9%, 49.2%, 0%, 7.5%)
CIE-LABlab(53.66, 24.58, -61.96)
CIE-LCHlch(53.66, 66.66, 291.64°)
OKLaboklab(60.96% -0.0012 -0.1774)
OKLCHoklch(60.96% 0.177 269.6)
XYZxyz(26.0681, 21.6605, 82.1478)
Luminance0.2166 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A78EC #ECCE5A
analogous
#5AC1EC #5A78EC #855AEC
triadic
#5A78EC #EC5A78 #78EC5A
tetradic
#5A78EC #EC5AC1 #ECCE5A #5AEC85
square
#5A78EC #EC5AC1 #ECCE5A #5AEC85
split-complementary
#5A78EC #EC855A #C1EC5A
monochromatic
#1536B7 #234BE6 #5A78EC #91A5F2 #C8D2F9

Accessibility & contrast

On white

3.94
#5A78EC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.33
#5A78EC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5A78EC
5.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A78EC#FFFFFF#000000##000000
##5A78EC1.003.945.335.33
#FFFFFF3.941.0021.0021.00
#0000005.3321.001.001.00
##0000005.3321.001.001.00

Color blindness preview

Protanopia (red-blind)
#3987F0
Deuteranopia (green-blind)
#167AEA
Tritanopia (blue-blind)
#0093A7
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #5a78ec;
/* rgb */ color: rgb(90, 120, 236);
/* oklch */ color: oklch(61.0% 0.177 269.6);
Tailwind
colors: {
  custom: {
    50: '#969ef3',
    500: '#5a78ec',
    950: '#000000',
  },
}
SCSS
$custom: #5a78ec;
$custom-light: #969ef3;
$custom-dark: #000000;
JSON
{
  "hex": "#5a78ec",
  "rgb": {
    "r": 90,
    "g": 120,
    "b": 236
  },
  "hsl": {
    "h": 227.671,
    "s": 79.348,
    "l": 63.922
  },
  "oklch": {
    "l": 0.60964,
    "c": 0.17743,
    "h": 269.6
  },
  "luminance": 0.21663
}

Semantic roles & 50–950 ramp

primary
#5A78EC
secondary
#EBE0B7
accent
#B10ADC
background
#F9F9FE
surface
#F2F2FD
border
#CCCCD5
text
#0E0E17
muted
#7E7E85

Preview Lab

Preview with #5A78EC

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

Preview Lab → · Contrast checker → · Palette generator →

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