#5871D7#5871D7

#5871D7 is a mid, vivid blue. Relative luminance 0.188; OKLCH L 58.1% C 0.158 H 270.5°. Best body text is #000000 at 4.76:1 contrast (WCAG AA passes).

Color values

HEX#5871D7
RGBrgb(88, 113, 215)
HSLhsl(228, 61%, 59%)
HSVhsv(228, 59%, 84%)
CMYKcmyk(59.1%, 47.4%, 0%, 15.7%)
CIE-LABlab(50.44, 21.50, -55.33)
CIE-LCHlch(50.44, 59.37, 291.24°)
OKLaboklab(58.07% 0.0013 -0.1581)
OKLCHoklch(58.07% 0.158 270.5)
XYZxyz(22.1913, 18.7895, 66.7341)
Luminance0.1879 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5871D7 #D7BE58
analogous
#58B1D7 #5871D7 #7F58D7
triadic
#5871D7 #D75871 #71D758
tetradic
#5871D7 #D758B1 #D7BE58 #58D77F
square
#5871D7 #D758B1 #D7BE58 #58D77F
split-complementary
#5871D7 #D77F58 #B1D758
monochromatic
#233992 #2F4CC3 #5871D7 #899BE3 #BBC5EF

Accessibility & contrast

On white

4.41
#5871D7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.76
#5871D7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5871D7
4.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5871D7#FFFFFF#000000##000000
##5871D71.004.414.764.76
#FFFFFF4.411.0021.0021.00
#0000004.7621.001.001.00
##0000004.7621.001.001.00

Color blindness preview

Protanopia (red-blind)
#3F7EDB
Deuteranopia (green-blind)
#2A73D5
Tritanopia (blue-blind)
#00889A
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #5871d7;
/* rgb */ color: rgb(88, 113, 215);
/* oklch */ color: oklch(58.1% 0.158 270.5);
Tailwind
colors: {
  custom: {
    50: '#9199e4',
    500: '#5871d7',
    950: '#000000',
  },
}
SCSS
$custom: #5871d7;
$custom-light: #9199e4;
$custom-dark: #000000;
JSON
{
  "hex": "#5871d7",
  "rgb": {
    "r": 88,
    "g": 113,
    "b": 215
  },
  "hsl": {
    "h": 228.189,
    "s": 61.353,
    "l": 59.412
  },
  "oklch": {
    "l": 0.5807,
    "c": 0.15808,
    "h": 270.5
  },
  "luminance": 0.18791
}

Semantic roles & 50–950 ramp

primary
#5871D7
secondary
#DED4AD
accent
#C543E4
background
#F9F9FE
surface
#F2F2FC
border
#CCCCD5
text
#0E0D16
muted
#7E7E84

Preview Lab

Preview with #5871D7

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

Preview Lab → · Contrast checker → · Palette generator →

#5871D7 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva