#5877E8#5877E8

#5877E8 is a mid, vivid blue. Relative luminance 0.211; OKLCH L 60.4% C 0.174 H 269.1°. Best body text is #000000 at 5.22:1 contrast (WCAG AA passes).

Color values

HEX#5877E8
RGBrgb(88, 119, 232)
HSLhsl(227, 76%, 63%)
HSVhsv(227, 62%, 91%)
CMYKcmyk(62.1%, 48.7%, 0%, 9%)
CIE-LABlab(53.05, 23.50, -60.72)
CIE-LCHlch(53.05, 65.11, 291.16°)
OKLaboklab(60.39% -0.0026 -0.1738)
OKLCHoklch(60.39% 0.174 269.1)
XYZxyz(25.1819, 21.0924, 79.0725)
Luminance0.2109 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5877E8 #E8C958
analogous
#58BFE8 #5877E8 #8158E8
triadic
#5877E8 #E85877 #77E858
tetradic
#5877E8 #E858BF #E8C958 #58E881
square
#5877E8 #E858BF #E8C958 #58E881
split-complementary
#5877E8 #E88158 #BFE858
monochromatic
#1838AE #224BE1 #5877E8 #8EA3EF #C4CFF7

Accessibility & contrast

On white

4.02
#5877E8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.22
#5877E8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5877E8
5.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5877E8#FFFFFF#000000##000000
##5877E81.004.025.225.22
#FFFFFF4.021.0021.0021.00
#0000005.2221.001.001.00
##0000005.2221.001.001.00

Color blindness preview

Protanopia (red-blind)
#3B85EC
Deuteranopia (green-blind)
#1B79E6
Tritanopia (blue-blind)
#0091A4
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #5877e8;
/* rgb */ color: rgb(88, 119, 232);
/* oklch */ color: oklch(60.4% 0.174 269.1);
Tailwind
colors: {
  custom: {
    50: '#949df0',
    500: '#5877e8',
    950: '#000000',
  },
}
SCSS
$custom: #5877e8;
$custom-light: #949df0;
$custom-dark: #000000;
JSON
{
  "hex": "#5877e8",
  "rgb": {
    "r": 88,
    "g": 119,
    "b": 232
  },
  "hsl": {
    "h": 227.083,
    "s": 75.789,
    "l": 62.745
  },
  "oklch": {
    "l": 0.60389,
    "c": 0.17385,
    "h": 269.1
  },
  "luminance": 0.21095
}

Semantic roles & 50–950 ramp

primary
#5877E8
secondary
#E8DDB4
accent
#AC0ED8
background
#F9F9FE
surface
#F2F2FD
border
#CCCCD5
text
#0E0E17
muted
#7E7E85

Preview Lab

Preview with #5877E8

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

Preview Lab → · Contrast checker → · Palette generator →

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