#5B97F7#5B97F7

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

Color values

HEX#5B97F7
RGBrgb(91, 151, 247)
HSLhsl(217, 91%, 66%)
HSVhsv(217, 63%, 97%)
CMYKcmyk(63.2%, 38.9%, 0%, 3.1%)
CIE-LABlab(62.57, 9.78, -53.81)
CIE-LCHlch(62.57, 54.69, 280.30°)
OKLaboklab(68.01% -0.0286 -0.1531)
OKLCHoklch(68.01% 0.156 259.4)
XYZxyz(32.1635, 31.0697, 92.2797)
Luminance0.3107 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B97F7 #F7BB5B
analogous
#5BE5F7 #5B97F7 #6D5BF7
triadic
#5B97F7 #F75B97 #97F75B
tetradic
#5B97F7 #F75BE5 #F7BB5B #5BF76D
square
#5B97F7 #F75BE5 #F7BB5B #5BF76D
split-complementary
#5B97F7 #F76D5B #E5F75B
monochromatic
#0A55CE #2172F4 #5B97F7 #95BCFA #D0E1FD

Accessibility & contrast

On white

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

On black

7.21
#5B97F7 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #5B97F7
7.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B97F7#FFFFFF#000000##000000
##5B97F71.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)
#6C9FFB
Deuteranopia (green-blind)
#5691F5
Tritanopia (blue-blind)
#00ADBB
Achromatopsia (no color)
#979797

Design tokens & code

CSS
--color: #5b97f7;
/* rgb */ color: rgb(91, 151, 247);
/* oklch */ color: oklch(68.0% 0.156 259.4);
Tailwind
colors: {
  custom: {
    50: '#97b5fa',
    500: '#5b97f7',
    950: '#000000',
  },
}
SCSS
$custom: #5b97f7;
$custom-light: #97b5fa;
$custom-dark: #000000;
JSON
{
  "hex": "#5b97f7",
  "rgb": {
    "r": 91,
    "g": 151,
    "b": 247
  },
  "hsl": {
    "h": 216.923,
    "s": 90.698,
    "l": 66.275
  },
  "oklch": {
    "l": 0.68013,
    "c": 0.15573,
    "h": 259.4
  },
  "luminance": 0.31073
}

Semantic roles & 50–950 ramp

primary
#5B97F7
secondary
#F0DDBD
accent
#8D00E6
background
#F9FBFF
surface
#F2F6FF
border
#CCD0D7
text
#0F1117
muted
#7E8085

Preview Lab

Preview with #5B97F7

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

Preview Lab → · Contrast checker → · Palette generator →

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