#5871C8#5871C8

#5871C8 is a mid, vivid blue. Relative luminance 0.181; OKLCH L 57.1% C 0.137 H 269.6°. Best body text is #000000 at 4.61:1 contrast (WCAG AA passes).

Color values

HEX#5871C8
RGBrgb(88, 113, 200)
HSLhsl(227, 50%, 56%)
HSVhsv(227, 56%, 78%)
CMYKcmyk(56%, 43.5%, 0%, 21.6%)
CIE-LABlab(49.56, 16.54, -48.19)
CIE-LCHlch(49.56, 50.95, 288.94°)
OKLaboklab(57.12% -0.0009 -0.1371)
OKLCHoklch(57.12% 0.137 269.6)
XYZxyz(20.3515, 18.0536, 57.0446)
Luminance0.1805 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5871C8 #C8AF58
analogous
#58A9C8 #5871C8 #7758C8
triadic
#5871C8 #C85871 #71C858
tetradic
#5871C8 #C858A9 #C8AF58 #58C877
square
#5871C8 #C858A9 #C8AF58 #58C877
split-complementary
#5871C8 #C87758 #A9C858
monochromatic
#293C7D #3852AB #5871C8 #8698D7 #B4BFE6

Accessibility & contrast

On white

4.55
#5871C8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.61
#5871C8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5871C8
4.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5871C8#FFFFFF#000000##000000
##5871C81.004.554.614.61
#FFFFFF4.551.0021.0021.00
#0000004.6121.001.001.00
##0000004.6121.001.001.00

Color blindness preview

Protanopia (red-blind)
#4B7BCB
Deuteranopia (green-blind)
#3D71C6
Tritanopia (blue-blind)
#138493
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #5871c8;
/* rgb */ color: rgb(88, 113, 200);
/* oklch */ color: oklch(57.1% 0.137 269.6);
Tailwind
colors: {
  custom: {
    50: '#8f99d9',
    500: '#5871c8',
    950: '#000000',
  },
}
SCSS
$custom: #5871c8;
$custom-light: #8f99d9;
$custom-dark: #000000;
JSON
{
  "hex": "#5871c8",
  "rgb": {
    "r": 88,
    "g": 113,
    "b": 200
  },
  "hsl": {
    "h": 226.607,
    "s": 50.45,
    "l": 56.471
  },
  "oklch": {
    "l": 0.57115,
    "c": 0.1371,
    "h": 269.6
  },
  "luminance": 0.18055
}

Semantic roles & 50–950 ramp

primary
#5871C8
secondary
#D5CBA7
accent
#BB4EDA
background
#F9F9FD
surface
#F1F2FA
border
#CBCCD3
text
#0D0D15
muted
#7E7E83

Preview Lab

Preview with #5871C8

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

Preview Lab → · Contrast checker → · Palette generator →

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