#5A87C8#5A87C8

#5A87C8 is a mid, moderate blue. Relative luminance 0.237; OKLCH L 61.9% C 0.111 H 257.6°. Best body text is #000000 at 5.73:1 contrast (WCAG AA passes).

Color values

HEX#5A87C8
RGBrgb(90, 135, 200)
HSLhsl(215, 50%, 57%)
HSVhsv(215, 55%, 78%)
CMYKcmyk(55%, 32.5%, 0%, 21.6%)
CIE-LABlab(55.76, 3.64, -38.38)
CIE-LCHlch(55.76, 38.56, 275.42°)
OKLaboklab(61.94% -0.0239 -0.1082)
OKLCHoklch(61.94% 0.111 257.6)
XYZxyz(23.3021, 23.6699, 57.9732)
Luminance0.2367 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A87C8 #C89B5A
analogous
#5ABEC8 #5A87C8 #645AC8
triadic
#5A87C8 #C85A87 #87C85A
tetradic
#5A87C8 #C85ABE #C89B5A #5AC864
square
#5A87C8 #C85ABE #C89B5A #5AC864
split-complementary
#5A87C8 #C8645A #BEC85A
monochromatic
#2A4C7E #3968AC #5A87C8 #88A8D7 #B6CAE7

Accessibility & contrast

On white

3.66
#5A87C8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.73
#5A87C8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5A87C8
5.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A87C8#FFFFFF#000000##000000
##5A87C81.003.665.735.73
#FFFFFF3.661.0021.0021.00
#0000005.7321.001.001.00
##0000005.7321.001.001.00

Color blindness preview

Protanopia (red-blind)
#6D8BCB
Deuteranopia (green-blind)
#5F81C7
Tritanopia (blue-blind)
#13959E
Achromatopsia (no color)
#868686

Design tokens & code

CSS
--color: #5a87c8;
/* rgb */ color: rgb(90, 135, 200);
/* oklch */ color: oklch(61.9% 0.111 257.6);
Tailwind
colors: {
  custom: {
    50: '#90a9d9',
    500: '#5a87c8',
    950: '#000000',
  },
}
SCSS
$custom: #5a87c8;
$custom-light: #90a9d9;
$custom-dark: #000000;
JSON
{
  "hex": "#5a87c8",
  "rgb": {
    "r": 90,
    "g": 135,
    "b": 200
  },
  "hsl": {
    "h": 215.455,
    "s": 50,
    "l": 56.863
  },
  "oklch": {
    "l": 0.61937,
    "c": 0.11081,
    "h": 257.6
  },
  "luminance": 0.23672
}

Semantic roles & 50–950 ramp

primary
#5A87C8
secondary
#D5C3A8
accent
#A14EDA
background
#F9FAFD
surface
#F2F4FA
border
#CCCED3
text
#0D0F14
muted
#7E7F83

Preview Lab

Preview with #5A87C8

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

Preview Lab → · Contrast checker → · Palette generator →

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