#5787D7#5787D7

#5787D7 is a light, vivid blue. Relative luminance 0.243; OKLCH L 62.6% C 0.132 H 260.1°. Best body text is #000000 at 5.85:1 contrast (WCAG AA passes).

Color values

HEX#5787D7
RGBrgb(87, 135, 215)
HSLhsl(218, 62%, 59%)
HSVhsv(218, 60%, 84%)
CMYKcmyk(59.5%, 37.2%, 0%, 15.7%)
CIE-LABlab(56.35, 7.91, -45.93)
CIE-LCHlch(56.35, 46.60, 279.77°)
OKLaboklab(62.6% -0.0227 -0.1302)
OKLCHoklch(62.6% 0.132 260.1)
XYZxyz(24.8559, 24.2583, 67.6493)
Luminance0.2426 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5787D7 #D7A757
analogous
#57C7D7 #5787D7 #6757D7
triadic
#5787D7 #D75787 #87D757
tetradic
#5787D7 #D757C7 #D7A757 #57D767
square
#5787D7 #D757C7 #D7A757 #57D767
split-complementary
#5787D7 #D76757 #C7D757
monochromatic
#234C91 #2E66C2 #5787D7 #88AAE3 #BACEEF

Accessibility & contrast

On white

3.59
#5787D7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.85
#5787D7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5787D7
5.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5787D7#FFFFFF#000000##000000
##5787D71.003.595.855.85
#FFFFFF3.591.0021.0021.00
#0000005.8521.001.001.00
##0000005.8521.001.001.00

Color blindness preview

Protanopia (red-blind)
#658EDA
Deuteranopia (green-blind)
#5482D5
Tritanopia (blue-blind)
#0099A5
Achromatopsia (no color)
#878787

Design tokens & code

CSS
--color: #5787d7;
/* rgb */ color: rgb(87, 135, 215);
/* oklch */ color: oklch(62.6% 0.132 260.1);
Tailwind
colors: {
  custom: {
    50: '#90a9e4',
    500: '#5787d7',
    950: '#000000',
  },
}
SCSS
$custom: #5787d7;
$custom-light: #90a9e4;
$custom-dark: #000000;
JSON
{
  "hex": "#5787d7",
  "rgb": {
    "r": 87,
    "g": 135,
    "b": 215
  },
  "hsl": {
    "h": 217.5,
    "s": 61.538,
    "l": 59.216
  },
  "oklch": {
    "l": 0.62597,
    "c": 0.13221,
    "h": 260.1
  },
  "luminance": 0.2426
}

Semantic roles & 50–950 ramp

primary
#5787D7
secondary
#DECBAC
accent
#A843E5
background
#F9FAFE
surface
#F2F4FC
border
#CCCED5
text
#0E0F15
muted
#7E7F84

Preview Lab

Preview with #5787D7

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

Preview Lab → · Contrast checker → · Palette generator →

#5787D7 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva