#5B87E5#5B87E5

#5B87E5 is a light, vivid blue. Relative luminance 0.252; OKLCH L 63.6% C 0.150 H 263.8°. Best body text is #000000 at 6.04:1 contrast (WCAG AA passes).

Color values

HEX#5B87E5
RGBrgb(91, 135, 229)
HSLhsl(221, 73%, 63%)
HSVhsv(221, 60%, 90%)
CMYKcmyk(60.3%, 41%, 0%, 10.2%)
CIE-LABlab(57.28, 13.31, -52.27)
CIE-LCHlch(57.28, 53.94, 284.28°)
OKLaboklab(63.61% -0.0162 -0.1487)
OKLCHoklch(63.61% 0.15 263.8)
XYZxyz(27.1163, 25.2069, 77.5500)
Luminance0.2521 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B87E5 #E5B95B
analogous
#5BCCE5 #5B87E5 #745BE5
triadic
#5B87E5 #E55B87 #87E55B
tetradic
#5B87E5 #E55BCC #E5B95B #5BE574
square
#5B87E5 #E55BCC #E5B95B #5BE574
split-complementary
#5B87E5 #E5745B #CCE55B
monochromatic
#1B49AB #2660DD #5B87E5 #90AEED #C5D4F6

Accessibility & contrast

On white

3.48
#5B87E5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.04
#5B87E5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5B87E5
6.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B87E5#FFFFFF#000000##000000
##5B87E51.003.486.046.04
#FFFFFF3.481.0021.0021.00
#0000006.0421.001.001.00
##0000006.0421.001.001.00

Color blindness preview

Protanopia (red-blind)
#5D90E9
Deuteranopia (green-blind)
#4A84E3
Tritanopia (blue-blind)
#009CAB
Achromatopsia (no color)
#898989

Design tokens & code

CSS
--color: #5b87e5;
/* rgb */ color: rgb(91, 135, 229);
/* oklch */ color: oklch(63.6% 0.150 263.8);
Tailwind
colors: {
  custom: {
    50: '#94a9ee',
    500: '#5b87e5',
    950: '#000000',
  },
}
SCSS
$custom: #5b87e5;
$custom-light: #94a9ee;
$custom-dark: #000000;
JSON
{
  "hex": "#5b87e5",
  "rgb": {
    "r": 91,
    "g": 135,
    "b": 229
  },
  "hsl": {
    "h": 220.87,
    "s": 72.632,
    "l": 62.745
  },
  "oklch": {
    "l": 0.6361,
    "c": 0.14963,
    "h": 263.8
  },
  "luminance": 0.25209
}

Semantic roles & 50–950 ramp

primary
#5B87E5
secondary
#E7D7B5
accent
#9611D5
background
#F9FAFE
surface
#F2F4FD
border
#CCCED5
text
#0E0F16
muted
#7E7F84

Preview Lab

Preview with #5B87E5

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

Preview Lab → · Contrast checker → · Palette generator →

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