#5A7DF7#5A7DF7

#5A7DF7 is a light, vivid blue. Relative luminance 0.236; OKLCH L 62.7% C 0.186 H 268.5°. Best body text is #000000 at 5.71:1 contrast (WCAG AA passes).

Color values

HEX#5A7DF7
RGBrgb(90, 125, 247)
HSLhsl(227, 91%, 66%)
HSVhsv(227, 64%, 97%)
CMYKcmyk(63.6%, 49.4%, 0%, 3.1%)
CIE-LABlab(55.64, 25.22, -64.90)
CIE-LCHlch(55.64, 69.63, 291.24°)
OKLaboklab(62.68% -0.0047 -0.186)
OKLCHoklch(62.68% 0.186 268.5)
XYZxyz(28.3328, 23.5537, 91.0309)
Luminance0.2356 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A7DF7 #F7D45A
analogous
#5ACBF7 #5A7DF7 #855AF7
triadic
#5A7DF7 #F75A7D #7DF75A
tetradic
#5A7DF7 #F75ACB #F7D45A #5AF785
square
#5A7DF7 #F75ACB #F7D45A #5AF785
split-complementary
#5A7DF7 #F7855A #CBF75A
monochromatic
#0A35CD #204FF4 #5A7DF7 #94ABFA #CFD9FD

Accessibility & contrast

On white

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

On black

5.71
#5A7DF7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5A7DF7
5.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A7DF7#FFFFFF#000000##000000
##5A7DF71.003.685.715.71
#FFFFFF3.681.0021.0021.00
#0000005.7121.001.001.00
##0000005.7121.001.001.00

Color blindness preview

Protanopia (red-blind)
#398DFB
Deuteranopia (green-blind)
#077FF4
Tritanopia (blue-blind)
#0099AE
Achromatopsia (no color)
#858585

Design tokens & code

CSS
--color: #5a7df7;
/* rgb */ color: rgb(90, 125, 247);
/* oklch */ color: oklch(62.7% 0.186 268.5);
Tailwind
colors: {
  custom: {
    50: '#97a2fb',
    500: '#5a7df7',
    950: '#000000',
  },
}
SCSS
$custom: #5a7df7;
$custom-light: #97a2fb;
$custom-dark: #000000;
JSON
{
  "hex": "#5a7df7",
  "rgb": {
    "r": 90,
    "g": 125,
    "b": 247
  },
  "hsl": {
    "h": 226.624,
    "s": 90.751,
    "l": 66.078
  },
  "oklch": {
    "l": 0.62681,
    "c": 0.18606,
    "h": 268.5
  },
  "luminance": 0.23556
}

Semantic roles & 50–950 ramp

primary
#5A7DF7
secondary
#F0E5BD
accent
#B200E6
background
#FAF9FF
surface
#F3F2FF
border
#CDCCD7
text
#0F0F17
muted
#7F7E85

Preview Lab

Preview with #5A7DF7

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

Preview Lab → · Contrast checker → · Palette generator →

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