#5871E5#5871E5

#5871E5 is a mid, vivid blue. Relative luminance 0.195; OKLCH L 59.0% C 0.177 H 270.9°. Best body text is #000000 at 4.91:1 contrast (WCAG AA passes).

Color values

HEX#5871E5
RGBrgb(88, 113, 229)
HSLhsl(229, 73%, 62%)
HSVhsv(229, 62%, 90%)
CMYKcmyk(61.6%, 50.7%, 0%, 10.2%)
CIE-LABlab(51.31, 26.18, -61.83)
CIE-LCHlch(51.31, 67.15, 292.95°)
OKLaboklab(59.01% 0.0028 -0.1772)
OKLCHoklch(59.01% 0.177 270.9)
XYZxyz(24.0677, 19.5401, 76.6168)
Luminance0.1954 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5871E5 #E5CC58
analogous
#58B7E5 #5871E5 #8658E5
triadic
#5871E5 #E55871 #71E558
tetradic
#5871E5 #E558B7 #E5CC58 #58E586
square
#5871E5 #E558B7 #E5CC58 #58E586
split-complementary
#5871E5 #E58658 #B7E558
monochromatic
#1A33A8 #2344DD #5871E5 #8D9EED #C2CBF5

Accessibility & contrast

On white

4.28
#5871E5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.91
#5871E5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5871E5
4.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5871E5#FFFFFF#000000##000000
##5871E51.004.284.914.91
#FFFFFF4.281.0021.0021.00
#0000004.9121.001.001.00
##0000004.9121.001.001.00

Color blindness preview

Protanopia (red-blind)
#2F81E9
Deuteranopia (green-blind)
#0074E3
Tritanopia (blue-blind)
#008CA0
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #5871e5;
/* rgb */ color: rgb(88, 113, 229);
/* oklch */ color: oklch(59.0% 0.177 270.9);
Tailwind
colors: {
  custom: {
    50: '#9499ee',
    500: '#5871e5',
    950: '#000000',
  },
}
SCSS
$custom: #5871e5;
$custom-light: #9499ee;
$custom-dark: #000000;
JSON
{
  "hex": "#5871e5",
  "rgb": {
    "r": 88,
    "g": 113,
    "b": 229
  },
  "hsl": {
    "h": 229.362,
    "s": 73.057,
    "l": 62.157
  },
  "oklch": {
    "l": 0.59012,
    "c": 0.1772,
    "h": 270.9
  },
  "luminance": 0.19542
}

Semantic roles & 50–950 ramp

primary
#5871E5
secondary
#E6DDB3
accent
#B210D5
background
#F9F9FE
surface
#F2F2FD
border
#CCCCD5
text
#0E0D16
muted
#7E7E84

Preview Lab

Preview with #5871E5

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

Preview Lab → · Contrast checker → · Palette generator →

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