#5872E6#5872E6

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

Color values

HEX#5872E6
RGBrgb(88, 114, 230)
HSLhsl(229, 74%, 62%)
HSVhsv(229, 62%, 90%)
CMYKcmyk(61.7%, 50.4%, 0%, 9.8%)
CIE-LABlab(51.63, 25.90, -61.88)
CIE-LCHlch(51.63, 67.08, 292.72°)
OKLaboklab(59.28% 0.0019 -0.1773)
OKLCHoklch(59.28% 0.177 270.6)
XYZxyz(24.3199, 19.8204, 77.3917)
Luminance0.1982 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5872E6 #E6CC58
analogous
#58B9E6 #5872E6 #8558E6
triadic
#5872E6 #E65872 #72E658
tetradic
#5872E6 #E658B9 #E6CC58 #58E685
square
#5872E6 #E658B9 #E6CC58 #58E685
split-complementary
#5872E6 #E68558 #B9E658
monochromatic
#1934AA #2345DE #5872E6 #8D9FEE #C2CCF6

Accessibility & contrast

On white

4.23
#5872E6 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.96
#5872E6 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5872E6
4.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5872E6#FFFFFF#000000##000000
##5872E61.004.234.964.96
#FFFFFF4.231.0021.0021.00
#0000004.9621.001.001.00
##0000004.9621.001.001.00

Color blindness preview

Protanopia (red-blind)
#3082EA
Deuteranopia (green-blind)
#0175E4
Tritanopia (blue-blind)
#008DA1
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #5872e6;
/* rgb */ color: rgb(88, 114, 230);
/* oklch */ color: oklch(59.3% 0.177 270.6);
Tailwind
colors: {
  custom: {
    50: '#949aef',
    500: '#5872e6',
    950: '#000000',
  },
}
SCSS
$custom: #5872e6;
$custom-light: #949aef;
$custom-dark: #000000;
JSON
{
  "hex": "#5872e6",
  "rgb": {
    "r": 88,
    "g": 114,
    "b": 230
  },
  "hsl": {
    "h": 229.014,
    "s": 73.958,
    "l": 62.353
  },
  "oklch": {
    "l": 0.59275,
    "c": 0.17731,
    "h": 270.6
  },
  "luminance": 0.19823
}

Semantic roles & 50–950 ramp

primary
#5872E6
secondary
#E7DDB3
accent
#B20FD6
background
#F9F9FE
surface
#F2F2FD
border
#CCCCD5
text
#0E0E16
muted
#7E7E84

Preview Lab

Preview with #5872E6

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

Preview Lab → · Contrast checker → · Palette generator →

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