#5A7EF5#5A7EF5

#5A7EF5 is a light, vivid blue. Relative luminance 0.237; OKLCH L 62.7% C 0.182 H 268.1°. Best body text is #000000 at 5.74:1 contrast (WCAG AA passes).

Color values

HEX#5A7EF5
RGBrgb(90, 126, 245)
HSLhsl(226, 89%, 66%)
HSVhsv(226, 63%, 96%)
CMYKcmyk(63.3%, 48.6%, 0%, 3.9%)
CIE-LABlab(55.77, 23.94, -63.57)
CIE-LCHlch(55.77, 67.93, 290.63°)
OKLaboklab(62.74% -0.0059 -0.1821)
OKLCHoklch(62.74% 0.182 268.1)
XYZxyz(28.1531, 23.6854, 89.4566)
Luminance0.2369 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A7EF5 #F5D15A
analogous
#5ACBF5 #5A7EF5 #845AF5
triadic
#5A7EF5 #F55A7E #7EF55A
tetradic
#5A7EF5 #F55ACB #F5D15A #5AF584
square
#5A7EF5 #F55ACB #F5D15A #5AF584
split-complementary
#5A7EF5 #F5845A #CBF55A
monochromatic
#0C38C8 #2051F2 #5A7EF5 #94ABF8 #CDD8FC

Accessibility & contrast

On white

3.66
#5A7EF5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.74
#5A7EF5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5A7EF5
5.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A7EF5#FFFFFF#000000##000000
##5A7EF51.003.665.745.74
#FFFFFF3.661.0021.0021.00
#0000005.7421.001.001.00
##0000005.7421.001.001.00

Color blindness preview

Protanopia (red-blind)
#3E8DF9
Deuteranopia (green-blind)
#187FF3
Tritanopia (blue-blind)
#009AAE
Achromatopsia (no color)
#868686

Design tokens & code

CSS
--color: #5a7ef5;
/* rgb */ color: rgb(90, 126, 245);
/* oklch */ color: oklch(62.7% 0.182 268.1);
Tailwind
colors: {
  custom: {
    50: '#97a2f9',
    500: '#5a7ef5',
    950: '#000000',
  },
}
SCSS
$custom: #5a7ef5;
$custom-light: #97a2f9;
$custom-dark: #000000;
JSON
{
  "hex": "#5a7ef5",
  "rgb": {
    "r": 90,
    "g": 126,
    "b": 245
  },
  "hsl": {
    "h": 226.065,
    "s": 88.571,
    "l": 65.686
  },
  "oklch": {
    "l": 0.62743,
    "c": 0.1822,
    "h": 268.1
  },
  "luminance": 0.23688
}

Semantic roles & 50–950 ramp

primary
#5A7EF5
secondary
#EFE3BC
accent
#B000E5
background
#FAF9FF
surface
#F3F2FF
border
#CDCCD7
text
#0F0F17
muted
#7F7E85

Preview Lab

Preview with #5A7EF5

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

Preview Lab → · Contrast checker → · Palette generator →

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