#5A7FFB#5A7FFB

#5A7FFB is a light, vivid blue. Relative luminance 0.243; OKLCH L 63.3% C 0.189 H 268.1°. Best body text is #000000 at 5.86:1 contrast (WCAG AA passes).

Color values

HEX#5A7FFB
RGBrgb(90, 127, 251)
HSLhsl(226, 95%, 67%)
HSVhsv(226, 64%, 98%)
CMYKcmyk(64.1%, 49.4%, 0%, 1.6%)
CIE-LABlab(56.40, 25.35, -65.88)
CIE-LCHlch(56.40, 70.59, 291.05°)
OKLaboklab(63.34% -0.0061 -0.1889)
OKLCHoklch(63.34% 0.189 268.1)
XYZxyz(29.2124, 24.3148, 94.4018)
Luminance0.2432 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A7FFB #FBD65A
analogous
#5AD0FB #5A7FFB #865AFB
triadic
#5A7FFB #FB5A7F #7FFB5A
tetradic
#5A7FFB #FB5AD0 #FBD65A #5AFB86
square
#5A7FFB #FB5AD0 #FBD65A #5AFB86
split-complementary
#5A7FFB #FB865A #D0FB5A
monochromatic
#0535D5 #1E51FA #5A7FFB #96ADFC #D2DCFE

Accessibility & contrast

On white

3.58
#5A7FFB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.86
#5A7FFB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5A7FFB
5.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A7FFB#FFFFFF#000000##000000
##5A7FFB1.003.585.865.86
#FFFFFF3.581.0021.0021.00
#0000005.8621.001.001.00
##0000005.8621.001.001.00

Color blindness preview

Protanopia (red-blind)
#398FFF
Deuteranopia (green-blind)
#0180F8
Tritanopia (blue-blind)
#009CB1
Achromatopsia (no color)
#878787

Design tokens & code

CSS
--color: #5a7ffb;
/* rgb */ color: rgb(90, 127, 251);
/* oklch */ color: oklch(63.3% 0.189 268.1);
Tailwind
colors: {
  custom: {
    50: '#98a3fd',
    500: '#5a7ffb',
    950: '#000000',
  },
}
SCSS
$custom: #5a7ffb;
$custom-light: #98a3fd;
$custom-dark: #000000;
JSON
{
  "hex": "#5a7ffb",
  "rgb": {
    "r": 90,
    "g": 127,
    "b": 251
  },
  "hsl": {
    "h": 226.211,
    "s": 95.266,
    "l": 66.863
  },
  "oklch": {
    "l": 0.63341,
    "c": 0.18896,
    "h": 268.1
  },
  "luminance": 0.24317
}

Semantic roles & 50–950 ramp

primary
#5A7FFB
secondary
#F2E6BF
accent
#B100E6
background
#FAFAFF
surface
#F3F3FF
border
#CDCDD7
text
#0F0F18
muted
#7F7F86

Preview Lab

Preview with #5A7FFB

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

Preview Lab → · Contrast checker → · Palette generator →

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