#5A7EF8#5A7EF8

#5A7EF8 is a light, vivid blue. Relative luminance 0.239; OKLCH L 62.9% C 0.186 H 268.3°. Best body text is #000000 at 5.77:1 contrast (WCAG AA passes).

Color values

HEX#5A7EF8
RGBrgb(90, 126, 248)
HSLhsl(226, 92%, 66%)
HSVhsv(226, 64%, 97%)
CMYKcmyk(63.7%, 49.2%, 0%, 2.7%)
CIE-LABlab(55.96, 24.95, -64.94)
CIE-LCHlch(55.96, 69.56, 291.02°)
OKLaboklab(62.94% -0.0056 -0.1861)
OKLCHoklch(62.94% 0.186 268.3)
XYZxyz(28.6148, 23.8701, 91.8881)
Luminance0.2387 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A7EF8 #F8D45A
analogous
#5ACDF8 #5A7EF8 #855AF8
triadic
#5A7EF8 #F85A7E #7EF85A
tetradic
#5A7EF8 #F85ACD #F8D45A #5AF885
square
#5A7EF8 #F85ACD #F8D45A #5AF885
split-complementary
#5A7EF8 #F8855A #CDF85A
monochromatic
#0936CF #1F50F6 #5A7EF8 #95ACFA #CFDAFD

Accessibility & contrast

On white

3.64
#5A7EF8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.77
#5A7EF8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5A7EF8
5.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A7EF8#FFFFFF#000000##000000
##5A7EF81.003.645.775.77
#FFFFFF3.641.0021.0021.00
#0000005.7721.001.001.00
##0000005.7721.001.001.00

Color blindness preview

Protanopia (red-blind)
#3A8EFC
Deuteranopia (green-blind)
#0A7FF5
Tritanopia (blue-blind)
#009AAF
Achromatopsia (no color)
#868686

Design tokens & code

CSS
--color: #5a7ef8;
/* rgb */ color: rgb(90, 126, 248);
/* oklch */ color: oklch(62.9% 0.186 268.3);
Tailwind
colors: {
  custom: {
    50: '#97a2fb',
    500: '#5a7ef8',
    950: '#000000',
  },
}
SCSS
$custom: #5a7ef8;
$custom-light: #97a2fb;
$custom-dark: #000000;
JSON
{
  "hex": "#5a7ef8",
  "rgb": {
    "r": 90,
    "g": 126,
    "b": 248
  },
  "hsl": {
    "h": 226.329,
    "s": 91.86,
    "l": 66.275
  },
  "oklch": {
    "l": 0.62944,
    "c": 0.18619,
    "h": 268.3
  },
  "luminance": 0.23873
}

Semantic roles & 50–950 ramp

primary
#5A7EF8
secondary
#F1E5BD
accent
#B100E6
background
#FAF9FF
surface
#F3F2FF
border
#CDCCD7
text
#0F0F17
muted
#7F7E85

Preview Lab

Preview with #5A7EF8

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

Preview Lab → · Contrast checker → · Palette generator →

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