#5872E7#5872E7

#5872E7 is a mid, vivid blue. Relative luminance 0.199; OKLCH L 59.3% C 0.179 H 270.6°. Best body text is #000000 at 4.98:1 contrast (WCAG AA passes).

Color values

HEX#5872E7
RGBrgb(88, 114, 231)
HSLhsl(229, 75%, 63%)
HSVhsv(229, 62%, 91%)
CMYKcmyk(61.9%, 50.6%, 0%, 9.4%)
CIE-LABlab(51.70, 26.24, -62.34)
CIE-LCHlch(51.70, 67.63, 292.83°)
OKLaboklab(59.34% 0.002 -0.1786)
OKLCHoklch(59.34% 0.179 270.6)
XYZxyz(24.4608, 19.8768, 78.1334)
Luminance0.1988 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5872E7 #E7CD58
analogous
#58B9E7 #5872E7 #8658E7
triadic
#5872E7 #E75872 #72E758
tetradic
#5872E7 #E758B9 #E7CD58 #58E786
square
#5872E7 #E758B9 #E7CD58 #58E786
split-complementary
#5872E7 #E78658 #B9E758
monochromatic
#1933AC #2245DF #5872E7 #8E9FEF #C3CCF6

Accessibility & contrast

On white

4.22
#5872E7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.98
#5872E7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5872E7
4.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5872E7#FFFFFF#000000##000000
##5872E71.004.224.984.98
#FFFFFF4.221.0021.0021.00
#0000004.9821.001.001.00
##0000004.9821.001.001.00

Color blindness preview

Protanopia (red-blind)
#2F82EB
Deuteranopia (green-blind)
#0075E5
Tritanopia (blue-blind)
#008DA2
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #5872e7;
/* rgb */ color: rgb(88, 114, 231);
/* oklch */ color: oklch(59.3% 0.179 270.6);
Tailwind
colors: {
  custom: {
    50: '#949aef',
    500: '#5872e7',
    950: '#000000',
  },
}
SCSS
$custom: #5872e7;
$custom-light: #949aef;
$custom-dark: #000000;
JSON
{
  "hex": "#5872e7",
  "rgb": {
    "r": 88,
    "g": 114,
    "b": 231
  },
  "hsl": {
    "h": 229.091,
    "s": 74.869,
    "l": 62.549
  },
  "oklch": {
    "l": 0.59344,
    "c": 0.17866,
    "h": 270.6
  },
  "luminance": 0.19879
}

Semantic roles & 50–950 ramp

primary
#5872E7
secondary
#E7DEB3
accent
#B30ED7
background
#F9F9FE
surface
#F2F2FD
border
#CCCCD5
text
#0E0E17
muted
#7E7E85

Preview Lab

Preview with #5872E7

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

Preview Lab → · Contrast checker → · Palette generator →

#5872E7 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva