#5A87CE#5A87CE

#5A87CE is a light, moderate blue. Relative luminance 0.240; OKLCH L 62.3% C 0.119 H 259.2°. Best body text is #000000 at 5.79:1 contrast (WCAG AA passes).

Color values

HEX#5A87CE
RGBrgb(90, 135, 206)
HSLhsl(217, 54%, 58%)
HSVhsv(217, 56%, 81%)
CMYKcmyk(56.3%, 34.5%, 0%, 19.2%)
CIE-LABlab(56.04, 5.57, -41.32)
CIE-LCHlch(56.04, 41.70, 277.68°)
OKLaboklab(62.26% -0.0223 -0.1168)
OKLCHoklch(62.26% 0.119 259.2)
XYZxyz(24.0171, 23.9559, 61.7389)
Luminance0.2396 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A87CE #CEA15A
analogous
#5AC1CE #5A87CE #675ACE
triadic
#5A87CE #CE5A87 #87CE5A
tetradic
#5A87CE #CE5AC1 #CEA15A #5ACE67
square
#5A87CE #CE5AC1 #CEA15A #5ACE67
split-complementary
#5A87CE #CE675A #C1CE5A
monochromatic
#284C86 #3667B5 #5A87CE #89A9DC #B8CCEA

Accessibility & contrast

On white

3.63
#5A87CE on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.79
#5A87CE on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5A87CE
5.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A87CE#FFFFFF#000000##000000
##5A87CE1.003.635.795.79
#FFFFFF3.631.0021.0021.00
#0000005.7921.001.001.00
##0000005.7921.001.001.00

Color blindness preview

Protanopia (red-blind)
#6A8CD1
Deuteranopia (green-blind)
#5B81CD
Tritanopia (blue-blind)
#0097A1
Achromatopsia (no color)
#868686

Design tokens & code

CSS
--color: #5a87ce;
/* rgb */ color: rgb(90, 135, 206);
/* oklch */ color: oklch(62.3% 0.119 259.2);
Tailwind
colors: {
  custom: {
    50: '#91a9dd',
    500: '#5a87ce',
    950: '#000000',
  },
}
SCSS
$custom: #5a87ce;
$custom-light: #91a9dd;
$custom-dark: #000000;
JSON
{
  "hex": "#5a87ce",
  "rgb": {
    "r": 90,
    "g": 135,
    "b": 206
  },
  "hsl": {
    "h": 216.724,
    "s": 54.206,
    "l": 58.039
  },
  "oklch": {
    "l": 0.62256,
    "c": 0.11887,
    "h": 259.2
  },
  "luminance": 0.23958
}

Semantic roles & 50–950 ramp

primary
#5A87CE
secondary
#D9C7AB
accent
#A44ADE
background
#F9FAFD
surface
#F2F4FB
border
#CCCED4
text
#0D0F15
muted
#7E7F83

Preview Lab

Preview with #5A87CE

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

Preview Lab → · Contrast checker → · Palette generator →

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