#5876E5#5876E5

#5876E5 is a mid, vivid blue. Relative luminance 0.207; OKLCH L 60.0% C 0.171 H 269.3°. Best body text is #000000 at 5.14:1 contrast (WCAG AA passes).

Color values

HEX#5876E5
RGBrgb(88, 118, 229)
HSLhsl(227, 73%, 62%)
HSVhsv(227, 62%, 90%)
CMYKcmyk(61.6%, 48.5%, 0%, 10.2%)
CIE-LABlab(52.60, 23.11, -59.75)
CIE-LCHlch(52.60, 64.07, 291.14°)
OKLaboklab(59.99% -0.002 -0.171)
OKLCHoklch(59.99% 0.171 269.3)
XYZxyz(24.6410, 20.6866, 76.8079)
Luminance0.2069 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5876E5 #E5C758
analogous
#58BDE5 #5876E5 #8158E5
triadic
#5876E5 #E55876 #76E558
tetradic
#5876E5 #E558BD #E5C758 #58E581
square
#5876E5 #E558BD #E5C758 #58E581
split-complementary
#5876E5 #E58158 #BDE558
monochromatic
#1A38A8 #234BDD #5876E5 #8DA1ED #C2CDF5

Accessibility & contrast

On white

4.09
#5876E5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.14
#5876E5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5876E5
5.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5876E5#FFFFFF#000000##000000
##5876E51.004.095.145.14
#FFFFFF4.091.0021.0021.00
#0000005.1421.001.001.00
##0000005.1421.001.001.00

Color blindness preview

Protanopia (red-blind)
#3C84E9
Deuteranopia (green-blind)
#1E78E3
Tritanopia (blue-blind)
#008FA3
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #5876e5;
/* rgb */ color: rgb(88, 118, 229);
/* oklch */ color: oklch(60.0% 0.171 269.3);
Tailwind
colors: {
  custom: {
    50: '#939dee',
    500: '#5876e5',
    950: '#000000',
  },
}
SCSS
$custom: #5876e5;
$custom-light: #939dee;
$custom-dark: #000000;
JSON
{
  "hex": "#5876e5",
  "rgb": {
    "r": 88,
    "g": 118,
    "b": 229
  },
  "hsl": {
    "h": 227.234,
    "s": 73.057,
    "l": 62.157
  },
  "oklch": {
    "l": 0.59991,
    "c": 0.17101,
    "h": 269.3
  },
  "luminance": 0.20689
}

Semantic roles & 50–950 ramp

primary
#5876E5
secondary
#E6DBB3
accent
#AB10D5
background
#F9F9FE
surface
#F2F2FD
border
#CCCCD5
text
#0E0E16
muted
#7E7E84

Preview Lab

Preview with #5876E5

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

Preview Lab → · Contrast checker → · Palette generator →

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