#5877D8#5877D8

#5877D8 is a mid, vivid blue. Relative luminance 0.202; OKLCH L 59.3% C 0.152 H 268.2°. Best body text is #000000 at 5.05:1 contrast (WCAG AA passes).

Color values

HEX#5877D8
RGBrgb(88, 119, 216)
HSLhsl(225, 62%, 60%)
HSVhsv(225, 59%, 85%)
CMYKcmyk(59.3%, 44.9%, 0%, 15.3%)
CIE-LABlab(52.09, 18.14, -53.26)
CIE-LCHlch(52.09, 56.26, 288.81°)
OKLaboklab(59.35% -0.0048 -0.1519)
OKLCHoklch(59.35% 0.152 268.2)
XYZxyz(23.0118, 20.2243, 67.6435)
Luminance0.2023 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5877D8 #D8B958
analogous
#58B7D8 #5877D8 #7958D8
triadic
#5877D8 #D85877 #77D858
tetradic
#5877D8 #D858B7 #D8B958 #58D879
square
#5877D8 #D858B7 #D8B958 #58D879
split-complementary
#5877D8 #D87958 #B7D858
monochromatic
#223E93 #2E53C5 #5877D8 #8A9FE4 #BBC8EF

Accessibility & contrast

On white

4.16
#5877D8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.05
#5877D8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5877D8
5.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5877D8#FFFFFF#000000##000000
##5877D81.004.165.055.05
#FFFFFF4.161.0021.0021.00
#0000005.0521.001.001.00
##0000005.0521.001.001.00

Color blindness preview

Protanopia (red-blind)
#4A82DC
Deuteranopia (green-blind)
#3777D6
Tritanopia (blue-blind)
#008D9D
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #5877d8;
/* rgb */ color: rgb(88, 119, 216);
/* oklch */ color: oklch(59.3% 0.152 268.2);
Tailwind
colors: {
  custom: {
    50: '#919de4',
    500: '#5877d8',
    950: '#000000',
  },
}
SCSS
$custom: #5877d8;
$custom-light: #919de4;
$custom-dark: #000000;
JSON
{
  "hex": "#5877d8",
  "rgb": {
    "r": 88,
    "g": 119,
    "b": 216
  },
  "hsl": {
    "h": 225.469,
    "s": 62.136,
    "l": 59.608
  },
  "oklch": {
    "l": 0.59348,
    "c": 0.15197,
    "h": 268.2
  },
  "luminance": 0.20226
}

Semantic roles & 50–950 ramp

primary
#5877D8
secondary
#DFD3AD
accent
#BE43E5
background
#F9F9FE
surface
#F2F2FC
border
#CCCCD5
text
#0E0E16
muted
#7E7E84

Preview Lab

Preview with #5877D8

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

Preview Lab → · Contrast checker → · Palette generator →

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