#5B87F8#5B87F8

#5B87F8 is a light, vivid blue. Relative luminance 0.263; OKLCH L 64.8% C 0.175 H 265.7°. Best body text is #000000 at 6.27:1 contrast (WCAG AA passes).

Color values

HEX#5B87F8
RGBrgb(91, 135, 248)
HSLhsl(223, 92%, 66%)
HSVhsv(223, 63%, 97%)
CMYKcmyk(63.3%, 45.6%, 0%, 2.7%)
CIE-LABlab(58.35, 19.66, -61.10)
CIE-LCHlch(58.35, 64.18, 287.84°)
OKLaboklab(64.78% -0.013 -0.1747)
OKLCHoklch(64.78% 0.175 265.7)
XYZxyz(29.9158, 26.3267, 92.2938)
Luminance0.2633 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B87F8 #F8CC5B
analogous
#5BD5F8 #5B87F8 #7E5BF8
triadic
#5B87F8 #F85B87 #87F85B
tetradic
#5B87F8 #F85BD5 #F8CC5B #5BF87E
square
#5B87F8 #F85BD5 #F8CC5B #5BF87E
split-complementary
#5B87F8 #F87E5B #D5F85B
monochromatic
#0941D0 #205CF5 #5B87F8 #96B2FB #D0DDFD

Accessibility & contrast

On white

3.35
#5B87F8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.27
#5B87F8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5B87F8
6.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B87F8#FFFFFF#000000##000000
##5B87F81.003.356.276.27
#FFFFFF3.351.0021.0021.00
#0000006.2721.001.001.00
##0000006.2721.001.001.00

Color blindness preview

Protanopia (red-blind)
#4F94FC
Deuteranopia (green-blind)
#3386F6
Tritanopia (blue-blind)
#00A1B3
Achromatopsia (no color)
#8C8C8C

Design tokens & code

CSS
--color: #5b87f8;
/* rgb */ color: rgb(91, 135, 248);
/* oklch */ color: oklch(64.8% 0.175 265.7);
Tailwind
colors: {
  custom: {
    50: '#97a9fb',
    500: '#5b87f8',
    950: '#000000',
  },
}
SCSS
$custom: #5b87f8;
$custom-light: #97a9fb;
$custom-dark: #000000;
JSON
{
  "hex": "#5b87f8",
  "rgb": {
    "r": 91,
    "g": 135,
    "b": 248
  },
  "hsl": {
    "h": 223.185,
    "s": 91.813,
    "l": 66.471
  },
  "oklch": {
    "l": 0.64778,
    "c": 0.17516,
    "h": 265.7
  },
  "luminance": 0.26329
}

Semantic roles & 50–950 ramp

primary
#5B87F8
secondary
#F1E3BE
accent
#A500E6
background
#FAFAFF
surface
#F3F4FF
border
#CDCED7
text
#0F0F17
muted
#7F7F85

Preview Lab

Preview with #5B87F8

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

Preview Lab → · Contrast checker → · Palette generator →

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