#5871ED#5871ED

#5871ED is a mid, vivid blue. Relative luminance 0.200; OKLCH L 59.6% C 0.188 H 271.0°. Best body text is #000000 at 5.00:1 contrast (WCAG AA passes).

Color values

HEX#5871ED
RGBrgb(88, 113, 237)
HSLhsl(230, 81%, 64%)
HSVhsv(230, 63%, 93%)
CMYKcmyk(62.9%, 52.3%, 0%, 7.1%)
CIE-LABlab(51.83, 28.87, -65.48)
CIE-LCHlch(51.83, 71.56, 293.79°)
OKLaboklab(59.57% 0.0034 -0.1879)
OKLCHoklch(59.57% 0.188 271)
XYZxyz(25.2106, 19.9972, 82.6356)
Luminance0.2000 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5871ED #EDD458
analogous
#58BBED #5871ED #8958ED
triadic
#5871ED #ED5871 #71ED58
tetradic
#5871ED #ED58BB #EDD458 #58ED89
square
#5871ED #ED58BB #EDD458 #58ED89
split-complementary
#5871ED #ED8958 #BBED58
monochromatic
#142FB7 #2142E7 #5871ED #8FA0F3 #C6CFF9

Accessibility & contrast

On white

4.20
#5871ED on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.00
#5871ED on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5871ED
5.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5871ED#FFFFFF#000000##000000
##5871ED1.004.205.005.00
#FFFFFF4.201.0021.0021.00
#0000005.0021.001.001.00
##0000005.0021.001.001.00

Color blindness preview

Protanopia (red-blind)
#2182F1
Deuteranopia (green-blind)
#0075EA
Tritanopia (blue-blind)
#008EA4
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #5871ed;
/* rgb */ color: rgb(88, 113, 237);
/* oklch */ color: oklch(59.6% 0.188 271.0);
Tailwind
colors: {
  custom: {
    50: '#9599f4',
    500: '#5871ed',
    950: '#000000',
  },
}
SCSS
$custom: #5871ed;
$custom-light: #9599f4;
$custom-dark: #000000;
JSON
{
  "hex": "#5871ed",
  "rgb": {
    "r": 88,
    "g": 113,
    "b": 237
  },
  "hsl": {
    "h": 229.933,
    "s": 80.541,
    "l": 63.725
  },
  "oklch": {
    "l": 0.59571,
    "c": 0.18793,
    "h": 271
  },
  "luminance": 0.19999
}

Semantic roles & 50–950 ramp

primary
#5871ED
secondary
#EBE2B6
accent
#B909DD
background
#F9F9FF
surface
#F2F2FE
border
#CCCCD6
text
#0F0D17
muted
#7E7E85

Preview Lab

Preview with #5871ED

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

Preview Lab → · Contrast checker → · Palette generator →

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