#5A97F2#5A97F2

#5A97F2 is a light, vivid blue. Relative luminance 0.307; OKLCH L 67.7% C 0.150 H 258.2°. Best body text is #000000 at 7.14:1 contrast (WCAG AA passes).

Color values

HEX#5A97F2
RGBrgb(90, 151, 242)
HSLhsl(216, 85%, 65%)
HSVhsv(216, 63%, 95%)
CMYKcmyk(62.8%, 37.6%, 0%, 5.1%)
CIE-LABlab(62.27, 7.94, -51.54)
CIE-LCHlch(62.27, 52.15, 278.76°)
OKLaboklab(67.69% -0.0305 -0.1464)
OKLCHoklch(67.69% 0.15 258.2)
XYZxyz(31.3044, 30.7147, 88.2660)
Luminance0.3072 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A97F2 #F2B55A
analogous
#5AE3F2 #5A97F2 #695AF2
triadic
#5A97F2 #F25A97 #97F25A
tetradic
#5A97F2 #F25AE3 #F2B55A #5AF269
square
#5A97F2 #F25AE3 #F2B55A #5AF269
split-complementary
#5A97F2 #F2695A #E3F25A
monochromatic
#0F57C2 #2173EE #5A97F2 #93BBF6 #CBDFFB

Accessibility & contrast

On white

2.94
#5A97F2 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.14
#5A97F2 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #5A97F2
7.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A97F2#FFFFFF#000000##000000
##5A97F21.002.947.147.14
#FFFFFF2.941.0021.0021.00
#0000007.1421.001.001.00
##0000007.1421.001.001.00

Color blindness preview

Protanopia (red-blind)
#6F9EF6
Deuteranopia (green-blind)
#5A90F0
Tritanopia (blue-blind)
#00ACB9
Achromatopsia (no color)
#969696

Design tokens & code

CSS
--color: #5a97f2;
/* rgb */ color: rgb(90, 151, 242);
/* oklch */ color: oklch(67.7% 0.150 258.2);
Tailwind
colors: {
  custom: {
    50: '#96b5f7',
    500: '#5a97f2',
    950: '#000000',
  },
}
SCSS
$custom: #5a97f2;
$custom-light: #96b5f7;
$custom-dark: #000000;
JSON
{
  "hex": "#5a97f2",
  "rgb": {
    "r": 90,
    "g": 151,
    "b": 242
  },
  "hsl": {
    "h": 215.921,
    "s": 85.393,
    "l": 65.098
  },
  "oklch": {
    "l": 0.67685,
    "c": 0.1496,
    "h": 258.2
  },
  "luminance": 0.30718
}

Semantic roles & 50–950 ramp

primary
#5A97F2
secondary
#EED9BA
accent
#8904E2
background
#F9FBFF
surface
#F2F6FF
border
#CCD0D7
text
#0E1117
muted
#7E8085

Preview Lab

Preview with #5A97F2

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

Preview Lab → · Contrast checker → · Palette generator →

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