#5876F5#5876F5

#5876F5 is a mid, vivid blue. Relative luminance 0.216; OKLCH L 61.1% C 0.192 H 269.9°. Best body text is #000000 at 5.32:1 contrast (WCAG AA passes).

Color values

HEX#5876F5
RGBrgb(88, 118, 245)
HSLhsl(229, 89%, 65%)
HSVhsv(229, 64%, 96%)
CMYKcmyk(64.1%, 51.8%, 0%, 3.9%)
CIE-LABlab(53.62, 28.50, -67.04)
CIE-LCHlch(53.62, 72.85, 293.03°)
OKLaboklab(61.09% -0.0005 -0.1924)
OKLCHoklch(61.09% 0.192 269.9)
XYZxyz(26.9788, 21.6217, 89.1201)
Luminance0.2162 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5876F5 #F5D758
analogous
#58C5F5 #5876F5 #8858F5
triadic
#5876F5 #F55876 #76F558
tetradic
#5876F5 #F558C5 #F5D758 #58F588
square
#5876F5 #F558C5 #F5D758 #58F588
split-complementary
#5876F5 #F58858 #C5F558
monochromatic
#0C30C7 #1E47F2 #5876F5 #92A5F8 #CBD5FC

Accessibility & contrast

On white

3.94
#5876F5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.32
#5876F5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5876F5
5.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5876F5#FFFFFF#000000##000000
##5876F51.003.945.325.32
#FFFFFF3.941.0021.0021.00
#0000005.3221.001.001.00
##0000005.3221.001.001.00

Color blindness preview

Protanopia (red-blind)
#2587F9
Deuteranopia (green-blind)
#0079F2
Tritanopia (blue-blind)
#0094AA
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #5876f5;
/* rgb */ color: rgb(88, 118, 245);
/* oklch */ color: oklch(61.1% 0.192 269.9);
Tailwind
colors: {
  custom: {
    50: '#969df9',
    500: '#5876f5',
    950: '#000000',
  },
}
SCSS
$custom: #5876f5;
$custom-light: #969df9;
$custom-dark: #000000;
JSON
{
  "hex": "#5876f5",
  "rgb": {
    "r": 88,
    "g": 118,
    "b": 245
  },
  "hsl": {
    "h": 228.535,
    "s": 88.701,
    "l": 65.294
  },
  "oklch": {
    "l": 0.61088,
    "c": 0.19245,
    "h": 269.9
  },
  "luminance": 0.21624
}

Semantic roles & 50–950 ramp

primary
#5876F5
secondary
#EFE5BA
accent
#BA00E5
background
#FAF9FF
surface
#F3F2FF
border
#CDCCD7
text
#0F0E17
muted
#7F7E85

Preview Lab

Preview with #5876F5

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

Preview Lab → · Contrast checker → · Palette generator →

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