#5871E7#5871E7

#5871E7 is a mid, vivid blue. Relative luminance 0.197; OKLCH L 59.2% C 0.180 H 270.9°. Best body text is #000000 at 4.93:1 contrast (WCAG AA passes).

Color values

HEX#5871E7
RGBrgb(88, 113, 231)
HSLhsl(230, 75%, 63%)
HSVhsv(230, 62%, 91%)
CMYKcmyk(61.9%, 51.1%, 0%, 9.4%)
CIE-LABlab(51.44, 26.85, -62.75)
CIE-LCHlch(51.44, 68.25, 293.17°)
OKLaboklab(59.15% 0.003 -0.1799)
OKLCHoklch(59.15% 0.18 270.9)
XYZxyz(24.3486, 19.6524, 78.0960)
Luminance0.1965 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5871E7 #E7CE58
analogous
#58B9E7 #5871E7 #8658E7
triadic
#5871E7 #E75871 #71E758
tetradic
#5871E7 #E758B9 #E7CE58 #58E786
square
#5871E7 #E758B9 #E7CE58 #58E786
split-complementary
#5871E7 #E78658 #B9E758
monochromatic
#1932AC #2244DF #5871E7 #8E9FEF #C3CCF6

Accessibility & contrast

On white

4.26
#5871E7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.93
#5871E7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5871E7
4.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5871E7#FFFFFF#000000##000000
##5871E71.004.264.934.93
#FFFFFF4.261.0021.0021.00
#0000004.9321.001.001.00
##0000004.9321.001.001.00

Color blindness preview

Protanopia (red-blind)
#2C81EB
Deuteranopia (green-blind)
#0075E5
Tritanopia (blue-blind)
#008CA1
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #5871e7;
/* rgb */ color: rgb(88, 113, 231);
/* oklch */ color: oklch(59.2% 0.180 270.9);
Tailwind
colors: {
  custom: {
    50: '#9499ef',
    500: '#5871e7',
    950: '#000000',
  },
}
SCSS
$custom: #5871e7;
$custom-light: #9499ef;
$custom-dark: #000000;
JSON
{
  "hex": "#5871e7",
  "rgb": {
    "r": 88,
    "g": 113,
    "b": 231
  },
  "hsl": {
    "h": 229.51,
    "s": 74.869,
    "l": 62.549
  },
  "oklch": {
    "l": 0.59151,
    "c": 0.1799,
    "h": 270.9
  },
  "luminance": 0.19654
}

Semantic roles & 50–950 ramp

primary
#5871E7
secondary
#E7DEB3
accent
#B40ED7
background
#F9F9FE
surface
#F2F2FD
border
#CCCCD5
text
#0E0D17
muted
#7E7E85

Preview Lab

Preview with #5871E7

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

Preview Lab → · Contrast checker → · Palette generator →

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