#5A7CF7#5A7CF7

#5A7CF7 is a light, vivid blue. Relative luminance 0.233; OKLCH L 62.5% C 0.187 H 268.8°. Best body text is #000000 at 5.66:1 contrast (WCAG AA passes).

Color values

HEX#5A7CF7
RGBrgb(90, 124, 247)
HSLhsl(227, 91%, 66%)
HSVhsv(227, 64%, 97%)
CMYKcmyk(63.6%, 49.8%, 0%, 3.1%)
CIE-LABlab(55.38, 25.83, -65.31)
CIE-LCHlch(55.38, 70.23, 291.58°)
OKLaboklab(62.49% -0.0038 -0.1872)
OKLCHoklch(62.49% 0.187 268.8)
XYZxyz(28.2069, 23.3018, 90.9889)
Luminance0.2330 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A7CF7 #F7D55A
analogous
#5ACBF7 #5A7CF7 #865AF7
triadic
#5A7CF7 #F75A7C #7CF75A
tetradic
#5A7CF7 #F75ACB #F7D55A #5AF786
square
#5A7CF7 #F75ACB #F7D55A #5AF786
split-complementary
#5A7CF7 #F7865A #CBF75A
monochromatic
#0A34CD #204EF4 #5A7CF7 #94AAFA #CFD9FD

Accessibility & contrast

On white

3.71
#5A7CF7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.66
#5A7CF7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5A7CF7
5.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A7CF7#FFFFFF#000000##000000
##5A7CF71.003.715.665.66
#FFFFFF3.711.0021.0021.00
#0000005.6621.001.001.00
##0000005.6621.001.001.00

Color blindness preview

Protanopia (red-blind)
#368CFB
Deuteranopia (green-blind)
#007EF4
Tritanopia (blue-blind)
#0099AE
Achromatopsia (no color)
#858585

Design tokens & code

CSS
--color: #5a7cf7;
/* rgb */ color: rgb(90, 124, 247);
/* oklch */ color: oklch(62.5% 0.187 268.8);
Tailwind
colors: {
  custom: {
    50: '#97a1fb',
    500: '#5a7cf7',
    950: '#000000',
  },
}
SCSS
$custom: #5a7cf7;
$custom-light: #97a1fb;
$custom-dark: #000000;
JSON
{
  "hex": "#5a7cf7",
  "rgb": {
    "r": 90,
    "g": 124,
    "b": 247
  },
  "hsl": {
    "h": 227.006,
    "s": 90.751,
    "l": 66.078
  },
  "oklch": {
    "l": 0.62487,
    "c": 0.18727,
    "h": 268.8
  },
  "luminance": 0.23304
}

Semantic roles & 50–950 ramp

primary
#5A7CF7
secondary
#F0E5BD
accent
#B400E6
background
#FAF9FF
surface
#F3F2FF
border
#CDCCD7
text
#0F0E17
muted
#7F7E85

Preview Lab

Preview with #5A7CF7

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

Preview Lab → · Contrast checker → · Palette generator →

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