#5877F9#5877F9

#5877F9 is a mid, vivid blue. Relative luminance 0.221; OKLCH L 61.6% C 0.197 H 269.7°. Best body text is #000000 at 5.42:1 contrast (WCAG AA passes).

Color values

HEX#5877F9
RGBrgb(88, 119, 249)
HSLhsl(228, 93%, 66%)
HSVhsv(228, 65%, 98%)
CMYKcmyk(64.7%, 52.2%, 0%, 2.4%)
CIE-LABlab(54.14, 29.24, -68.43)
CIE-LCHlch(54.14, 74.41, 293.13°)
OKLaboklab(61.56% -0.0011 -0.1965)
OKLCHoklch(61.56% 0.197 269.7)
XYZxyz(27.7144, 22.1054, 92.4104)
Luminance0.2211 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5877F9 #F9DA58
analogous
#58C7F9 #5877F9 #8958F9
triadic
#5877F9 #F95877 #77F958
tetradic
#5877F9 #F958C7 #F9DA58 #58F989
square
#5877F9 #F958C7 #F9DA58 #58F989
split-complementary
#5877F9 #F98958 #C7F958
monochromatic
#072ECF #1D47F7 #5877F9 #93A7FB #CED7FD

Accessibility & contrast

On white

3.87
#5877F9 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.42
#5877F9 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5877F9
5.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5877F9#FFFFFF#000000##000000
##5877F91.003.875.425.42
#FFFFFF3.871.0021.0021.00
#0000005.4221.001.001.00
##0000005.4221.001.001.00

Color blindness preview

Protanopia (red-blind)
#2189FE
Deuteranopia (green-blind)
#007AF6
Tritanopia (blue-blind)
#0096AD
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #5877f9;
/* rgb */ color: rgb(88, 119, 249);
/* oklch */ color: oklch(61.6% 0.197 269.7);
Tailwind
colors: {
  custom: {
    50: '#979dfc',
    500: '#5877f9',
    950: '#000000',
  },
}
SCSS
$custom: #5877f9;
$custom-light: #979dfc;
$custom-dark: #000000;
JSON
{
  "hex": "#5877f9",
  "rgb": {
    "r": 88,
    "g": 119,
    "b": 249
  },
  "hsl": {
    "h": 228.447,
    "s": 93.064,
    "l": 66.078
  },
  "oklch": {
    "l": 0.6156,
    "c": 0.19652,
    "h": 269.7
  },
  "luminance": 0.22108
}

Semantic roles & 50–950 ramp

primary
#5877F9
secondary
#F1E7BC
accent
#B900E6
background
#FAF9FF
surface
#F3F2FF
border
#CDCCD7
text
#0F0E18
muted
#7F7E86

Preview Lab

Preview with #5877F9

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

Preview Lab → · Contrast checker → · Palette generator →

#5877F9 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva