#5A87FE#5A87FE

#5A87FE is a light, vivid blue. Relative luminance 0.267; OKLCH L 65.1% C 0.183 H 265.9°. Best body text is #000000 at 6.33:1 contrast (WCAG AA passes).

Color values

HEX#5A87FE
RGBrgb(90, 135, 254)
HSLhsl(224, 99%, 67%)
HSVhsv(224, 65%, 100%)
CMYKcmyk(64.6%, 46.9%, 0%, 0.4%)
CIE-LABlab(58.65, 21.52, -63.91)
CIE-LCHlch(58.65, 67.43, 288.61°)
OKLaboklab(65.11% -0.0131 -0.183)
OKLCHoklch(65.11% 0.183 265.9)
XYZxyz(30.7636, 26.6545, 97.2703)
Luminance0.2666 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A87FE #FED15A
analogous
#5AD9FE #5A87FE #7F5AFE
triadic
#5A87FE #FE5A87 #87FE5A
tetradic
#5A87FE #FE5AD9 #FED15A #5AFE7F
square
#5A87FE #FE5AD9 #FED15A #5AFE7F
split-complementary
#5A87FE #FE7F5A #D9FE5A
monochromatic
#013DDC #1D5BFE #5A87FE #97B3FE #D4DFFF

Accessibility & contrast

On white

3.32
#5A87FE on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.33
#5A87FE on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5A87FE
6.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A87FE#FFFFFF#000000##000000
##5A87FE1.003.326.336.33
#FFFFFF3.321.0021.0021.00
#0000006.3321.001.001.00
##0000006.3321.001.001.00

Color blindness preview

Protanopia (red-blind)
#4995FF
Deuteranopia (green-blind)
#2786FC
Tritanopia (blue-blind)
#00A3B6
Achromatopsia (no color)
#8D8D8D

Design tokens & code

CSS
--color: #5a87fe;
/* rgb */ color: rgb(90, 135, 254);
/* oklch */ color: oklch(65.1% 0.183 265.9);
Tailwind
colors: {
  custom: {
    50: '#98a9ff',
    500: '#5a87fe',
    950: '#000000',
  },
}
SCSS
$custom: #5a87fe;
$custom-light: #98a9ff;
$custom-dark: #000000;
JSON
{
  "hex": "#5a87fe",
  "rgb": {
    "r": 90,
    "g": 135,
    "b": 254
  },
  "hsl": {
    "h": 223.537,
    "s": 98.795,
    "l": 67.451
  },
  "oklch": {
    "l": 0.65114,
    "c": 0.18343,
    "h": 265.9
  },
  "luminance": 0.26657
}

Semantic roles & 50–950 ramp

primary
#5A87FE
secondary
#F4E5C0
accent
#A700E6
background
#FAFAFF
surface
#F4F4FF
border
#CECED7
text
#0F0F18
muted
#7F7F86

Preview Lab

Preview with #5A87FE

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

Preview Lab → · Contrast checker → · Palette generator →

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