#5978E7#5978E7

#5978E7 is a mid, vivid blue. Relative luminance 0.213; OKLCH L 60.6% C 0.171 H 269.1°. Best body text is #000000 at 5.27:1 contrast (WCAG AA passes).

Color values

HEX#5978E7
RGBrgb(89, 120, 231)
HSLhsl(227, 75%, 63%)
HSVhsv(227, 61%, 91%)
CMYKcmyk(61.5%, 48.1%, 0%, 9.4%)
CIE-LABlab(53.30, 22.73, -59.75)
CIE-LCHlch(53.30, 63.93, 290.83°)
OKLaboklab(60.58% -0.0028 -0.1709)
OKLCHoklch(60.58% 0.171 269.1)
XYZxyz(25.2552, 21.3241, 78.3709)
Luminance0.2133 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5978E7 #E7C859
analogous
#59BFE7 #5978E7 #8159E7
triadic
#5978E7 #E75978 #78E759
tetradic
#5978E7 #E759BF #E7C859 #59E781
square
#5978E7 #E759BF #E7C859 #59E781
split-complementary
#5978E7 #E78159 #BFE759
monochromatic
#1939AD #244DDF #5978E7 #8EA3EF #C4CFF6

Accessibility & contrast

On white

3.99
#5978E7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.27
#5978E7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5978E7
5.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5978E7#FFFFFF#000000##000000
##5978E71.003.995.275.27
#FFFFFF3.991.0021.0021.00
#0000005.2721.001.001.00
##0000005.2721.001.001.00

Color blindness preview

Protanopia (red-blind)
#3F86EB
Deuteranopia (green-blind)
#2279E5
Tritanopia (blue-blind)
#0091A4
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #5978e7;
/* rgb */ color: rgb(89, 120, 231);
/* oklch */ color: oklch(60.6% 0.171 269.1);
Tailwind
colors: {
  custom: {
    50: '#949eef',
    500: '#5978e7',
    950: '#000000',
  },
}
SCSS
$custom: #5978e7;
$custom-light: #949eef;
$custom-dark: #000000;
JSON
{
  "hex": "#5978e7",
  "rgb": {
    "r": 89,
    "g": 120,
    "b": 231
  },
  "hsl": {
    "h": 226.901,
    "s": 74.737,
    "l": 62.745
  },
  "oklch": {
    "l": 0.60575,
    "c": 0.17097,
    "h": 269.1
  },
  "luminance": 0.21326
}

Semantic roles & 50–950 ramp

primary
#5978E7
secondary
#E8DCB4
accent
#AB0FD7
background
#F9F9FE
surface
#F2F2FD
border
#CCCCD5
text
#0E0E16
muted
#7E7E84

Preview Lab

Preview with #5978E7

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

Preview Lab → · Contrast checker → · Palette generator →

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