#5A7EF2#5A7EF2

#5A7EF2 is a light, vivid blue. Relative luminance 0.235; OKLCH L 62.5% C 0.178 H 268.0°. Best body text is #000000 at 5.70:1 contrast (WCAG AA passes).

Color values

HEX#5A7EF2
RGBrgb(90, 126, 242)
HSLhsl(226, 85%, 65%)
HSVhsv(226, 63%, 95%)
CMYKcmyk(62.8%, 47.9%, 0%, 5.1%)
CIE-LABlab(55.59, 22.93, -62.21)
CIE-LCHlch(55.59, 66.30, 290.23°)
OKLaboklab(62.54% -0.0062 -0.1781)
OKLCHoklch(62.54% 0.178 268)
XYZxyz(27.6988, 23.5037, 87.0642)
Luminance0.2351 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A7EF2 #F2CE5A
analogous
#5ACAF2 #5A7EF2 #825AF2
triadic
#5A7EF2 #F25A7E #7EF25A
tetradic
#5A7EF2 #F25ACA #F2CE5A #5AF282
square
#5A7EF2 #F25ACA #F2CE5A #5AF282
split-complementary
#5A7EF2 #F2825A #CAF25A
monochromatic
#0F3AC2 #2152EE #5A7EF2 #93AAF6 #CBD7FB

Accessibility & contrast

On white

3.68
#5A7EF2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.70
#5A7EF2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5A7EF2
5.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A7EF2#FFFFFF#000000##000000
##5A7EF21.003.685.705.70
#FFFFFF3.681.0021.0021.00
#0000005.7021.001.001.00
##0000005.7021.001.001.00

Color blindness preview

Protanopia (red-blind)
#418CF6
Deuteranopia (green-blind)
#207FF0
Tritanopia (blue-blind)
#0099AC
Achromatopsia (no color)
#858585

Design tokens & code

CSS
--color: #5a7ef2;
/* rgb */ color: rgb(90, 126, 242);
/* oklch */ color: oklch(62.5% 0.178 268.0);
Tailwind
colors: {
  custom: {
    50: '#96a2f7',
    500: '#5a7ef2',
    950: '#000000',
  },
}
SCSS
$custom: #5a7ef2;
$custom-light: #96a2f7;
$custom-dark: #000000;
JSON
{
  "hex": "#5a7ef2",
  "rgb": {
    "r": 90,
    "g": 126,
    "b": 242
  },
  "hsl": {
    "h": 225.789,
    "s": 85.393,
    "l": 65.098
  },
  "oklch": {
    "l": 0.62544,
    "c": 0.17819,
    "h": 268
  },
  "luminance": 0.23506
}

Semantic roles & 50–950 ramp

primary
#5A7EF2
secondary
#EEE1BA
accent
#AD04E2
background
#F9F9FF
surface
#F2F2FF
border
#CCCCD7
text
#0F0F17
muted
#7E7E85

Preview Lab

Preview with #5A7EF2

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

Preview Lab → · Contrast checker → · Palette generator →

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