#5871FA#5871FA

#5871FA is a mid, highly saturated blue. Relative luminance 0.208; OKLCH L 60.5% C 0.205 H 271.2°. Best body text is #000000 at 5.16:1 contrast (WCAG AA passes).

Color values

HEX#5871FA
RGBrgb(88, 113, 250)
HSLhsl(231, 94%, 66%)
HSVhsv(231, 65%, 98%)
CMYKcmyk(64.8%, 54.8%, 0%, 2%)
CIE-LABlab(52.71, 33.23, -71.29)
CIE-LCHlch(52.71, 78.66, 294.99°)
OKLaboklab(60.51% 0.0041 -0.205)
OKLCHoklch(60.51% 0.205 271.2)
XYZxyz(27.1791, 20.7846, 93.0035)
Luminance0.2079 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5871FA #FAE158
analogous
#58C2FA #5871FA #9058FA
triadic
#5871FA #FA5871 #71FA58
tetradic
#5871FA #FA58C2 #FAE158 #58FA90
square
#5871FA #FA58C2 #FAE158 #58FA90
split-complementary
#5871FA #FA9058 #C2FA58
monochromatic
#0626D1 #1D3EF8 #5871FA #93A4FC #CFD6FE

Accessibility & contrast

On white

4.07
#5871FA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.16
#5871FA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5871FA
5.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5871FA#FFFFFF#000000##000000
##5871FA1.004.075.165.16
#FFFFFF4.071.0021.0021.00
#0000005.1621.001.001.00
##0000005.1621.001.001.00

Color blindness preview

Protanopia (red-blind)
#0085FF
Deuteranopia (green-blind)
#0077F7
Tritanopia (blue-blind)
#0092AB
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #5871fa;
/* rgb */ color: rgb(88, 113, 250);
/* oklch */ color: oklch(60.5% 0.205 271.2);
Tailwind
colors: {
  custom: {
    50: '#9799fd',
    500: '#5871fa',
    950: '#000000',
  },
}
SCSS
$custom: #5871fa;
$custom-light: #9799fd;
$custom-dark: #000000;
JSON
{
  "hex": "#5871fa",
  "rgb": {
    "r": 88,
    "g": 113,
    "b": 250
  },
  "hsl": {
    "h": 230.741,
    "s": 94.186,
    "l": 66.275
  },
  "oklch": {
    "l": 0.6051,
    "c": 0.20505,
    "h": 271.2
  },
  "luminance": 0.20787
}

Semantic roles & 50–950 ramp

primary
#5871FA
secondary
#F1E9BC
accent
#C200E6
background
#FAF9FF
surface
#F4F2FF
border
#CECCD7
text
#0F0E18
muted
#7F7E86

Preview Lab

Preview with #5871FA

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

Preview Lab → · Contrast checker → · Palette generator →

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