#5787EC#5787EC

#5787EC is a light, vivid blue. Relative luminance 0.254; OKLCH L 63.8% C 0.160 H 263.4°. Best body text is #000000 at 6.08:1 contrast (WCAG AA passes).

Color values

HEX#5787EC
RGBrgb(87, 135, 236)
HSLhsl(221, 80%, 63%)
HSVhsv(221, 63%, 93%)
CMYKcmyk(63.1%, 42.8%, 0%, 7.5%)
CIE-LABlab(57.47, 14.93, -55.87)
CIE-LCHlch(57.47, 57.83, 284.97°)
OKLaboklab(63.83% -0.0184 -0.1594)
OKLCHoklch(63.83% 0.16 263.4)
XYZxyz(27.7295, 25.4078, 82.7835)
Luminance0.2541 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5787EC #ECBC57
analogous
#57D1EC #5787EC #7157EC
triadic
#5787EC #EC5787 #87EC57
tetradic
#5787EC #EC57D1 #ECBC57 #57EC71
square
#5787EC #EC57D1 #ECBC57 #57EC71
split-complementary
#5787EC #EC7157 #D1EC57
monochromatic
#1448B4 #2060E6 #5787EC #8EAEF2 #C5D6F8

Accessibility & contrast

On white

3.45
#5787EC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.08
#5787EC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5787EC
6.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5787EC#FFFFFF#000000##000000
##5787EC1.003.456.086.08
#FFFFFF3.451.0021.0021.00
#0000006.0821.001.001.00
##0000006.0821.001.001.00

Color blindness preview

Protanopia (red-blind)
#5891F0
Deuteranopia (green-blind)
#4184EA
Tritanopia (blue-blind)
#009EAE
Achromatopsia (no color)
#8A8A8A

Design tokens & code

CSS
--color: #5787ec;
/* rgb */ color: rgb(87, 135, 236);
/* oklch */ color: oklch(63.8% 0.160 263.4);
Tailwind
colors: {
  custom: {
    50: '#94a9f3',
    500: '#5787ec',
    950: '#000000',
  },
}
SCSS
$custom: #5787ec;
$custom-light: #94a9f3;
$custom-dark: #000000;
JSON
{
  "hex": "#5787ec",
  "rgb": {
    "r": 87,
    "g": 135,
    "b": 236
  },
  "hsl": {
    "h": 220.671,
    "s": 79.679,
    "l": 63.333
  },
  "oklch": {
    "l": 0.63833,
    "c": 0.16044,
    "h": 263.4
  },
  "luminance": 0.2541
}

Semantic roles & 50–950 ramp

primary
#5787EC
secondary
#EAD9B5
accent
#980ADC
background
#F9FAFE
surface
#F2F4FD
border
#CCCED5
text
#0E0F17
muted
#7E7F85

Preview Lab

Preview with #5787EC

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

Preview Lab → · Contrast checker → · Palette generator →

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