#5786C8#5786C8

#5786C8 is a mid, moderate blue. Relative luminance 0.232; OKLCH L 61.6% C 0.113 H 257.0°. Best body text is #000000 at 5.65:1 contrast (WCAG AA passes).

Color values

HEX#5786C8
RGBrgb(87, 134, 200)
HSLhsl(215, 51%, 56%)
HSVhsv(215, 57%, 78%)
CMYKcmyk(56.5%, 33%, 0%, 21.6%)
CIE-LABlab(55.32, 3.59, -39.07)
CIE-LCHlch(55.32, 39.24, 275.26°)
OKLaboklab(61.56% -0.0254 -0.1103)
OKLCHoklch(61.56% 0.113 257)
XYZxyz(22.8773, 23.2447, 57.9135)
Luminance0.2325 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5786C8 #C89957
analogous
#57BFC8 #5786C8 #6157C8
triadic
#5786C8 #C85786 #86C857
tetradic
#5786C8 #C857BF #C89957 #57C861
square
#5786C8 #C857BF #C89957 #57C861
split-complementary
#5786C8 #C86157 #BFC857
monochromatic
#294B7C #3867AA #5786C8 #85A7D7 #B3C8E6

Accessibility & contrast

On white

3.72
#5786C8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.65
#5786C8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5786C8
5.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5786C8#FFFFFF#000000##000000
##5786C81.003.725.655.65
#FFFFFF3.721.0021.0021.00
#0000005.6521.001.001.00
##0000005.6521.001.001.00

Color blindness preview

Protanopia (red-blind)
#6B8ACB
Deuteranopia (green-blind)
#5D80C7
Tritanopia (blue-blind)
#00959E
Achromatopsia (no color)
#848484

Design tokens & code

CSS
--color: #5786c8;
/* rgb */ color: rgb(87, 134, 200);
/* oklch */ color: oklch(61.6% 0.113 257.0);
Tailwind
colors: {
  custom: {
    50: '#8ea8d9',
    500: '#5786c8',
    950: '#000000',
  },
}
SCSS
$custom: #5786c8;
$custom-light: #8ea8d9;
$custom-dark: #000000;
JSON
{
  "hex": "#5786c8",
  "rgb": {
    "r": 87,
    "g": 134,
    "b": 200
  },
  "hsl": {
    "h": 215.044,
    "s": 50.673,
    "l": 56.275
  },
  "oklch": {
    "l": 0.61559,
    "c": 0.11316,
    "h": 257
  },
  "luminance": 0.23247
}

Semantic roles & 50–950 ramp

primary
#5786C8
secondary
#D5C1A6
accent
#A04EDA
background
#F9FAFD
surface
#F1F4FA
border
#CBCED3
text
#0D0F14
muted
#7E7F83

Preview Lab

Preview with #5786C8

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

Preview Lab → · Contrast checker → · Palette generator →

#5786C8 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva