#5A97F7#5A97F7

#5A97F7 is a light, vivid blue. Relative luminance 0.310; OKLCH L 68.0% C 0.156 H 259.1°. Best body text is #000000 at 7.20:1 contrast (WCAG AA passes).

Color values

HEX#5A97F7
RGBrgb(90, 151, 247)
HSLhsl(217, 91%, 66%)
HSVhsv(217, 64%, 97%)
CMYKcmyk(63.6%, 38.9%, 0%, 3.1%)
CIE-LABlab(62.52, 9.61, -53.88)
CIE-LCHlch(62.52, 54.73, 280.11°)
OKLaboklab(67.97% -0.0294 -0.1533)
OKLCHoklch(67.97% 0.156 259.1)
XYZxyz(32.0656, 31.0192, 92.2751)
Luminance0.3102 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A97F7 #F7BA5A
analogous
#5AE5F7 #5A97F7 #6B5AF7
triadic
#5A97F7 #F75A97 #97F75A
tetradic
#5A97F7 #F75AE5 #F7BA5A #5AF76B
square
#5A97F7 #F75AE5 #F7BA5A #5AF76B
split-complementary
#5A97F7 #F76B5A #E5F75A
monochromatic
#0A56CD #2072F4 #5A97F7 #94BCFA #CFE1FD

Accessibility & contrast

On white

2.91
#5A97F7 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.20
#5A97F7 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #5A97F7
7.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A97F7#FFFFFF#000000##000000
##5A97F71.002.917.207.20
#FFFFFF2.911.0021.0021.00
#0000007.2021.001.001.00
##0000007.2021.001.001.00

Color blindness preview

Protanopia (red-blind)
#6C9FFB
Deuteranopia (green-blind)
#5590F5
Tritanopia (blue-blind)
#00ADBB
Achromatopsia (no color)
#979797

Design tokens & code

CSS
--color: #5a97f7;
/* rgb */ color: rgb(90, 151, 247);
/* oklch */ color: oklch(68.0% 0.156 259.1);
Tailwind
colors: {
  custom: {
    50: '#96b5fa',
    500: '#5a97f7',
    950: '#000000',
  },
}
SCSS
$custom: #5a97f7;
$custom-light: #96b5fa;
$custom-dark: #000000;
JSON
{
  "hex": "#5a97f7",
  "rgb": {
    "r": 90,
    "g": 151,
    "b": 247
  },
  "hsl": {
    "h": 216.688,
    "s": 90.751,
    "l": 66.078
  },
  "oklch": {
    "l": 0.67969,
    "c": 0.15609,
    "h": 259.1
  },
  "luminance": 0.31022
}

Semantic roles & 50–950 ramp

primary
#5A97F7
secondary
#F0DCBD
accent
#8C00E6
background
#F9FBFF
surface
#F2F6FF
border
#CCD0D7
text
#0F1117
muted
#7E8085

Preview Lab

Preview with #5A97F7

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

Preview Lab → · Contrast checker → · Palette generator →

#5A97F7 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva