#5878E7#5878E7

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

Color values

HEX#5878E7
RGBrgb(88, 120, 231)
HSLhsl(227, 75%, 63%)
HSVhsv(227, 62%, 91%)
CMYKcmyk(61.9%, 48.1%, 0%, 9.4%)
CIE-LABlab(53.25, 22.55, -59.84)
CIE-LCHlch(53.25, 63.95, 290.65°)
OKLaboklab(60.52% -0.0037 -0.1712)
OKLCHoklch(60.52% 0.171 268.8)
XYZxyz(25.1599, 21.2750, 78.3664)
Luminance0.2128 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5878E7 #E7C758
analogous
#58C0E7 #5878E7 #7F58E7
triadic
#5878E7 #E75878 #78E758
tetradic
#5878E7 #E758C0 #E7C758 #58E77F
square
#5878E7 #E758C0 #E7C758 #58E77F
split-complementary
#5878E7 #E77F58 #C0E758
monochromatic
#193AAC #224DDF #5878E7 #8EA3EF #C3CFF6

Accessibility & contrast

On white

4.00
#5878E7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.26
#5878E7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5878E7
5.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5878E7#FFFFFF#000000##000000
##5878E71.004.005.265.26
#FFFFFF4.001.0021.0021.00
#0000005.2621.001.001.00
##0000005.2621.001.001.00

Color blindness preview

Protanopia (red-blind)
#3E86EB
Deuteranopia (green-blind)
#2179E5
Tritanopia (blue-blind)
#0091A4
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #5878e7;
/* rgb */ color: rgb(88, 120, 231);
/* oklch */ color: oklch(60.5% 0.171 268.8);
Tailwind
colors: {
  custom: {
    50: '#949eef',
    500: '#5878e7',
    950: '#000000',
  },
}
SCSS
$custom: #5878e7;
$custom-light: #949eef;
$custom-dark: #000000;
JSON
{
  "hex": "#5878e7",
  "rgb": {
    "r": 88,
    "g": 120,
    "b": 231
  },
  "hsl": {
    "h": 226.573,
    "s": 74.869,
    "l": 62.549
  },
  "oklch": {
    "l": 0.60521,
    "c": 0.17127,
    "h": 268.8
  },
  "luminance": 0.21277
}

Semantic roles & 50–950 ramp

primary
#5878E7
secondary
#E7DCB3
accent
#AA0ED7
background
#F9F9FE
surface
#F2F2FD
border
#CCCCD5
text
#0E0E16
muted
#7E7E84

Preview Lab

Preview with #5878E7

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

Preview Lab → · Contrast checker → · Palette generator →

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