#5A78EF#5A78EF

#5A78EF is a mid, vivid blue. Relative luminance 0.218; OKLCH L 61.2% C 0.181 H 269.7°. Best body text is #000000 at 5.37:1 contrast (WCAG AA passes).

Color values

HEX#5A78EF
RGBrgb(90, 120, 239)
HSLhsl(228, 82%, 65%)
HSVhsv(228, 62%, 94%)
CMYKcmyk(62.3%, 49.8%, 0%, 6.3%)
CIE-LABlab(53.85, 25.58, -63.33)
CIE-LCHlch(53.85, 68.30, 292.00°)
OKLaboklab(61.17% -0.0009 -0.1815)
OKLCHoklch(61.17% 0.181 269.7)
XYZxyz(26.5076, 21.8363, 84.4625)
Luminance0.2184 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A78EF #EFD15A
analogous
#5AC3EF #5A78EF #865AEF
triadic
#5A78EF #EF5A78 #78EF5A
tetradic
#5A78EF #EF5AC3 #EFD15A #5AEF86
square
#5A78EF #EF5AC3 #EFD15A #5AEF86
split-complementary
#5A78EF #EF865A #C3EF5A
monochromatic
#1235BC #224AEA #5A78EF #92A6F4 #CAD3FA

Accessibility & contrast

On white

3.91
#5A78EF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.37
#5A78EF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5A78EF
5.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A78EF#FFFFFF#000000##000000
##5A78EF1.003.915.375.37
#FFFFFF3.911.0021.0021.00
#0000005.3721.001.001.00
##0000005.3721.001.001.00

Color blindness preview

Protanopia (red-blind)
#3688F3
Deuteranopia (green-blind)
#087AED
Tritanopia (blue-blind)
#0094A8
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #5a78ef;
/* rgb */ color: rgb(90, 120, 239);
/* oklch */ color: oklch(61.2% 0.181 269.7);
Tailwind
colors: {
  custom: {
    50: '#969ef5',
    500: '#5a78ef',
    950: '#000000',
  },
}
SCSS
$custom: #5a78ef;
$custom-light: #969ef5;
$custom-dark: #000000;
JSON
{
  "hex": "#5a78ef",
  "rgb": {
    "r": 90,
    "g": 120,
    "b": 239
  },
  "hsl": {
    "h": 227.919,
    "s": 82.32,
    "l": 64.51
  },
  "oklch": {
    "l": 0.61167,
    "c": 0.18146,
    "h": 269.7
  },
  "luminance": 0.21839
}

Semantic roles & 50–950 ramp

primary
#5A78EF
secondary
#ECE2B9
accent
#B307DF
background
#F9F9FF
surface
#F2F2FE
border
#CCCCD6
text
#0F0E17
muted
#7E7E85

Preview Lab

Preview with #5A78EF

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

Preview Lab → · Contrast checker → · Palette generator →

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