#5797FA#5797FA

#5797FA is a light, vivid blue. Relative luminance 0.311; OKLCH L 68.0% C 0.161 H 258.9°. Best body text is #000000 at 7.21:1 contrast (WCAG AA passes).

Color values

HEX#5797FA
RGBrgb(87, 151, 250)
HSLhsl(216, 94%, 66%)
HSVhsv(216, 65%, 98%)
CMYKcmyk(65.2%, 39.6%, 0%, 2%)
CIE-LABlab(62.56, 10.12, -55.48)
CIE-LCHlch(62.56, 56.39, 280.34°)
OKLaboklab(68.01% -0.0311 -0.158)
OKLCHoklch(68.01% 0.161 258.9)
XYZxyz(32.2462, 31.0584, 94.7194)
Luminance0.3106 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5797FA #FABA57
analogous
#57E8FA #5797FA #6857FA
triadic
#5797FA #FA5797 #97FA57
tetradic
#5797FA #FA57E8 #FABA57 #57FA68
square
#5797FA #FA57E8 #FABA57 #57FA68
split-complementary
#5797FA #FA6857 #E8FA57
monochromatic
#0656D0 #1C72F8 #5797FA #92BCFC #CEE1FE

Accessibility & contrast

On white

2.91
#5797FA on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.21
#5797FA on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #5797FA
7.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5797FA#FFFFFF#000000##000000
##5797FA1.002.917.217.21
#FFFFFF2.911.0021.0021.00
#0000007.2121.001.001.00
##0000007.2121.001.001.00

Color blindness preview

Protanopia (red-blind)
#6A9FFE
Deuteranopia (green-blind)
#5290F8
Tritanopia (blue-blind)
#00AEBC
Achromatopsia (no color)
#979797

Design tokens & code

CSS
--color: #5797fa;
/* rgb */ color: rgb(87, 151, 250);
/* oklch */ color: oklch(68.0% 0.161 258.9);
Tailwind
colors: {
  custom: {
    50: '#95b5fc',
    500: '#5797fa',
    950: '#000000',
  },
}
SCSS
$custom: #5797fa;
$custom-light: #95b5fc;
$custom-dark: #000000;
JSON
{
  "hex": "#5797fa",
  "rgb": {
    "r": 87,
    "g": 151,
    "b": 250
  },
  "hsl": {
    "h": 216.442,
    "s": 94.22,
    "l": 66.078
  },
  "oklch": {
    "l": 0.68011,
    "c": 0.16107,
    "h": 258.9
  },
  "luminance": 0.31062
}

Semantic roles & 50–950 ramp

primary
#5797FA
secondary
#F1DCBC
accent
#8B00E6
background
#F9FBFF
surface
#F2F6FF
border
#CCD0D7
text
#0F1117
muted
#7E8085

Preview Lab

Preview with #5797FA

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

Preview Lab → · Contrast checker → · Palette generator →

#5797FA Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva