#5A7CF5#5A7CF5

#5A7CF5 is a light, vivid blue. Relative luminance 0.232; OKLCH L 62.4% C 0.185 H 268.7°. Best body text is #000000 at 5.64:1 contrast (WCAG AA passes).

Color values

HEX#5A7CF5
RGBrgb(90, 124, 245)
HSLhsl(227, 89%, 66%)
HSVhsv(227, 63%, 96%)
CMYKcmyk(63.3%, 49.4%, 0%, 3.9%)
CIE-LABlab(55.26, 25.16, -64.40)
CIE-LCHlch(55.26, 69.14, 291.34°)
OKLaboklab(62.35% -0.004 -0.1846)
OKLCHoklch(62.35% 0.185 268.7)
XYZxyz(27.8999, 23.1790, 89.3722)
Luminance0.2318 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A7CF5 #F5D35A
analogous
#5AC9F5 #5A7CF5 #855AF5
triadic
#5A7CF5 #F55A7C #7CF55A
tetradic
#5A7CF5 #F55AC9 #F5D35A #5AF585
square
#5A7CF5 #F55AC9 #F5D35A #5AF585
split-complementary
#5A7CF5 #F5855A #C9F55A
monochromatic
#0C35C8 #204EF2 #5A7CF5 #94AAF8 #CDD8FC

Accessibility & contrast

On white

3.73
#5A7CF5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.64
#5A7CF5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5A7CF5
5.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A7CF5#FFFFFF#000000##000000
##5A7CF51.003.735.645.64
#FFFFFF3.731.0021.0021.00
#0000005.6421.001.001.00
##0000005.6421.001.001.00

Color blindness preview

Protanopia (red-blind)
#398CF9
Deuteranopia (green-blind)
#097EF3
Tritanopia (blue-blind)
#0098AD
Achromatopsia (no color)
#848484

Design tokens & code

CSS
--color: #5a7cf5;
/* rgb */ color: rgb(90, 124, 245);
/* oklch */ color: oklch(62.4% 0.185 268.7);
Tailwind
colors: {
  custom: {
    50: '#97a1f9',
    500: '#5a7cf5',
    950: '#000000',
  },
}
SCSS
$custom: #5a7cf5;
$custom-light: #97a1f9;
$custom-dark: #000000;
JSON
{
  "hex": "#5a7cf5",
  "rgb": {
    "r": 90,
    "g": 124,
    "b": 245
  },
  "hsl": {
    "h": 226.839,
    "s": 88.571,
    "l": 65.686
  },
  "oklch": {
    "l": 0.62352,
    "c": 0.18461,
    "h": 268.7
  },
  "luminance": 0.23182
}

Semantic roles & 50–950 ramp

primary
#5A7CF5
secondary
#EFE4BC
accent
#B300E5
background
#FAF9FF
surface
#F3F2FF
border
#CDCCD7
text
#0F0E17
muted
#7F7E85

Preview Lab

Preview with #5A7CF5

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

Preview Lab → · Contrast checker → · Palette generator →

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