#5A87ED#5A87ED

#5A87ED is a light, vivid blue. Relative luminance 0.256; OKLCH L 64.0% C 0.161 H 264.4°. Best body text is #000000 at 6.12:1 contrast (WCAG AA passes).

Color values

HEX#5A87ED
RGBrgb(90, 135, 237)
HSLhsl(222, 80%, 64%)
HSVhsv(222, 62%, 93%)
CMYKcmyk(62%, 43%, 0%, 7.1%)
CIE-LABlab(57.67, 15.79, -56.10)
CIE-LCHlch(57.67, 58.28, 285.72°)
OKLaboklab(64.04% -0.0157 -0.16)
OKLCHoklch(64.04% 0.161 264.4)
XYZxyz(28.1612, 25.6135, 83.5642)
Luminance0.2562 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A87ED #EDC05A
analogous
#5AD0ED #5A87ED #775AED
triadic
#5A87ED #ED5A87 #87ED5A
tetradic
#5A87ED #ED5AD0 #EDC05A #5AED77
square
#5A87ED #ED5AD0 #EDC05A #5AED77
split-complementary
#5A87ED #ED775A #D0ED5A
monochromatic
#1446B8 #235FE7 #5A87ED #91AFF3 #C8D7F9

Accessibility & contrast

On white

3.43
#5A87ED on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.12
#5A87ED on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5A87ED
6.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A87ED#FFFFFF#000000##000000
##5A87ED1.003.436.126.12
#FFFFFF3.431.0021.0021.00
#0000006.1221.001.001.00
##0000006.1221.001.001.00

Color blindness preview

Protanopia (red-blind)
#5892F1
Deuteranopia (green-blind)
#4184EB
Tritanopia (blue-blind)
#009EAE
Achromatopsia (no color)
#8A8A8A

Design tokens & code

CSS
--color: #5a87ed;
/* rgb */ color: rgb(90, 135, 237);
/* oklch */ color: oklch(64.0% 0.161 264.4);
Tailwind
colors: {
  custom: {
    50: '#95a9f3',
    500: '#5a87ed',
    950: '#000000',
  },
}
SCSS
$custom: #5a87ed;
$custom-light: #95a9f3;
$custom-dark: #000000;
JSON
{
  "hex": "#5a87ed",
  "rgb": {
    "r": 90,
    "g": 135,
    "b": 237
  },
  "hsl": {
    "h": 221.633,
    "s": 80.328,
    "l": 64.118
  },
  "oklch": {
    "l": 0.64042,
    "c": 0.16076,
    "h": 264.4
  },
  "luminance": 0.25616
}

Semantic roles & 50–950 ramp

primary
#5A87ED
secondary
#EBDBB8
accent
#9C09DD
background
#F9FAFE
surface
#F2F4FD
border
#CCCED5
text
#0E0F17
muted
#7E7F85

Preview Lab

Preview with #5A87ED

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

Preview Lab → · Contrast checker → · Palette generator →

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