#5871C7#5871C7

#5871C7 is a mid, vivid blue. Relative luminance 0.180; OKLCH L 57.1% C 0.136 H 269.5°. Best body text is #000000 at 4.60:1 contrast (WCAG AA passes).

Color values

HEX#5871C7
RGBrgb(88, 113, 199)
HSLhsl(226, 50%, 56%)
HSVhsv(226, 56%, 78%)
CMYKcmyk(55.8%, 43.2%, 0%, 22%)
CIE-LABlab(49.50, 16.21, -47.71)
CIE-LCHlch(49.50, 50.39, 288.76°)
OKLaboklab(57.05% -0.0011 -0.1357)
OKLCHoklch(57.05% 0.136 269.5)
XYZxyz(20.2350, 18.0070, 56.4311)
Luminance0.1801 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5871C7 #C7AE58
analogous
#58A9C7 #5871C7 #7758C7
triadic
#5871C7 #C75871 #71C758
tetradic
#5871C7 #C758A9 #C7AE58 #58C777
square
#5871C7 #C758A9 #C7AE58 #58C777
split-complementary
#5871C7 #C77758 #A9C758
monochromatic
#293C7B #3952A9 #5871C7 #8698D6 #B4BFE6

Accessibility & contrast

On white

4.56
#5871C7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.60
#5871C7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5871C7
4.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5871C7#FFFFFF#000000##000000
##5871C71.004.564.604.60
#FFFFFF4.561.0021.0021.00
#0000004.6021.001.001.00
##0000004.6021.001.001.00

Color blindness preview

Protanopia (red-blind)
#4C7BCA
Deuteranopia (green-blind)
#3E71C5
Tritanopia (blue-blind)
#158492
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #5871c7;
/* rgb */ color: rgb(88, 113, 199);
/* oklch */ color: oklch(57.1% 0.136 269.5);
Tailwind
colors: {
  custom: {
    50: '#8f99d8',
    500: '#5871c7',
    950: '#000000',
  },
}
SCSS
$custom: #5871c7;
$custom-light: #8f99d8;
$custom-dark: #000000;
JSON
{
  "hex": "#5871c7",
  "rgb": {
    "r": 88,
    "g": 113,
    "b": 199
  },
  "hsl": {
    "h": 226.486,
    "s": 49.776,
    "l": 56.275
  },
  "oklch": {
    "l": 0.57053,
    "c": 0.13568,
    "h": 269.5
  },
  "luminance": 0.18008
}

Semantic roles & 50–950 ramp

primary
#5871C7
secondary
#D4CAA7
accent
#BA4FD9
background
#F9F9FD
surface
#F1F2FA
border
#CBCCD3
text
#0D0D14
muted
#7E7E83

Preview Lab

Preview with #5871C7

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

Preview Lab → · Contrast checker → · Palette generator →

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