#5A7BF5#5A7BF5

#5A7BF5 is a light, vivid blue. Relative luminance 0.229; OKLCH L 62.2% C 0.186 H 269.0°. Best body text is #000000 at 5.59:1 contrast (WCAG AA passes).

Color values

HEX#5A7BF5
RGBrgb(90, 123, 245)
HSLhsl(227, 89%, 66%)
HSVhsv(227, 63%, 96%)
CMYKcmyk(63.3%, 49.8%, 0%, 3.9%)
CIE-LABlab(55.00, 25.77, -64.82)
CIE-LCHlch(55.00, 69.75, 291.68°)
OKLaboklab(62.16% -0.0031 -0.1858)
OKLCHoklch(62.16% 0.186 269)
XYZxyz(27.7752, 22.9297, 89.3306)
Luminance0.2293 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A7BF5 #F5D45A
analogous
#5AC8F5 #5A7BF5 #865AF5
triadic
#5A7BF5 #F55A7B #7BF55A
tetradic
#5A7BF5 #F55AC8 #F5D45A #5AF586
square
#5A7BF5 #F55AC8 #F5D45A #5AF586
split-complementary
#5A7BF5 #F5865A #C8F55A
monochromatic
#0C34C8 #204DF2 #5A7BF5 #94A9F8 #CDD7FC

Accessibility & contrast

On white

3.76
#5A7BF5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.59
#5A7BF5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5A7BF5
5.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A7BF5#FFFFFF#000000##000000
##5A7BF51.003.765.595.59
#FFFFFF3.761.0021.0021.00
#0000005.5921.001.001.00
##0000005.5921.001.001.00

Color blindness preview

Protanopia (red-blind)
#368BF9
Deuteranopia (green-blind)
#007DF2
Tritanopia (blue-blind)
#0097AC
Achromatopsia (no color)
#848484

Design tokens & code

CSS
--color: #5a7bf5;
/* rgb */ color: rgb(90, 123, 245);
/* oklch */ color: oklch(62.2% 0.186 269.0);
Tailwind
colors: {
  custom: {
    50: '#97a0f9',
    500: '#5a7bf5',
    950: '#000000',
  },
}
SCSS
$custom: #5a7bf5;
$custom-light: #97a0f9;
$custom-dark: #000000;
JSON
{
  "hex": "#5a7bf5",
  "rgb": {
    "r": 90,
    "g": 123,
    "b": 245
  },
  "hsl": {
    "h": 227.226,
    "s": 88.571,
    "l": 65.686
  },
  "oklch": {
    "l": 0.62157,
    "c": 0.18582,
    "h": 269
  },
  "luminance": 0.22932
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5A7BF5

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

Preview Lab → · Contrast checker → · Palette generator →

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