#5871E6#5871E6

#5871E6 is a mid, vivid blue. Relative luminance 0.196; OKLCH L 59.1% C 0.179 H 270.9°. Best body text is #000000 at 4.92:1 contrast (WCAG AA passes).

Color values

HEX#5871E6
RGBrgb(88, 113, 230)
HSLhsl(229, 74%, 62%)
HSVhsv(229, 62%, 90%)
CMYKcmyk(61.7%, 50.9%, 0%, 9.8%)
CIE-LABlab(51.38, 26.52, -62.29)
CIE-LCHlch(51.38, 67.70, 293.06°)
OKLaboklab(59.08% 0.0029 -0.1785)
OKLCHoklch(59.08% 0.179 270.9)
XYZxyz(24.2078, 19.5961, 77.3543)
Luminance0.1960 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5871E6 #E6CD58
analogous
#58B8E6 #5871E6 #8658E6
triadic
#5871E6 #E65871 #71E658
tetradic
#5871E6 #E658B8 #E6CD58 #58E686
square
#5871E6 #E658B8 #E6CD58 #58E686
split-complementary
#5871E6 #E68658 #B8E658
monochromatic
#1933AA #2344DE #5871E6 #8D9EEE #C2CCF6

Accessibility & contrast

On white

4.27
#5871E6 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.92
#5871E6 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5871E6
4.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5871E6#FFFFFF#000000##000000
##5871E61.004.274.924.92
#FFFFFF4.271.0021.0021.00
#0000004.9221.001.001.00
##0000004.9221.001.001.00

Color blindness preview

Protanopia (red-blind)
#2D81EA
Deuteranopia (green-blind)
#0074E4
Tritanopia (blue-blind)
#008CA1
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #5871e6;
/* rgb */ color: rgb(88, 113, 230);
/* oklch */ color: oklch(59.1% 0.179 270.9);
Tailwind
colors: {
  custom: {
    50: '#9499ef',
    500: '#5871e6',
    950: '#000000',
  },
}
SCSS
$custom: #5871e6;
$custom-light: #9499ef;
$custom-dark: #000000;
JSON
{
  "hex": "#5871e6",
  "rgb": {
    "r": 88,
    "g": 113,
    "b": 230
  },
  "hsl": {
    "h": 229.437,
    "s": 73.958,
    "l": 62.353
  },
  "oklch": {
    "l": 0.59081,
    "c": 0.17855,
    "h": 270.9
  },
  "luminance": 0.19598
}

Semantic roles & 50–950 ramp

primary
#5871E6
secondary
#E7DEB3
accent
#B30FD6
background
#F9F9FE
surface
#F2F2FD
border
#CCCCD5
text
#0E0D16
muted
#7E7E84

Preview Lab

Preview with #5871E6

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

Preview Lab → · Contrast checker → · Palette generator →

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