#5A7AF8#5A7AF8

#5A7AF8 is a light, vivid blue. Relative luminance 0.229; OKLCH L 62.2% C 0.191 H 269.4°. Best body text is #000000 at 5.57:1 contrast (WCAG AA passes).

Color values

HEX#5A7AF8
RGBrgb(90, 122, 248)
HSLhsl(228, 92%, 66%)
HSVhsv(228, 64%, 97%)
CMYKcmyk(63.7%, 50.8%, 0%, 2.7%)
CIE-LABlab(54.94, 27.38, -66.58)
CIE-LCHlch(54.94, 71.99, 292.36°)
OKLaboklab(62.17% -0.0019 -0.191)
OKLCHoklch(62.17% 0.191 269.4)
XYZxyz(28.1135, 22.8675, 91.7211)
Luminance0.2287 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A7AF8 #F8D85A
analogous
#5AC9F8 #5A7AF8 #895AF8
triadic
#5A7AF8 #F85A7A #7AF85A
tetradic
#5A7AF8 #F85AC9 #F8D85A #5AF889
square
#5A7AF8 #F85AC9 #F8D85A #5AF889
split-complementary
#5A7AF8 #F8895A #C9F85A
monochromatic
#0931CF #1F4BF6 #5A7AF8 #95A9FA #CFD9FD

Accessibility & contrast

On white

3.77
#5A7AF8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.57
#5A7AF8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5A7AF8
5.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A7AF8#FFFFFF#000000##000000
##5A7AF81.003.775.575.57
#FFFFFF3.771.0021.0021.00
#0000005.5721.001.001.00
##0000005.5721.001.001.00

Color blindness preview

Protanopia (red-blind)
#2F8BFC
Deuteranopia (green-blind)
#007DF5
Tritanopia (blue-blind)
#0097AD
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #5a7af8;
/* rgb */ color: rgb(90, 122, 248);
/* oklch */ color: oklch(62.2% 0.191 269.4);
Tailwind
colors: {
  custom: {
    50: '#97a0fb',
    500: '#5a7af8',
    950: '#000000',
  },
}
SCSS
$custom: #5a7af8;
$custom-light: #97a0fb;
$custom-dark: #000000;
JSON
{
  "hex": "#5a7af8",
  "rgb": {
    "r": 90,
    "g": 122,
    "b": 248
  },
  "hsl": {
    "h": 227.848,
    "s": 91.86,
    "l": 66.275
  },
  "oklch": {
    "l": 0.62169,
    "c": 0.19101,
    "h": 269.4
  },
  "luminance": 0.2287
}

Semantic roles & 50–950 ramp

primary
#5A7AF8
secondary
#F1E6BD
accent
#B700E6
background
#FAF9FF
surface
#F3F2FF
border
#CDCCD7
text
#0F0E17
muted
#7F7E85

Preview Lab

Preview with #5A7AF8

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

Preview Lab → · Contrast checker → · Palette generator →

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