#5881F5#5881F5

#5881F5 is a light, vivid blue. Relative luminance 0.244; OKLCH L 63.2% C 0.179 H 266.6°. Best body text is #000000 at 5.87:1 contrast (WCAG AA passes).

Color values

HEX#5881F5
RGBrgb(88, 129, 245)
HSLhsl(224, 89%, 65%)
HSVhsv(224, 64%, 96%)
CMYKcmyk(64.1%, 47.3%, 0%, 3.9%)
CIE-LABlab(56.45, 21.78, -62.49)
CIE-LCHlch(56.45, 66.17, 289.22°)
OKLaboklab(63.23% -0.0105 -0.1789)
OKLCHoklch(63.23% 0.179 266.6)
XYZxyz(28.3505, 24.3652, 89.5774)
Luminance0.2437 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5881F5 #F5CC58
analogous
#58D0F5 #5881F5 #7D58F5
triadic
#5881F5 #F55881 #81F558
tetradic
#5881F5 #F558D0 #F5CC58 #58F57D
square
#5881F5 #F558D0 #F5CC58 #58F57D
split-complementary
#5881F5 #F57D58 #D0F558
monochromatic
#0C3DC7 #1E55F2 #5881F5 #92ADF8 #CBD8FC

Accessibility & contrast

On white

3.58
#5881F5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.87
#5881F5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5881F5
5.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5881F5#FFFFFF#000000##000000
##5881F51.003.585.875.87
#FFFFFF3.581.0021.0021.00
#0000005.8721.001.001.00
##0000005.8721.001.001.00

Color blindness preview

Protanopia (red-blind)
#458FF9
Deuteranopia (green-blind)
#2381F3
Tritanopia (blue-blind)
#009CAF
Achromatopsia (no color)
#878787

Design tokens & code

CSS
--color: #5881f5;
/* rgb */ color: rgb(88, 129, 245);
/* oklch */ color: oklch(63.2% 0.179 266.6);
Tailwind
colors: {
  custom: {
    50: '#96a5f9',
    500: '#5881f5',
    950: '#000000',
  },
}
SCSS
$custom: #5881f5;
$custom-light: #96a5f9;
$custom-dark: #000000;
JSON
{
  "hex": "#5881f5",
  "rgb": {
    "r": 88,
    "g": 129,
    "b": 245
  },
  "hsl": {
    "h": 224.331,
    "s": 88.701,
    "l": 65.294
  },
  "oklch": {
    "l": 0.63234,
    "c": 0.17921,
    "h": 266.6
  },
  "luminance": 0.24368
}

Semantic roles & 50–950 ramp

primary
#5881F5
secondary
#EFE1BA
accent
#A900E5
background
#F9FAFF
surface
#F2F4FF
border
#CCCED7
text
#0F0F17
muted
#7E7F85

Preview Lab

Preview with #5881F5

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

Preview Lab → · Contrast checker → · Palette generator →

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