#5877E4#5877E4

#5877E4 is a mid, vivid blue. Relative luminance 0.209; OKLCH L 60.1% C 0.168 H 268.9°. Best body text is #000000 at 5.17:1 contrast (WCAG AA passes).

Color values

HEX#5877E4
RGBrgb(88, 119, 228)
HSLhsl(227, 72%, 62%)
HSVhsv(227, 61%, 89%)
CMYKcmyk(61.4%, 47.8%, 0%, 10.6%)
CIE-LABlab(52.80, 22.16, -58.87)
CIE-LCHlch(52.80, 62.90, 290.63°)
OKLaboklab(60.12% -0.0031 -0.1684)
OKLCHoklch(60.12% 0.168 268.9)
XYZxyz(24.6202, 20.8677, 76.1142)
Luminance0.2087 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5877E4 #E4C558
analogous
#58BDE4 #5877E4 #7F58E4
triadic
#5877E4 #E45877 #77E458
tetradic
#5877E4 #E458BD #E4C558 #58E47F
square
#5877E4 #E458BD #E4C558 #58E47F
split-complementary
#5877E4 #E47F58 #BDE458
monochromatic
#1B3AA7 #234CDB #5877E4 #8DA2ED #C1CDF5

Accessibility & contrast

On white

4.06
#5877E4 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.17
#5877E4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5877E4
5.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5877E4#FFFFFF#000000##000000
##5877E41.004.065.175.17
#FFFFFF4.061.0021.0021.00
#0000005.1721.001.001.00
##0000005.1721.001.001.00

Color blindness preview

Protanopia (red-blind)
#3F85E8
Deuteranopia (green-blind)
#2478E2
Tritanopia (blue-blind)
#0090A2
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #5877e4;
/* rgb */ color: rgb(88, 119, 228);
/* oklch */ color: oklch(60.1% 0.168 268.9);
Tailwind
colors: {
  custom: {
    50: '#939ded',
    500: '#5877e4',
    950: '#000000',
  },
}
SCSS
$custom: #5877e4;
$custom-light: #939ded;
$custom-dark: #000000;
JSON
{
  "hex": "#5877e4",
  "rgb": {
    "r": 88,
    "g": 119,
    "b": 228
  },
  "hsl": {
    "h": 226.714,
    "s": 72.165,
    "l": 61.961
  },
  "oklch": {
    "l": 0.60123,
    "c": 0.16843,
    "h": 268.9
  },
  "luminance": 0.2087
}

Semantic roles & 50–950 ramp

primary
#5877E4
secondary
#E6DAB2
accent
#A911D4
background
#F9F9FE
surface
#F2F2FD
border
#CCCCD5
text
#0E0E16
muted
#7E7E84

Preview Lab

Preview with #5877E4

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

Preview Lab → · Contrast checker → · Palette generator →

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