#5A7EF1#5A7EF1

#5A7EF1 is a light, vivid blue. Relative luminance 0.234; OKLCH L 62.5% C 0.177 H 267.9°. Best body text is #000000 at 5.69:1 contrast (WCAG AA passes).

Color values

HEX#5A7EF1
RGBrgb(90, 126, 241)
HSLhsl(226, 84%, 65%)
HSVhsv(226, 63%, 95%)
CMYKcmyk(62.7%, 47.7%, 0%, 5.5%)
CIE-LABlab(55.53, 22.59, -61.75)
CIE-LCHlch(55.53, 65.75, 290.10°)
OKLaboklab(62.48% -0.0064 -0.1767)
OKLCHoklch(62.48% 0.177 267.9)
XYZxyz(27.5491, 23.4438, 86.2753)
Luminance0.2345 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A7EF1 #F1CD5A
analogous
#5ACAF1 #5A7EF1 #815AF1
triadic
#5A7EF1 #F15A7E #7EF15A
tetradic
#5A7EF1 #F15ACA #F1CD5A #5AF181
square
#5A7EF1 #F15ACA #F1CD5A #5AF181
split-complementary
#5A7EF1 #F1815A #CAF15A
monochromatic
#103AC0 #2252EC #5A7EF1 #92AAF6 #CBD6FB

Accessibility & contrast

On white

3.69
#5A7EF1 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.69
#5A7EF1 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5A7EF1
5.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A7EF1#FFFFFF#000000##000000
##5A7EF11.003.695.695.69
#FFFFFF3.691.0021.0021.00
#0000005.6921.001.001.00
##0000005.6921.001.001.00

Color blindness preview

Protanopia (red-blind)
#428CF5
Deuteranopia (green-blind)
#237FEF
Tritanopia (blue-blind)
#0098AC
Achromatopsia (no color)
#858585

Design tokens & code

CSS
--color: #5a7ef1;
/* rgb */ color: rgb(90, 126, 241);
/* oklch */ color: oklch(62.5% 0.177 267.9);
Tailwind
colors: {
  custom: {
    50: '#96a2f6',
    500: '#5a7ef1',
    950: '#000000',
  },
}
SCSS
$custom: #5a7ef1;
$custom-light: #96a2f6;
$custom-dark: #000000;
JSON
{
  "hex": "#5a7ef1",
  "rgb": {
    "r": 90,
    "g": 126,
    "b": 241
  },
  "hsl": {
    "h": 225.695,
    "s": 84.358,
    "l": 64.902
  },
  "oklch": {
    "l": 0.62478,
    "c": 0.17684,
    "h": 267.9
  },
  "luminance": 0.23446
}

Semantic roles & 50–950 ramp

primary
#5A7EF1
secondary
#EDE1BA
accent
#AC05E1
background
#F9F9FF
surface
#F2F2FF
border
#CCCCD7
text
#0F0F17
muted
#7E7E85

Preview Lab

Preview with #5A7EF1

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

Preview Lab → · Contrast checker → · Palette generator →

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