#5878E8#5878E8

#5878E8 is a mid, vivid blue. Relative luminance 0.213; OKLCH L 60.6% C 0.173 H 268.8°. Best body text is #000000 at 5.27:1 contrast (WCAG AA passes).

Color values

HEX#5878E8
RGBrgb(88, 120, 232)
HSLhsl(227, 76%, 63%)
HSVhsv(227, 62%, 91%)
CMYKcmyk(62.1%, 48.3%, 0%, 9%)
CIE-LABlab(53.31, 22.89, -60.30)
CIE-LCHlch(53.31, 64.50, 290.79°)
OKLaboklab(60.59% -0.0036 -0.1726)
OKLCHoklch(60.59% 0.173 268.8)
XYZxyz(25.3015, 21.3316, 79.1124)
Luminance0.2133 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5878E8 #E8C858
analogous
#58C0E8 #5878E8 #8058E8
triadic
#5878E8 #E85878 #78E858
tetradic
#5878E8 #E858C0 #E8C858 #58E880
square
#5878E8 #E858C0 #E8C858 #58E880
split-complementary
#5878E8 #E88058 #C0E858
monochromatic
#1839AE #224DE1 #5878E8 #8EA3EF #C4CFF7

Accessibility & contrast

On white

3.99
#5878E8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.27
#5878E8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5878E8
5.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5878E8#FFFFFF#000000##000000
##5878E81.003.995.275.27
#FFFFFF3.991.0021.0021.00
#0000005.2721.001.001.00
##0000005.2721.001.001.00

Color blindness preview

Protanopia (red-blind)
#3D86EC
Deuteranopia (green-blind)
#1F79E6
Tritanopia (blue-blind)
#0092A5
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #5878e8;
/* rgb */ color: rgb(88, 120, 232);
/* oklch */ color: oklch(60.6% 0.173 268.8);
Tailwind
colors: {
  custom: {
    50: '#949ef0',
    500: '#5878e8',
    950: '#000000',
  },
}
SCSS
$custom: #5878e8;
$custom-light: #949ef0;
$custom-dark: #000000;
JSON
{
  "hex": "#5878e8",
  "rgb": {
    "r": 88,
    "g": 120,
    "b": 232
  },
  "hsl": {
    "h": 226.667,
    "s": 75.789,
    "l": 62.745
  },
  "oklch": {
    "l": 0.60587,
    "c": 0.17263,
    "h": 268.8
  },
  "luminance": 0.21334
}

Semantic roles & 50–950 ramp

primary
#5878E8
secondary
#E8DCB4
accent
#AB0ED8
background
#F9F9FE
surface
#F2F2FD
border
#CCCCD5
text
#0E0E17
muted
#7E7E85

Preview Lab

Preview with #5878E8

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

Preview Lab → · Contrast checker → · Palette generator →

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