#5997F5#5997F5

#5997F5 is a light, vivid blue. Relative luminance 0.308; OKLCH L 67.8% C 0.154 H 258.5°. Best body text is #000000 at 7.17:1 contrast (WCAG AA passes).

Color values

HEX#5997F5
RGBrgb(89, 151, 245)
HSLhsl(216, 89%, 65%)
HSVhsv(216, 64%, 96%)
CMYKcmyk(63.7%, 38.4%, 0%, 3.9%)
CIE-LABlab(62.38, 8.77, -53.02)
CIE-LCHlch(62.38, 53.74, 279.39°)
OKLaboklab(67.81% -0.0306 -0.1508)
OKLCHoklch(67.81% 0.154 258.5)
XYZxyz(31.6620, 30.8466, 90.6539)
Luminance0.3085 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5997F5 #F5B759
analogous
#59E5F5 #5997F5 #6959F5
triadic
#5997F5 #F55997 #97F559
tetradic
#5997F5 #F559E5 #F5B759 #59F569
square
#5997F5 #F559E5 #F5B759 #59F569
split-complementary
#5997F5 #F56959 #E5F559
monochromatic
#0C57C8 #1F73F2 #5997F5 #93BBF8 #CCDFFC

Accessibility & contrast

On white

2.93
#5997F5 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.17
#5997F5 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #5997F5
7.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5997F5#FFFFFF#000000##000000
##5997F51.002.937.177.17
#FFFFFF2.931.0021.0021.00
#0000007.1721.001.001.00
##0000007.1721.001.001.00

Color blindness preview

Protanopia (red-blind)
#6D9FF9
Deuteranopia (green-blind)
#5790F3
Tritanopia (blue-blind)
#00ACBA
Achromatopsia (no color)
#979797

Design tokens & code

CSS
--color: #5997f5;
/* rgb */ color: rgb(89, 151, 245);
/* oklch */ color: oklch(67.8% 0.154 258.5);
Tailwind
colors: {
  custom: {
    50: '#96b5f9',
    500: '#5997f5',
    950: '#000000',
  },
}
SCSS
$custom: #5997f5;
$custom-light: #96b5f9;
$custom-dark: #000000;
JSON
{
  "hex": "#5997f5",
  "rgb": {
    "r": 89,
    "g": 151,
    "b": 245
  },
  "hsl": {
    "h": 216.154,
    "s": 88.636,
    "l": 65.49
  },
  "oklch": {
    "l": 0.6781,
    "c": 0.15386,
    "h": 258.5
  },
  "luminance": 0.3085
}

Semantic roles & 50–950 ramp

primary
#5997F5
secondary
#EFDABB
accent
#8A00E5
background
#F9FBFF
surface
#F2F6FF
border
#CCD0D7
text
#0F1117
muted
#7E8085

Preview Lab

Preview with #5997F5

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

Preview Lab → · Contrast checker → · Palette generator →

#5997F5 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva