#5A87EF#5A87EF

#5A87EF is a light, vivid blue. Relative luminance 0.257; OKLCH L 64.2% C 0.163 H 264.6°. Best body text is #000000 at 6.15:1 contrast (WCAG AA passes).

Color values

HEX#5A87EF
RGBrgb(90, 135, 239)
HSLhsl(222, 82%, 65%)
HSVhsv(222, 62%, 94%)
CMYKcmyk(62.3%, 43.5%, 0%, 6.3%)
CIE-LABlab(57.78, 16.46, -57.03)
CIE-LCHlch(57.78, 59.36, 286.10°)
OKLaboklab(64.17% -0.0153 -0.1627)
OKLCHoklch(64.17% 0.163 264.6)
XYZxyz(28.4550, 25.7310, 85.1117)
Luminance0.2573 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A87EF #EFC25A
analogous
#5AD2EF #5A87EF #785AEF
triadic
#5A87EF #EF5A87 #87EF5A
tetradic
#5A87EF #EF5AD2 #EFC25A #5AEF78
square
#5A87EF #EF5AD2 #EFC25A #5AEF78
split-complementary
#5A87EF #EF785A #D2EF5A
monochromatic
#1246BC #225EEA #5A87EF #92B0F4 #CAD8FA

Accessibility & contrast

On white

3.42
#5A87EF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.15
#5A87EF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5A87EF
6.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A87EF#FFFFFF#000000##000000
##5A87EF1.003.426.156.15
#FFFFFF3.421.0021.0021.00
#0000006.1521.001.001.00
##0000006.1521.001.001.00

Color blindness preview

Protanopia (red-blind)
#5692F3
Deuteranopia (green-blind)
#3F84ED
Tritanopia (blue-blind)
#009FAF
Achromatopsia (no color)
#8B8B8B

Design tokens & code

CSS
--color: #5a87ef;
/* rgb */ color: rgb(90, 135, 239);
/* oklch */ color: oklch(64.2% 0.163 264.6);
Tailwind
colors: {
  custom: {
    50: '#95a9f5',
    500: '#5a87ef',
    950: '#000000',
  },
}
SCSS
$custom: #5a87ef;
$custom-light: #95a9f5;
$custom-dark: #000000;
JSON
{
  "hex": "#5a87ef",
  "rgb": {
    "r": 90,
    "g": 135,
    "b": 239
  },
  "hsl": {
    "h": 221.879,
    "s": 82.32,
    "l": 64.51
  },
  "oklch": {
    "l": 0.64165,
    "c": 0.16345,
    "h": 264.6
  },
  "luminance": 0.25734
}

Semantic roles & 50–950 ramp

primary
#5A87EF
secondary
#ECDDB9
accent
#9E07DF
background
#F9FAFF
surface
#F2F4FE
border
#CCCED6
text
#0E0F17
muted
#7E7F85

Preview Lab

Preview with #5A87EF

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

Preview Lab → · Contrast checker → · Palette generator →

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