#5A87CC#5A87CC

#5A87CC is a light, moderate blue. Relative luminance 0.239; OKLCH L 62.1% C 0.116 H 258.7°. Best body text is #000000 at 5.77:1 contrast (WCAG AA passes).

Color values

HEX#5A87CC
RGBrgb(90, 135, 204)
HSLhsl(216, 53%, 58%)
HSVhsv(216, 56%, 80%)
CMYKcmyk(55.9%, 33.8%, 0%, 20%)
CIE-LABlab(55.95, 4.93, -40.35)
CIE-LCHlch(55.95, 40.65, 276.96°)
OKLaboklab(62.15% -0.0228 -0.1139)
OKLCHoklch(62.15% 0.116 258.7)
XYZxyz(23.7757, 23.8593, 60.4674)
Luminance0.2386 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A87CC #CC9F5A
analogous
#5AC0CC #5A87CC #665ACC
triadic
#5A87CC #CC5A87 #87CC5A
tetradic
#5A87CC #CC5AC0 #CC9F5A #5ACC66
square
#5A87CC #CC5AC0 #CC9F5A #5ACC66
split-complementary
#5A87CC #CC665A #C0CC5A
monochromatic
#294C83 #3767B2 #5A87CC #89A9DA #B7CBE9

Accessibility & contrast

On white

3.64
#5A87CC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.77
#5A87CC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5A87CC
5.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A87CC#FFFFFF#000000##000000
##5A87CC1.003.645.775.77
#FFFFFF3.641.0021.0021.00
#0000005.7721.001.001.00
##0000005.7721.001.001.00

Color blindness preview

Protanopia (red-blind)
#6B8CCF
Deuteranopia (green-blind)
#5D81CB
Tritanopia (blue-blind)
#0696A0
Achromatopsia (no color)
#868686

Design tokens & code

CSS
--color: #5a87cc;
/* rgb */ color: rgb(90, 135, 204);
/* oklch */ color: oklch(62.1% 0.116 258.7);
Tailwind
colors: {
  custom: {
    50: '#91a9dc',
    500: '#5a87cc',
    950: '#000000',
  },
}
SCSS
$custom: #5a87cc;
$custom-light: #91a9dc;
$custom-dark: #000000;
JSON
{
  "hex": "#5a87cc",
  "rgb": {
    "r": 90,
    "g": 135,
    "b": 204
  },
  "hsl": {
    "h": 216.316,
    "s": 52.778,
    "l": 57.647
  },
  "oklch": {
    "l": 0.62148,
    "c": 0.11618,
    "h": 258.7
  },
  "luminance": 0.23861
}

Semantic roles & 50–950 ramp

primary
#5A87CC
secondary
#D8C6AA
accent
#A34CDC
background
#F9FAFD
surface
#F2F4FB
border
#CCCED4
text
#0D0F15
muted
#7E7F83

Preview Lab

Preview with #5A87CC

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

Preview Lab → · Contrast checker → · Palette generator →

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