#5A87FF#5A87FF

#5A87FF is a light, vivid blue. Relative luminance 0.267; OKLCH L 65.2% C 0.185 H 266.0°. Best body text is #000000 at 6.34:1 contrast (WCAG AA passes).

Color values

HEX#5A87FF
RGBrgb(90, 135, 255)
HSLhsl(224, 100%, 68%)
HSVhsv(224, 65%, 100%)
CMYKcmyk(64.7%, 47.1%, 0%, 0%)
CIE-LABlab(58.71, 21.85, -64.36)
CIE-LCHlch(58.71, 67.97, 288.75°)
OKLaboklab(65.18% -0.0129 -0.1843)
OKLCHoklch(65.18% 0.185 266)
XYZxyz(30.9242, 26.7187, 98.1159)
Luminance0.2672 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A87FF #FFD25A
analogous
#5ADAFF #5A87FF #7F5AFF
triadic
#5A87FF #FF5A87 #87FF5A
tetradic
#5A87FF #FF5ADA #FFD25A #5AFF7F
square
#5A87FF #FF5ADA #FFD25A #5AFF7F
split-complementary
#5A87FF #FF7F5A #DAFF5A
monochromatic
#003DDF #1D5AFF #5A87FF #97B4FF #D4E0FF

Accessibility & contrast

On white

3.31
#5A87FF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.34
#5A87FF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5A87FF
6.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A87FF#FFFFFF#000000##000000
##5A87FF1.003.316.346.34
#FFFFFF3.311.0021.0021.00
#0000006.3421.001.001.00
##0000006.3421.001.001.00

Color blindness preview

Protanopia (red-blind)
#4995FF
Deuteranopia (green-blind)
#2586FD
Tritanopia (blue-blind)
#00A3B7
Achromatopsia (no color)
#8D8D8D

Design tokens & code

CSS
--color: #5a87ff;
/* rgb */ color: rgb(90, 135, 255);
/* oklch */ color: oklch(65.2% 0.185 266.0);
Tailwind
colors: {
  custom: {
    50: '#98a9ff',
    500: '#5a87ff',
    950: '#000000',
  },
}
SCSS
$custom: #5a87ff;
$custom-light: #98a9ff;
$custom-dark: #000000;
JSON
{
  "hex": "#5a87ff",
  "rgb": {
    "r": 90,
    "g": 135,
    "b": 255
  },
  "hsl": {
    "h": 223.636,
    "s": 100,
    "l": 67.647
  },
  "oklch": {
    "l": 0.65179,
    "c": 0.18474,
    "h": 266
  },
  "luminance": 0.26722
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5A87FF

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

Preview Lab → · Contrast checker → · Palette generator →

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