#5A78DE#5A78DE

#5A78DE is a mid, vivid blue. Relative luminance 0.209; OKLCH L 60.0% C 0.158 H 268.9°. Best body text is #000000 at 5.18:1 contrast (WCAG AA passes).

Color values

HEX#5A78DE
RGBrgb(90, 120, 222)
HSLhsl(226, 67%, 61%)
HSVhsv(226, 59%, 87%)
CMYKcmyk(59.5%, 45.9%, 0%, 12.9%)
CIE-LABlab(52.82, 19.90, -55.47)
CIE-LCHlch(52.82, 58.94, 289.74°)
OKLaboklab(60.05% -0.003 -0.1584)
OKLCHoklch(60.05% 0.158 268.9)
XYZxyz(24.1133, 20.8785, 71.8523)
Luminance0.2088 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A78DE #DEC05A
analogous
#5ABADE #5A78DE #7E5ADE
triadic
#5A78DE #DE5A78 #78DE5A
tetradic
#5A78DE #DE5ABA #DEC05A #5ADE7E
square
#5A78DE #DE5ABA #DEC05A #5ADE7E
split-complementary
#5A78DE #DE7E5A #BADE5A
monochromatic
#203C9E #2A50D1 #5A78DE #8DA2E8 #C0CBF2

Accessibility & contrast

On white

4.06
#5A78DE on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.18
#5A78DE on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5A78DE
5.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A78DE#FFFFFF#000000##000000
##5A78DE1.004.065.185.18
#FFFFFF4.061.0021.0021.00
#0000005.1821.001.001.00
##0000005.1821.001.001.00

Color blindness preview

Protanopia (red-blind)
#4784E2
Deuteranopia (green-blind)
#3379DC
Tritanopia (blue-blind)
#008FA0
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #5a78de;
/* rgb */ color: rgb(90, 120, 222);
/* oklch */ color: oklch(60.0% 0.158 268.9);
Tailwind
colors: {
  custom: {
    50: '#939ee9',
    500: '#5a78de',
    950: '#000000',
  },
}
SCSS
$custom: #5a78de;
$custom-light: #939ee9;
$custom-dark: #000000;
JSON
{
  "hex": "#5a78de",
  "rgb": {
    "r": 90,
    "g": 120,
    "b": 222
  },
  "hsl": {
    "h": 226.364,
    "s": 66.667,
    "l": 61.176
  },
  "oklch": {
    "l": 0.60045,
    "c": 0.15839,
    "h": 268.9
  },
  "luminance": 0.20881
}

Semantic roles & 50–950 ramp

primary
#5A78DE
secondary
#E3D7B1
accent
#A517CF
background
#F9F9FE
surface
#F2F2FD
border
#CCCCD5
text
#0E0E16
muted
#7E7E84

Preview Lab

Preview with #5A78DE

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

Preview Lab → · Contrast checker → · Palette generator →

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