#5878DC#5878DC

#5878DC is a mid, vivid blue. Relative luminance 0.207; OKLCH L 59.8% C 0.156 H 268.1°. Best body text is #000000 at 5.13:1 contrast (WCAG AA passes).

Color values

HEX#5878DC
RGBrgb(88, 120, 220)
HSLhsl(225, 65%, 60%)
HSVhsv(225, 60%, 86%)
CMYKcmyk(60%, 45.5%, 0%, 13.7%)
CIE-LABlab(52.59, 18.86, -54.72)
CIE-LCHlch(52.59, 57.88, 289.02°)
OKLaboklab(59.81% -0.0052 -0.1562)
OKLCHoklch(59.81% 0.156 268.1)
XYZxyz(23.6549, 20.6730, 70.4400)
Luminance0.2067 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5878DC #DCBC58
analogous
#58BADC #5878DC #7A58DC
triadic
#5878DC #DC5878 #78DC58
tetradic
#5878DC #DC58BA #DCBC58 #58DC7A
square
#5878DC #DC58BA #DCBC58 #58DC7A
split-complementary
#5878DC #DC7A58 #BADC58
monochromatic
#203E99 #2B52CC #5878DC #8BA1E7 #BDCAF1

Accessibility & contrast

On white

4.09
#5878DC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.13
#5878DC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5878DC
5.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5878DC#FFFFFF#000000##000000
##5878DC1.004.095.135.13
#FFFFFF4.091.0021.0021.00
#0000005.1321.001.001.00
##0000005.1321.001.001.00

Color blindness preview

Protanopia (red-blind)
#4984E0
Deuteranopia (green-blind)
#3478DA
Tritanopia (blue-blind)
#008F9F
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #5878dc;
/* rgb */ color: rgb(88, 120, 220);
/* oklch */ color: oklch(59.8% 0.156 268.1);
Tailwind
colors: {
  custom: {
    50: '#929ee7',
    500: '#5878dc',
    950: '#000000',
  },
}
SCSS
$custom: #5878dc;
$custom-light: #929ee7;
$custom-dark: #000000;
JSON
{
  "hex": "#5878dc",
  "rgb": {
    "r": 88,
    "g": 120,
    "b": 220
  },
  "hsl": {
    "h": 225.455,
    "s": 65.347,
    "l": 60.392
  },
  "oklch": {
    "l": 0.59805,
    "c": 0.15626,
    "h": 268.1
  },
  "luminance": 0.20675
}

Semantic roles & 50–950 ramp

primary
#5878DC
secondary
#E1D5AF
accent
#A118CD
background
#F9F9FE
surface
#F2F2FC
border
#CCCCD5
text
#0E0E16
muted
#7E7E84

Preview Lab

Preview with #5878DC

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

Preview Lab → · Contrast checker → · Palette generator →

#5878DC Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva