#5978F7#5978F7

#5978F7 is a mid, vivid blue. Relative luminance 0.223; OKLCH L 61.7% C 0.192 H 269.7°. Best body text is #000000 at 5.45:1 contrast (WCAG AA passes).

Color values

HEX#5978F7
RGBrgb(89, 120, 247)
HSLhsl(228, 91%, 66%)
HSVhsv(228, 64%, 97%)
CMYKcmyk(64%, 51.4%, 0%, 3.1%)
CIE-LABlab(54.31, 28.11, -67.04)
CIE-LCHlch(54.31, 72.69, 292.75°)
OKLaboklab(61.66% -0.0012 -0.1924)
OKLCHoklch(61.66% 0.192 269.7)
XYZxyz(27.6191, 22.2697, 90.8206)
Luminance0.2227 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5978F7 #F7D859
analogous
#59C7F7 #5978F7 #8959F7
triadic
#5978F7 #F75978 #78F759
tetradic
#5978F7 #F759C7 #F7D859 #59F789
square
#5978F7 #F759C7 #F7D859 #59F789
split-complementary
#5978F7 #F78959 #C7F759
monochromatic
#0A30CC #1F49F4 #5978F7 #93A7FA #CED7FD

Accessibility & contrast

On white

3.85
#5978F7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.45
#5978F7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5978F7
5.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5978F7#FFFFFF#000000##000000
##5978F71.003.855.455.45
#FFFFFF3.851.0021.0021.00
#0000005.4521.001.001.00
##0000005.4521.001.001.00

Color blindness preview

Protanopia (red-blind)
#2989FB
Deuteranopia (green-blind)
#007BF4
Tritanopia (blue-blind)
#0096AC
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #5978f7;
/* rgb */ color: rgb(89, 120, 247);
/* oklch */ color: oklch(61.7% 0.192 269.7);
Tailwind
colors: {
  custom: {
    50: '#979efb',
    500: '#5978f7',
    950: '#000000',
  },
}
SCSS
$custom: #5978f7;
$custom-light: #979efb;
$custom-dark: #000000;
JSON
{
  "hex": "#5978f7",
  "rgb": {
    "r": 89,
    "g": 120,
    "b": 247
  },
  "hsl": {
    "h": 228.228,
    "s": 90.805,
    "l": 65.882
  },
  "oklch": {
    "l": 0.61663,
    "c": 0.19239,
    "h": 269.7
  },
  "luminance": 0.22272
}

Semantic roles & 50–950 ramp

primary
#5978F7
secondary
#F0E6BC
accent
#B800E6
background
#FAF9FF
surface
#F3F2FF
border
#CDCCD7
text
#0F0E17
muted
#7F7E85

Preview Lab

Preview with #5978F7

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

Preview Lab → · Contrast checker → · Palette generator →

#5978F7 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva