#5877E2#5877E2

#5877E2 is a mid, vivid blue. Relative luminance 0.208; OKLCH L 60.0% C 0.166 H 268.8°. Best body text is #000000 at 5.15:1 contrast (WCAG AA passes).

Color values

HEX#5877E2
RGBrgb(88, 119, 226)
HSLhsl(227, 70%, 62%)
HSVhsv(227, 61%, 89%)
CMYKcmyk(61.1%, 47.3%, 0%, 11.4%)
CIE-LABlab(52.68, 21.49, -57.94)
CIE-LCHlch(52.68, 61.80, 290.35°)
OKLaboklab(59.99% -0.0034 -0.1657)
OKLCHoklch(59.99% 0.166 268.8)
XYZxyz(24.3442, 20.7573, 74.6604)
Luminance0.2076 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5877E2 #E2C358
analogous
#58BCE2 #5877E2 #7E58E2
triadic
#5877E2 #E25877 #77E258
tetradic
#5877E2 #E258BC #E2C358 #58E27E
square
#5877E2 #E258BC #E2C358 #58E27E
split-complementary
#5877E2 #E27E58 #BCE258
monochromatic
#1C3BA3 #254DD7 #5877E2 #8CA1EB #C0CCF4

Accessibility & contrast

On white

4.08
#5877E2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.15
#5877E2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5877E2
5.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5877E2#FFFFFF#000000##000000
##5877E21.004.085.155.15
#FFFFFF4.081.0021.0021.00
#0000005.1521.001.001.00
##0000005.1521.001.001.00

Color blindness preview

Protanopia (red-blind)
#4184E6
Deuteranopia (green-blind)
#2878E0
Tritanopia (blue-blind)
#008FA2
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #5877e2;
/* rgb */ color: rgb(88, 119, 226);
/* oklch */ color: oklch(60.0% 0.166 268.8);
Tailwind
colors: {
  custom: {
    50: '#939dec',
    500: '#5877e2',
    950: '#000000',
  },
}
SCSS
$custom: #5877e2;
$custom-light: #939dec;
$custom-dark: #000000;
JSON
{
  "hex": "#5877e2",
  "rgb": {
    "r": 88,
    "g": 119,
    "b": 226
  },
  "hsl": {
    "h": 226.522,
    "s": 70.408,
    "l": 61.569
  },
  "oklch": {
    "l": 0.59991,
    "c": 0.1657,
    "h": 268.8
  },
  "luminance": 0.20759
}

Semantic roles & 50–950 ramp

primary
#5877E2
secondary
#E5D9B1
accent
#A713D2
background
#F9F9FE
surface
#F2F2FD
border
#CCCCD5
text
#0E0E16
muted
#7E7E84

Preview Lab

Preview with #5877E2

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

Preview Lab → · Contrast checker → · Palette generator →

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