#5A87BC#5A87BC

#5A87BC is a mid, moderate cyan. Relative luminance 0.231; OKLCH L 61.3% C 0.095 H 253.3°. Best body text is #000000 at 5.63:1 contrast (WCAG AA passes).

Color values

HEX#5A87BC
RGBrgb(90, 135, 188)
HSLhsl(212, 42%, 55%)
HSVhsv(212, 52%, 74%)
CMYKcmyk(52.1%, 28.2%, 0%, 26.3%)
CIE-LABlab(55.21, -0.14, -32.42)
CIE-LCHlch(55.21, 32.43, 269.75°)
OKLaboklab(61.33% -0.0273 -0.0909)
OKLCHoklch(61.33% 0.095 253.3)
XYZxyz(21.9544, 23.1308, 50.8750)
Luminance0.2313 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A87BC #BC8F5A
analogous
#5AB8BC #5A87BC #5E5ABC
triadic
#5A87BC #BC5A87 #87BC5A
tetradic
#5A87BC #BC5AB8 #BC8F5A #5ABC5E
square
#5A87BC #BC5AB8 #BC8F5A #5ABC5E
split-complementary
#5A87BC #BC5E5A #B8BC5A
monochromatic
#2D4B6F #3F699A #5A87BC #86A7CE #B1C6DF

Accessibility & contrast

On white

3.73
#5A87BC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.63
#5A87BC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5A87BC
5.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A87BC#FFFFFF#000000##000000
##5A87BC1.003.735.635.63
#FFFFFF3.731.0021.0021.00
#0000005.6321.001.001.00
##0000005.6321.001.001.00

Color blindness preview

Protanopia (red-blind)
#7289BE
Deuteranopia (green-blind)
#6580BB
Tritanopia (blue-blind)
#279399
Achromatopsia (no color)
#848484

Design tokens & code

CSS
--color: #5a87bc;
/* rgb */ color: rgb(90, 135, 188);
/* oklch */ color: oklch(61.3% 0.095 253.3);
Tailwind
colors: {
  custom: {
    50: '#8fa9d0',
    500: '#5a87bc',
    950: '#000000',
  },
}
SCSS
$custom: #5a87bc;
$custom-light: #8fa9d0;
$custom-dark: #000000;
JSON
{
  "hex": "#5a87bc",
  "rgb": {
    "r": 90,
    "g": 135,
    "b": 188
  },
  "hsl": {
    "h": 212.449,
    "s": 42.241,
    "l": 54.51
  },
  "oklch": {
    "l": 0.61327,
    "c": 0.09496,
    "h": 253.3
  },
  "luminance": 0.23132
}

Semantic roles & 50–950 ramp

primary
#5A87BC
secondary
#CEBBA4
accent
#9956D2
background
#F9FAFC
surface
#F1F4F9
border
#CBCED2
text
#0D0F14
muted
#7E7F82

Preview Lab

Preview with #5A87BC

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

Preview Lab → · Contrast checker → · Palette generator →

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