#5871E9#5871E9

#5871E9 is a mid, vivid blue. Relative luminance 0.198; OKLCH L 59.3% C 0.183 H 271.0°. Best body text is #000000 at 4.95:1 contrast (WCAG AA passes).

Color values

HEX#5871E9
RGBrgb(88, 113, 233)
HSLhsl(230, 77%, 63%)
HSVhsv(230, 62%, 91%)
CMYKcmyk(62.2%, 51.5%, 0%, 8.6%)
CIE-LABlab(51.57, 27.53, -63.66)
CIE-LCHlch(51.57, 69.36, 293.38°)
OKLaboklab(59.29% 0.0031 -0.1826)
OKLCHoklch(59.29% 0.183 271)
XYZxyz(24.6327, 19.7660, 79.5921)
Luminance0.1977 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5871E9 #E9D058
analogous
#58BAE9 #5871E9 #8758E9
triadic
#5871E9 #E95871 #71E958
tetradic
#5871E9 #E958BA #E9D058 #58E987
square
#5871E9 #E958BA #E9D058 #58E987
split-complementary
#5871E9 #E98758 #BAE958
monochromatic
#1731AF #2243E2 #5871E9 #8E9FF0 #C4CDF7

Accessibility & contrast

On white

4.24
#5871E9 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.95
#5871E9 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5871E9
4.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5871E9#FFFFFF#000000##000000
##5871E91.004.244.954.95
#FFFFFF4.241.0021.0021.00
#0000004.9521.001.001.00
##0000004.9521.001.001.00

Color blindness preview

Protanopia (red-blind)
#2982ED
Deuteranopia (green-blind)
#0075E7
Tritanopia (blue-blind)
#008DA2
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #5871e9;
/* rgb */ color: rgb(88, 113, 233);
/* oklch */ color: oklch(59.3% 0.183 271.0);
Tailwind
colors: {
  custom: {
    50: '#9499f1',
    500: '#5871e9',
    950: '#000000',
  },
}
SCSS
$custom: #5871e9;
$custom-light: #9499f1;
$custom-dark: #000000;
JSON
{
  "hex": "#5871e9",
  "rgb": {
    "r": 88,
    "g": 113,
    "b": 233
  },
  "hsl": {
    "h": 229.655,
    "s": 76.72,
    "l": 62.941
  },
  "oklch": {
    "l": 0.5929,
    "c": 0.18259,
    "h": 271
  },
  "luminance": 0.19768
}

Semantic roles & 50–950 ramp

primary
#5871E9
secondary
#E8DFB4
accent
#B60DD9
background
#F9F9FE
surface
#F2F2FD
border
#CCCCD5
text
#0E0D17
muted
#7E7E85

Preview Lab

Preview with #5871E9

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

Preview Lab → · Contrast checker → · Palette generator →

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