#5A7DF5#5A7DF5

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

Color values

HEX#5A7DF5
RGBrgb(90, 125, 245)
HSLhsl(226, 89%, 66%)
HSVhsv(226, 63%, 96%)
CMYKcmyk(63.3%, 49%, 0%, 3.9%)
CIE-LABlab(55.51, 24.55, -63.99)
CIE-LCHlch(55.51, 68.54, 290.99°)
OKLaboklab(62.55% -0.005 -0.1833)
OKLCHoklch(62.55% 0.183 268.5)
XYZxyz(28.0259, 23.4309, 89.4142)
Luminance0.2343 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A7DF5 #F5D25A
analogous
#5ACAF5 #5A7DF5 #855AF5
triadic
#5A7DF5 #F55A7D #7DF55A
tetradic
#5A7DF5 #F55ACA #F5D25A #5AF585
square
#5A7DF5 #F55ACA #F5D25A #5AF585
split-complementary
#5A7DF5 #F5855A #CAF55A
monochromatic
#0C37C8 #2050F2 #5A7DF5 #94AAF8 #CDD8FC

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##5A7DF5#FFFFFF#000000##000000
##5A7DF51.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)
#3B8CF9
Deuteranopia (green-blind)
#127EF3
Tritanopia (blue-blind)
#0099AD
Achromatopsia (no color)
#858585

Design tokens & code

CSS
--color: #5a7df5;
/* rgb */ color: rgb(90, 125, 245);
/* oklch */ color: oklch(62.5% 0.183 268.5);
Tailwind
colors: {
  custom: {
    50: '#97a2f9',
    500: '#5a7df5',
    950: '#000000',
  },
}
SCSS
$custom: #5a7df5;
$custom-light: #97a2f9;
$custom-dark: #000000;
JSON
{
  "hex": "#5a7df5",
  "rgb": {
    "r": 90,
    "g": 125,
    "b": 245
  },
  "hsl": {
    "h": 226.452,
    "s": 88.571,
    "l": 65.686
  },
  "oklch": {
    "l": 0.62547,
    "c": 0.1834,
    "h": 268.5
  },
  "luminance": 0.23433
}

Semantic roles & 50–950 ramp

primary
#5A7DF5
secondary
#EFE4BC
accent
#B100E5
background
#FAF9FF
surface
#F3F2FF
border
#CDCCD7
text
#0F0F17
muted
#7F7E85

Preview Lab

Preview with #5A7DF5

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

Preview Lab → · Contrast checker → · Palette generator →

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