#5A87CD#5A87CD

#5A87CD is a light, moderate blue. Relative luminance 0.239; OKLCH L 62.2% C 0.118 H 258.9°. Best body text is #000000 at 5.78:1 contrast (WCAG AA passes).

Color values

HEX#5A87CD
RGBrgb(90, 135, 205)
HSLhsl(217, 53%, 58%)
HSVhsv(217, 56%, 80%)
CMYKcmyk(56.1%, 34.1%, 0%, 19.6%)
CIE-LABlab(55.99, 5.25, -40.84)
CIE-LCHlch(55.99, 41.17, 277.32°)
OKLaboklab(62.2% -0.0225 -0.1153)
OKLCHoklch(62.2% 0.118 258.9)
XYZxyz(23.8960, 23.9074, 61.1011)
Luminance0.2391 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A87CD #CDA05A
analogous
#5AC0CD #5A87CD #675ACD
triadic
#5A87CD #CD5A87 #87CD5A
tetradic
#5A87CD #CD5AC0 #CDA05A #5ACD67
square
#5A87CD #CD5AC0 #CDA05A #5ACD67
split-complementary
#5A87CD #CD675A #C0CD5A
monochromatic
#284C84 #3667B3 #5A87CD #89A9DB #B8CBE9

Accessibility & contrast

On white

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

On black

5.78
#5A87CD on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5A87CD
5.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A87CD#FFFFFF#000000##000000
##5A87CD1.003.635.785.78
#FFFFFF3.631.0021.0021.00
#0000005.7821.001.001.00
##0000005.7821.001.001.00

Color blindness preview

Protanopia (red-blind)
#6A8CD0
Deuteranopia (green-blind)
#5C81CC
Tritanopia (blue-blind)
#0297A0
Achromatopsia (no color)
#868686

Design tokens & code

CSS
--color: #5a87cd;
/* rgb */ color: rgb(90, 135, 205);
/* oklch */ color: oklch(62.2% 0.118 258.9);
Tailwind
colors: {
  custom: {
    50: '#91a9dc',
    500: '#5a87cd',
    950: '#000000',
  },
}
SCSS
$custom: #5a87cd;
$custom-light: #91a9dc;
$custom-dark: #000000;
JSON
{
  "hex": "#5a87cd",
  "rgb": {
    "r": 90,
    "g": 135,
    "b": 205
  },
  "hsl": {
    "h": 216.522,
    "s": 53.488,
    "l": 57.843
  },
  "oklch": {
    "l": 0.62202,
    "c": 0.11752,
    "h": 258.9
  },
  "luminance": 0.23909
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5A87CD

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

Preview Lab → · Contrast checker → · Palette generator →

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