#5A78E2#5A78E2

#5A78E2 is a mid, vivid blue. Relative luminance 0.211; OKLCH L 60.3% C 0.164 H 269.2°. Best body text is #000000 at 5.22:1 contrast (WCAG AA passes).

Color values

HEX#5A78E2
RGBrgb(90, 120, 226)
HSLhsl(227, 70%, 62%)
HSVhsv(227, 60%, 89%)
CMYKcmyk(60.2%, 46.9%, 0%, 11.4%)
CIE-LABlab(53.05, 21.24, -57.34)
CIE-LCHlch(53.05, 61.15, 290.32°)
OKLaboklab(60.3% -0.0024 -0.1638)
OKLCHoklch(60.3% 0.164 269.2)
XYZxyz(24.6558, 21.0955, 74.7093)
Luminance0.2110 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A78E2 #E2C45A
analogous
#5ABCE2 #5A78E2 #805AE2
triadic
#5A78E2 #E25A78 #78E25A
tetradic
#5A78E2 #E25ABC #E2C45A #5AE280
square
#5A78E2 #E25ABC #E2C45A #5AE280
split-complementary
#5A78E2 #E2805A #BCE25A
monochromatic
#1D3BA5 #264DD9 #5A78E2 #8EA3EB #C2CDF4

Accessibility & contrast

On white

4.02
#5A78E2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.22
#5A78E2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5A78E2
5.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A78E2#FFFFFF#000000##000000
##5A78E21.004.025.225.22
#FFFFFF4.021.0021.0021.00
#0000005.2221.001.001.00
##0000005.2221.001.001.00

Color blindness preview

Protanopia (red-blind)
#4485E6
Deuteranopia (green-blind)
#2D79E0
Tritanopia (blue-blind)
#0090A2
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #5a78e2;
/* rgb */ color: rgb(90, 120, 226);
/* oklch */ color: oklch(60.3% 0.164 269.2);
Tailwind
colors: {
  custom: {
    50: '#949eec',
    500: '#5a78e2',
    950: '#000000',
  },
}
SCSS
$custom: #5a78e2;
$custom-light: #949eec;
$custom-dark: #000000;
JSON
{
  "hex": "#5a78e2",
  "rgb": {
    "r": 90,
    "g": 120,
    "b": 226
  },
  "hsl": {
    "h": 226.765,
    "s": 70.103,
    "l": 61.961
  },
  "oklch": {
    "l": 0.60303,
    "c": 0.16387,
    "h": 269.2
  },
  "luminance": 0.21098
}

Semantic roles & 50–950 ramp

primary
#5A78E2
secondary
#E5DAB3
accent
#A813D2
background
#F9F9FE
surface
#F2F2FD
border
#CCCCD5
text
#0E0E16
muted
#7E7E84

Preview Lab

Preview with #5A78E2

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

Preview Lab → · Contrast checker → · Palette generator →

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