#5A78DC#5A78DC

#5A78DC is a mid, vivid blue. Relative luminance 0.208; OKLCH L 59.9% C 0.156 H 268.8°. Best body text is #000000 at 5.15:1 contrast (WCAG AA passes).

Color values

HEX#5A78DC
RGBrgb(90, 120, 220)
HSLhsl(226, 65%, 61%)
HSVhsv(226, 59%, 86%)
CMYKcmyk(59.1%, 45.5%, 0%, 13.7%)
CIE-LABlab(52.70, 19.24, -54.54)
CIE-LCHlch(52.70, 57.83, 289.43°)
OKLaboklab(59.92% -0.0033 -0.1556)
OKLCHoklch(59.92% 0.156 268.8)
XYZxyz(23.8468, 20.7720, 70.4490)
Luminance0.2077 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A78DC #DCBE5A
analogous
#5AB9DC #5A78DC #7D5ADC
triadic
#5A78DC #DC5A78 #78DC5A
tetradic
#5A78DC #DC5AB9 #DCBE5A #5ADC7D
square
#5A78DC #DC5AB9 #DCBE5A #5ADC7D
split-complementary
#5A78DC #DC7D5A #B9DC5A
monochromatic
#213D9B #2C51CD #5A78DC #8CA1E7 #BFCBF1

Accessibility & contrast

On white

4.07
#5A78DC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.15
#5A78DC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5A78DC
5.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A78DC#FFFFFF#000000##000000
##5A78DC1.004.075.155.15
#FFFFFF4.071.0021.0021.00
#0000005.1521.001.001.00
##0000005.1521.001.001.00

Color blindness preview

Protanopia (red-blind)
#4984E0
Deuteranopia (green-blind)
#3578DA
Tritanopia (blue-blind)
#008E9F
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #5a78dc;
/* rgb */ color: rgb(90, 120, 220);
/* oklch */ color: oklch(59.9% 0.156 268.8);
Tailwind
colors: {
  custom: {
    50: '#939ee7',
    500: '#5a78dc',
    950: '#000000',
  },
}
SCSS
$custom: #5a78dc;
$custom-light: #939ee7;
$custom-dark: #000000;
JSON
{
  "hex": "#5a78dc",
  "rgb": {
    "r": 90,
    "g": 120,
    "b": 220
  },
  "hsl": {
    "h": 226.154,
    "s": 65,
    "l": 60.784
  },
  "oklch": {
    "l": 0.59918,
    "c": 0.15563,
    "h": 268.8
  },
  "luminance": 0.20774
}

Semantic roles & 50–950 ramp

primary
#5A78DC
secondary
#E2D6B0
accent
#A319CD
background
#F9F9FE
surface
#F2F2FC
border
#CCCCD5
text
#0E0E16
muted
#7E7E84

Preview Lab

Preview with #5A78DC

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

Preview Lab → · Contrast checker → · Palette generator →

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