#5979F7#5979F7

#5979F7 is a mid, vivid blue. Relative luminance 0.225; OKLCH L 61.9% C 0.191 H 269.4°. Best body text is #000000 at 5.50:1 contrast (WCAG AA passes).

Color values

HEX#5979F7
RGBrgb(89, 121, 247)
HSLhsl(228, 91%, 66%)
HSVhsv(228, 64%, 97%)
CMYKcmyk(64%, 51%, 0%, 3.1%)
CIE-LABlab(54.57, 27.50, -66.63)
CIE-LCHlch(54.57, 72.08, 292.43°)
OKLaboklab(61.86% -0.0021 -0.1912)
OKLCHoklch(61.86% 0.191 269.4)
XYZxyz(27.7400, 22.5115, 90.8609)
Luminance0.2251 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5979F7 #F7D759
analogous
#59C8F7 #5979F7 #8859F7
triadic
#5979F7 #F75979 #79F759
tetradic
#5979F7 #F759C8 #F7D759 #59F788
square
#5979F7 #F759C8 #F7D759 #59F788
split-complementary
#5979F7 #F78859 #C8F759
monochromatic
#0A31CC #1F4AF4 #5979F7 #93A8FA #CED7FD

Accessibility & contrast

On white

3.82
#5979F7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.50
#5979F7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5979F7
5.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5979F7#FFFFFF#000000##000000
##5979F71.003.825.505.50
#FFFFFF3.821.0021.0021.00
#0000005.5021.001.001.00
##0000005.5021.001.001.00

Color blindness preview

Protanopia (red-blind)
#2D8AFB
Deuteranopia (green-blind)
#007CF4
Tritanopia (blue-blind)
#0097AD
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #5979f7;
/* rgb */ color: rgb(89, 121, 247);
/* oklch */ color: oklch(61.9% 0.191 269.4);
Tailwind
colors: {
  custom: {
    50: '#979ffb',
    500: '#5979f7',
    950: '#000000',
  },
}
SCSS
$custom: #5979f7;
$custom-light: #979ffb;
$custom-dark: #000000;
JSON
{
  "hex": "#5979f7",
  "rgb": {
    "r": 89,
    "g": 121,
    "b": 247
  },
  "hsl": {
    "h": 227.848,
    "s": 90.805,
    "l": 65.882
  },
  "oklch": {
    "l": 0.61855,
    "c": 0.19118,
    "h": 269.4
  },
  "luminance": 0.22514
}

Semantic roles & 50–950 ramp

primary
#5979F7
secondary
#F0E5BC
accent
#B700E6
background
#FAF9FF
surface
#F3F2FF
border
#CDCCD7
text
#0F0E17
muted
#7F7E85

Preview Lab

Preview with #5979F7

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

Preview Lab → · Contrast checker → · Palette generator →

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