#5A7EF7#5A7EF7

#5A7EF7 is a light, vivid blue. Relative luminance 0.238; OKLCH L 62.9% C 0.185 H 268.2°. Best body text is #000000 at 5.76:1 contrast (WCAG AA passes).

Color values

HEX#5A7EF7
RGBrgb(90, 126, 247)
HSLhsl(226, 91%, 66%)
HSVhsv(226, 64%, 97%)
CMYKcmyk(63.6%, 49%, 0%, 3.1%)
CIE-LABlab(55.90, 24.61, -64.48)
CIE-LCHlch(55.90, 69.02, 290.89°)
OKLaboklab(62.88% -0.0057 -0.1848)
OKLCHoklch(62.88% 0.185 268.2)
XYZxyz(28.4601, 23.8082, 91.0733)
Luminance0.2381 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A7EF7 #F7D35A
analogous
#5ACCF7 #5A7EF7 #845AF7
triadic
#5A7EF7 #F75A7E #7EF75A
tetradic
#5A7EF7 #F75ACC #F7D35A #5AF784
square
#5A7EF7 #F75ACC #F7D35A #5AF784
split-complementary
#5A7EF7 #F7845A #CCF75A
monochromatic
#0A37CD #2050F4 #5A7EF7 #94ACFA #CFD9FD

Accessibility & contrast

On white

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

On black

5.76
#5A7EF7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5A7EF7
5.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A7EF7#FFFFFF#000000##000000
##5A7EF71.003.645.765.76
#FFFFFF3.641.0021.0021.00
#0000005.7621.001.001.00
##0000005.7621.001.001.00

Color blindness preview

Protanopia (red-blind)
#3C8DFB
Deuteranopia (green-blind)
#107FF5
Tritanopia (blue-blind)
#009AAF
Achromatopsia (no color)
#868686

Design tokens & code

CSS
--color: #5a7ef7;
/* rgb */ color: rgb(90, 126, 247);
/* oklch */ color: oklch(62.9% 0.185 268.2);
Tailwind
colors: {
  custom: {
    50: '#97a2fb',
    500: '#5a7ef7',
    950: '#000000',
  },
}
SCSS
$custom: #5a7ef7;
$custom-light: #97a2fb;
$custom-dark: #000000;
JSON
{
  "hex": "#5a7ef7",
  "rgb": {
    "r": 90,
    "g": 126,
    "b": 247
  },
  "hsl": {
    "h": 226.242,
    "s": 90.751,
    "l": 66.078
  },
  "oklch": {
    "l": 0.62877,
    "c": 0.18486,
    "h": 268.2
  },
  "luminance": 0.23811
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5A7EF7

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

Preview Lab → · Contrast checker → · Palette generator →

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