#5A87E7#5A87E7

#5A87E7 is a light, vivid blue. Relative luminance 0.253; OKLCH L 63.7% C 0.153 H 263.7°. Best body text is #000000 at 6.05:1 contrast (WCAG AA passes).

Color values

HEX#5A87E7
RGBrgb(90, 135, 231)
HSLhsl(221, 75%, 63%)
HSVhsv(221, 61%, 91%)
CMYKcmyk(61%, 41.6%, 0%, 9.4%)
CIE-LABlab(57.34, 13.79, -53.29)
CIE-LCHlch(57.34, 55.05, 284.51°)
OKLaboklab(63.68% -0.0167 -0.1518)
OKLCHoklch(63.68% 0.153 263.7)
XYZxyz(27.2992, 25.2687, 79.0245)
Luminance0.2527 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A87E7 #E7BA5A
analogous
#5ACDE7 #5A87E7 #735AE7
triadic
#5A87E7 #E75A87 #87E75A
tetradic
#5A87E7 #E75ACD #E7BA5A #5AE773
square
#5A87E7 #E75ACD #E7BA5A #5AE773
split-complementary
#5A87E7 #E7735A #CDE75A
monochromatic
#1949AD #2560DF #5A87E7 #8FAEEF #C5D5F7

Accessibility & contrast

On white

3.47
#5A87E7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.05
#5A87E7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5A87E7
6.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A87E7#FFFFFF#000000##000000
##5A87E71.003.476.056.05
#FFFFFF3.471.0021.0021.00
#0000006.0521.001.001.00
##0000006.0521.001.001.00

Color blindness preview

Protanopia (red-blind)
#5C91EB
Deuteranopia (green-blind)
#4884E5
Tritanopia (blue-blind)
#009DAC
Achromatopsia (no color)
#8A8A8A

Design tokens & code

CSS
--color: #5a87e7;
/* rgb */ color: rgb(90, 135, 231);
/* oklch */ color: oklch(63.7% 0.153 263.7);
Tailwind
colors: {
  custom: {
    50: '#94a9ef',
    500: '#5a87e7',
    950: '#000000',
  },
}
SCSS
$custom: #5a87e7;
$custom-light: #94a9ef;
$custom-dark: #000000;
JSON
{
  "hex": "#5a87e7",
  "rgb": {
    "r": 90,
    "g": 135,
    "b": 231
  },
  "hsl": {
    "h": 220.851,
    "s": 74.603,
    "l": 62.941
  },
  "oklch": {
    "l": 0.63679,
    "c": 0.15269,
    "h": 263.7
  },
  "luminance": 0.25271
}

Semantic roles & 50–950 ramp

primary
#5A87E7
secondary
#E8D8B5
accent
#970FD7
background
#F9FAFE
surface
#F2F4FD
border
#CCCED5
text
#0E0F16
muted
#7E7F84

Preview Lab

Preview with #5A87E7

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

Preview Lab → · Contrast checker → · Palette generator →

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