#5872E5#5872E5

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

Color values

HEX#5872E5
RGBrgb(88, 114, 229)
HSLhsl(229, 73%, 62%)
HSVhsv(229, 62%, 90%)
CMYKcmyk(61.6%, 50.2%, 0%, 10.2%)
CIE-LABlab(51.57, 25.57, -61.42)
CIE-LCHlch(51.57, 66.53, 292.60°)
OKLaboklab(59.21% 0.0018 -0.1759)
OKLCHoklch(59.21% 0.176 270.6)
XYZxyz(24.1799, 19.7644, 76.6542)
Luminance0.1977 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5872E5 #E5CB58
analogous
#58B9E5 #5872E5 #8558E5
triadic
#5872E5 #E55872 #72E558
tetradic
#5872E5 #E558B9 #E5CB58 #58E585
square
#5872E5 #E558B9 #E5CB58 #58E585
split-complementary
#5872E5 #E58558 #B9E558
monochromatic
#1A34A8 #2345DD #5872E5 #8D9FED #C2CBF5

Accessibility & contrast

On white

4.24
#5872E5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.95
#5872E5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5872E5
4.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5872E5#FFFFFF#000000##000000
##5872E51.004.244.954.95
#FFFFFF4.241.0021.0021.00
#0000004.9521.001.001.00
##0000004.9521.001.001.00

Color blindness preview

Protanopia (red-blind)
#3281E9
Deuteranopia (green-blind)
#0775E3
Tritanopia (blue-blind)
#008DA1
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #5872e5;
/* rgb */ color: rgb(88, 114, 229);
/* oklch */ color: oklch(59.2% 0.176 270.6);
Tailwind
colors: {
  custom: {
    50: '#949aee',
    500: '#5872e5',
    950: '#000000',
  },
}
SCSS
$custom: #5872e5;
$custom-light: #949aee;
$custom-dark: #000000;
JSON
{
  "hex": "#5872e5",
  "rgb": {
    "r": 88,
    "g": 114,
    "b": 229
  },
  "hsl": {
    "h": 228.936,
    "s": 73.057,
    "l": 62.157
  },
  "oklch": {
    "l": 0.59206,
    "c": 0.17596,
    "h": 270.6
  },
  "luminance": 0.19766
}

Semantic roles & 50–950 ramp

primary
#5872E5
secondary
#E6DDB3
accent
#B110D5
background
#F9F9FE
surface
#F2F2FD
border
#CCCCD5
text
#0E0E16
muted
#7E7E84

Preview Lab

Preview with #5872E5

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

Preview Lab → · Contrast checker → · Palette generator →

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