#5871EC#5871EC

#5871EC is a mid, vivid blue. Relative luminance 0.199; OKLCH L 59.5% C 0.187 H 271.0°. Best body text is #000000 at 4.99:1 contrast (WCAG AA passes).

Color values

HEX#5871EC
RGBrgb(88, 113, 236)
HSLhsl(230, 80%, 64%)
HSVhsv(230, 63%, 93%)
CMYKcmyk(62.7%, 52.1%, 0%, 7.5%)
CIE-LABlab(51.77, 28.53, -65.02)
CIE-LCHlch(51.77, 71.01, 293.69°)
OKLaboklab(59.5% 0.0034 -0.1866)
OKLCHoklch(59.5% 0.187 271)
XYZxyz(25.0649, 19.9389, 81.8683)
Luminance0.1994 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5871EC #ECD358
analogous
#58BBEC #5871EC #8958EC
triadic
#5871EC #EC5871 #71EC58
tetradic
#5871EC #EC58BB #ECD358 #58EC89
square
#5871EC #EC58BB #ECD358 #58EC89
split-complementary
#5871EC #EC8958 #BBEC58
monochromatic
#1530B5 #2142E6 #5871EC #8FA0F2 #C6CEF9

Accessibility & contrast

On white

4.21
#5871EC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.99
#5871EC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5871EC
4.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5871EC#FFFFFF#000000##000000
##5871EC1.004.214.994.99
#FFFFFF4.211.0021.0021.00
#0000004.9921.001.001.00
##0000004.9921.001.001.00

Color blindness preview

Protanopia (red-blind)
#2382F0
Deuteranopia (green-blind)
#0075E9
Tritanopia (blue-blind)
#008EA4
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #5871ec;
/* rgb */ color: rgb(88, 113, 236);
/* oklch */ color: oklch(59.5% 0.187 271.0);
Tailwind
colors: {
  custom: {
    50: '#9599f3',
    500: '#5871ec',
    950: '#000000',
  },
}
SCSS
$custom: #5871ec;
$custom-light: #9599f3;
$custom-dark: #000000;
JSON
{
  "hex": "#5871ec",
  "rgb": {
    "r": 88,
    "g": 113,
    "b": 236
  },
  "hsl": {
    "h": 229.865,
    "s": 79.57,
    "l": 63.529
  },
  "oklch": {
    "l": 0.59501,
    "c": 0.1866,
    "h": 271
  },
  "luminance": 0.19941
}

Semantic roles & 50–950 ramp

primary
#5871EC
secondary
#EAE1B6
accent
#B80ADC
background
#F9F9FE
surface
#F2F2FD
border
#CCCCD5
text
#0E0D17
muted
#7E7E85

Preview Lab

Preview with #5871EC

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

Preview Lab → · Contrast checker → · Palette generator →

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