#5A78F0#5A78F0

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

Color values

HEX#5A78F0
RGBrgb(90, 120, 240)
HSLhsl(228, 83%, 65%)
HSVhsv(228, 63%, 94%)
CMYKcmyk(62.5%, 50%, 0%, 5.9%)
CIE-LABlab(53.92, 25.92, -63.79)
CIE-LCHlch(53.92, 68.85, 292.11°)
OKLaboklab(61.23% -0.0008 -0.1828)
OKLCHoklch(61.23% 0.183 269.7)
XYZxyz(26.6558, 21.8955, 85.2427)
Luminance0.2190 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A78F0 #F0D25A
analogous
#5AC3F0 #5A78F0 #875AF0
triadic
#5A78F0 #F05A78 #78F05A
tetradic
#5A78F0 #F05AC3 #F0D25A #5AF087
square
#5A78F0 #F05AC3 #F0D25A #5AF087
split-complementary
#5A78F0 #F0875A #C3F05A
monochromatic
#1134BE #224AEB #5A78F0 #92A6F5 #CAD4FA

Accessibility & contrast

On white

3.90
#5A78F0 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.38
#5A78F0 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5A78F0
5.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A78F0#FFFFFF#000000##000000
##5A78F01.003.905.385.38
#FFFFFF3.901.0021.0021.00
#0000005.3821.001.001.00
##0000005.3821.001.001.00

Color blindness preview

Protanopia (red-blind)
#3488F4
Deuteranopia (green-blind)
#027AEE
Tritanopia (blue-blind)
#0094A9
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #5a78f0;
/* rgb */ color: rgb(90, 120, 240);
/* oklch */ color: oklch(61.2% 0.183 269.7);
Tailwind
colors: {
  custom: {
    50: '#969ef6',
    500: '#5a78f0',
    950: '#000000',
  },
}
SCSS
$custom: #5a78f0;
$custom-light: #969ef6;
$custom-dark: #000000;
JSON
{
  "hex": "#5a78f0",
  "rgb": {
    "r": 90,
    "g": 120,
    "b": 240
  },
  "hsl": {
    "h": 228,
    "s": 83.333,
    "l": 64.706
  },
  "oklch": {
    "l": 0.61235,
    "c": 0.1828,
    "h": 269.7
  },
  "luminance": 0.21898
}

Semantic roles & 50–950 ramp

primary
#5A78F0
secondary
#EDE2B9
accent
#B406E0
background
#F9F9FF
surface
#F2F2FE
border
#CCCCD6
text
#0F0E17
muted
#7E7E85

Preview Lab

Preview with #5A78F0

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

Preview Lab → · Contrast checker → · Palette generator →

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