#5878F9#5878F9

#5878F9 is a mid, vivid blue. Relative luminance 0.223; OKLCH L 61.8% C 0.195 H 269.4°. Best body text is #000000 at 5.47:1 contrast (WCAG AA passes).

Color values

HEX#5878F9
RGBrgb(88, 120, 249)
HSLhsl(228, 93%, 66%)
HSVhsv(228, 65%, 98%)
CMYKcmyk(64.7%, 51.8%, 0%, 2.4%)
CIE-LABlab(54.39, 28.63, -68.02)
CIE-LCHlch(54.39, 73.80, 292.82°)
OKLaboklab(61.75% -0.002 -0.1953)
OKLCHoklch(61.75% 0.195 269.4)
XYZxyz(27.8340, 22.3446, 92.4503)
Luminance0.2235 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5878F9 #F9D958
analogous
#58C8F9 #5878F9 #8858F9
triadic
#5878F9 #F95878 #78F958
tetradic
#5878F9 #F958C8 #F9D958 #58F988
square
#5878F9 #F958C8 #F9D958 #58F988
split-complementary
#5878F9 #F98858 #C8F958
monochromatic
#072FCF #1D48F7 #5878F9 #93A8FB #CED8FD

Accessibility & contrast

On white

3.84
#5878F9 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.47
#5878F9 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5878F9
5.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5878F9#FFFFFF#000000##000000
##5878F91.003.845.475.47
#FFFFFF3.841.0021.0021.00
#0000005.4721.001.001.00
##0000005.4721.001.001.00

Color blindness preview

Protanopia (red-blind)
#258AFE
Deuteranopia (green-blind)
#007BF6
Tritanopia (blue-blind)
#0096AD
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #5878f9;
/* rgb */ color: rgb(88, 120, 249);
/* oklch */ color: oklch(61.8% 0.195 269.4);
Tailwind
colors: {
  custom: {
    50: '#979efc',
    500: '#5878f9',
    950: '#000000',
  },
}
SCSS
$custom: #5878f9;
$custom-light: #979efc;
$custom-dark: #000000;
JSON
{
  "hex": "#5878f9",
  "rgb": {
    "r": 88,
    "g": 120,
    "b": 249
  },
  "hsl": {
    "h": 228.075,
    "s": 93.064,
    "l": 66.078
  },
  "oklch": {
    "l": 0.61751,
    "c": 0.19532,
    "h": 269.4
  },
  "luminance": 0.22347
}

Semantic roles & 50–950 ramp

primary
#5878F9
secondary
#F1E6BC
accent
#B800E6
background
#FAF9FF
surface
#F3F2FF
border
#CDCCD7
text
#0F0E18
muted
#7F7E86

Preview Lab

Preview with #5878F9

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

Preview Lab → · Contrast checker → · Palette generator →

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