#5A78DD#5A78DD

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

Color values

HEX#5A78DD
RGBrgb(90, 120, 221)
HSLhsl(226, 66%, 61%)
HSVhsv(226, 59%, 87%)
CMYKcmyk(59.3%, 45.7%, 0%, 13.3%)
CIE-LABlab(52.76, 19.57, -55.01)
CIE-LCHlch(52.76, 58.38, 289.59°)
OKLaboklab(59.98% -0.0031 -0.157)
OKLCHoklch(59.98% 0.157 268.9)
XYZxyz(23.9797, 20.8251, 71.1486)
Luminance0.2083 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A78DD #DDBF5A
analogous
#5AB9DD #5A78DD #7D5ADD
triadic
#5A78DD #DD5A78 #78DD5A
tetradic
#5A78DD #DD5AB9 #DDBF5A #5ADD7D
square
#5A78DD #DD5AB9 #DDBF5A #5ADD7D
split-complementary
#5A78DD #DD7D5A #B9DD5A
monochromatic
#203D9C #2B50CF #5A78DD #8DA2E7 #BFCBF2

Accessibility & contrast

On white

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

On black

5.17
#5A78DD on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5A78DD
5.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A78DD#FFFFFF#000000##000000
##5A78DD1.004.075.175.17
#FFFFFF4.071.0021.0021.00
#0000005.1721.001.001.00
##0000005.1721.001.001.00

Color blindness preview

Protanopia (red-blind)
#4884E1
Deuteranopia (green-blind)
#3478DB
Tritanopia (blue-blind)
#008FA0
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #5a78dd;
/* rgb */ color: rgb(90, 120, 221);
/* oklch */ color: oklch(60.0% 0.157 268.9);
Tailwind
colors: {
  custom: {
    50: '#939ee8',
    500: '#5a78dd',
    950: '#000000',
  },
}
SCSS
$custom: #5a78dd;
$custom-light: #939ee8;
$custom-dark: #000000;
JSON
{
  "hex": "#5a78dd",
  "rgb": {
    "r": 90,
    "g": 120,
    "b": 221
  },
  "hsl": {
    "h": 226.26,
    "s": 65.829,
    "l": 60.98
  },
  "oklch": {
    "l": 0.59982,
    "c": 0.15701,
    "h": 268.9
  },
  "luminance": 0.20827
}

Semantic roles & 50–950 ramp

primary
#5A78DD
secondary
#E2D7B1
accent
#A418CE
background
#F9F9FE
surface
#F2F2FD
border
#CCCCD5
text
#0E0E16
muted
#7E7E84

Preview Lab

Preview with #5A78DD

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

Preview Lab → · Contrast checker → · Palette generator →

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