#5878E5#5878E5

#5878E5 is a mid, vivid blue. Relative luminance 0.212; OKLCH L 60.4% C 0.169 H 268.7°. Best body text is #000000 at 5.23:1 contrast (WCAG AA passes).

Color values

HEX#5878E5
RGBrgb(88, 120, 229)
HSLhsl(226, 73%, 62%)
HSVhsv(226, 62%, 90%)
CMYKcmyk(61.6%, 47.6%, 0%, 10.2%)
CIE-LABlab(53.13, 21.88, -58.91)
CIE-LCHlch(53.13, 62.85, 290.37°)
OKLaboklab(60.39% -0.004 -0.1685)
OKLCHoklch(60.39% 0.169 268.7)
XYZxyz(24.8790, 21.1626, 76.8873)
Luminance0.2117 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5878E5 #E5C558
analogous
#58BFE5 #5878E5 #7F58E5
triadic
#5878E5 #E55878 #78E558
tetradic
#5878E5 #E558BF #E5C558 #58E57F
square
#5878E5 #E558BF #E5C558 #58E57F
split-complementary
#5878E5 #E57F58 #BFE558
monochromatic
#1A3AA8 #234DDD #5878E5 #8DA3ED #C2CEF5

Accessibility & contrast

On white

4.01
#5878E5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.23
#5878E5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5878E5
5.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5878E5#FFFFFF#000000##000000
##5878E51.004.015.235.23
#FFFFFF4.011.0021.0021.00
#0000005.2321.001.001.00
##0000005.2321.001.001.00

Color blindness preview

Protanopia (red-blind)
#4086E9
Deuteranopia (green-blind)
#2579E3
Tritanopia (blue-blind)
#0091A3
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #5878e5;
/* rgb */ color: rgb(88, 120, 229);
/* oklch */ color: oklch(60.4% 0.169 268.7);
Tailwind
colors: {
  custom: {
    50: '#939eee',
    500: '#5878e5',
    950: '#000000',
  },
}
SCSS
$custom: #5878e5;
$custom-light: #939eee;
$custom-dark: #000000;
JSON
{
  "hex": "#5878e5",
  "rgb": {
    "r": 88,
    "g": 120,
    "b": 229
  },
  "hsl": {
    "h": 226.383,
    "s": 73.057,
    "l": 62.157
  },
  "oklch": {
    "l": 0.60388,
    "c": 0.16856,
    "h": 268.7
  },
  "luminance": 0.21165
}

Semantic roles & 50–950 ramp

primary
#5878E5
secondary
#E6DBB3
accent
#A810D5
background
#F9F9FE
surface
#F2F2FD
border
#CCCCD5
text
#0E0E16
muted
#7E7E84

Preview Lab

Preview with #5878E5

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

Preview Lab → · Contrast checker → · Palette generator →

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