#5A87FB#5A87FB

#5A87FB is a light, vivid blue. Relative luminance 0.265; OKLCH L 64.9% C 0.179 H 265.7°. Best body text is #000000 at 6.29:1 contrast (WCAG AA passes).

Color values

HEX#5A87FB
RGBrgb(90, 135, 251)
HSLhsl(223, 95%, 67%)
HSVhsv(223, 64%, 98%)
CMYKcmyk(64.1%, 46.2%, 0%, 1.6%)
CIE-LABlab(58.47, 20.50, -62.54)
CIE-LCHlch(58.47, 65.82, 288.15°)
OKLaboklab(64.92% -0.0135 -0.1789)
OKLCHoklch(64.92% 0.179 265.7)
XYZxyz(30.2870, 26.4638, 94.7600)
Luminance0.2647 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A87FB #FBCE5A
analogous
#5AD7FB #5A87FB #7E5AFB
triadic
#5A87FB #FB5A87 #87FB5A
tetradic
#5A87FB #FB5AD7 #FBCE5A #5AFB7E
square
#5A87FB #FB5AD7 #FBCE5A #5AFB7E
split-complementary
#5A87FB #FB7E5A #D7FB5A
monochromatic
#053FD5 #1E5CFA #5A87FB #96B2FC #D2DEFE

Accessibility & contrast

On white

3.34
#5A87FB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.29
#5A87FB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5A87FB
6.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A87FB#FFFFFF#000000##000000
##5A87FB1.003.346.296.29
#FFFFFF3.341.0021.0021.00
#0000006.2921.001.001.00
##0000006.2921.001.001.00

Color blindness preview

Protanopia (red-blind)
#4C94FF
Deuteranopia (green-blind)
#2D86F9
Tritanopia (blue-blind)
#00A2B5
Achromatopsia (no color)
#8D8D8D

Design tokens & code

CSS
--color: #5a87fb;
/* rgb */ color: rgb(90, 135, 251);
/* oklch */ color: oklch(64.9% 0.179 265.7);
Tailwind
colors: {
  custom: {
    50: '#97a9fd',
    500: '#5a87fb',
    950: '#000000',
  },
}
SCSS
$custom: #5a87fb;
$custom-light: #97a9fd;
$custom-dark: #000000;
JSON
{
  "hex": "#5a87fb",
  "rgb": {
    "r": 90,
    "g": 135,
    "b": 251
  },
  "hsl": {
    "h": 223.23,
    "s": 95.266,
    "l": 66.863
  },
  "oklch": {
    "l": 0.64921,
    "c": 0.17946,
    "h": 265.7
  },
  "luminance": 0.26467
}

Semantic roles & 50–950 ramp

primary
#5A87FB
secondary
#F2E4BF
accent
#A500E6
background
#FAFAFF
surface
#F3F4FF
border
#CDCED7
text
#0F0F18
muted
#7F7F86

Preview Lab

Preview with #5A87FB

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

Preview Lab → · Contrast checker → · Palette generator →

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