#5A87F1#5A87F1

#5A87F1 is a light, vivid blue. Relative luminance 0.259; OKLCH L 64.3% C 0.166 H 264.8°. Best body text is #000000 at 6.17:1 contrast (WCAG AA passes).

Color values

HEX#5A87F1
RGBrgb(90, 135, 241)
HSLhsl(222, 84%, 65%)
HSVhsv(222, 63%, 95%)
CMYKcmyk(62.7%, 44%, 0%, 5.5%)
CIE-LABlab(57.89, 17.14, -57.95)
CIE-LCHlch(57.89, 60.43, 286.47°)
OKLaboklab(64.29% -0.015 -0.1655)
OKLCHoklch(64.29% 0.166 264.8)
XYZxyz(28.7521, 25.8499, 86.6763)
Luminance0.2585 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A87F1 #F1C45A
analogous
#5AD3F1 #5A87F1 #785AF1
triadic
#5A87F1 #F15A87 #87F15A
tetradic
#5A87F1 #F15AD3 #F1C45A #5AF178
square
#5A87F1 #F15AD3 #F1C45A #5AF178
split-complementary
#5A87F1 #F1785A #D3F15A
monochromatic
#1045C0 #225EEC #5A87F1 #92B0F6 #CBD9FB

Accessibility & contrast

On white

3.40
#5A87F1 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.17
#5A87F1 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5A87F1
6.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A87F1#FFFFFF#000000##000000
##5A87F11.003.406.176.17
#FFFFFF3.401.0021.0021.00
#0000006.1721.001.001.00
##0000006.1721.001.001.00

Color blindness preview

Protanopia (red-blind)
#5592F5
Deuteranopia (green-blind)
#3C85EF
Tritanopia (blue-blind)
#009FB0
Achromatopsia (no color)
#8B8B8B

Design tokens & code

CSS
--color: #5a87f1;
/* rgb */ color: rgb(90, 135, 241);
/* oklch */ color: oklch(64.3% 0.166 264.8);
Tailwind
colors: {
  custom: {
    50: '#96a9f6',
    500: '#5a87f1',
    950: '#000000',
  },
}
SCSS
$custom: #5a87f1;
$custom-light: #96a9f6;
$custom-dark: #000000;
JSON
{
  "hex": "#5a87f1",
  "rgb": {
    "r": 90,
    "g": 135,
    "b": 241
  },
  "hsl": {
    "h": 222.119,
    "s": 84.358,
    "l": 64.902
  },
  "oklch": {
    "l": 0.64289,
    "c": 0.16613,
    "h": 264.8
  },
  "luminance": 0.25852
}

Semantic roles & 50–950 ramp

primary
#5A87F1
secondary
#EDDEBA
accent
#9F05E1
background
#F9FAFF
surface
#F2F4FF
border
#CCCED7
text
#0F0F17
muted
#7E7F85

Preview Lab

Preview with #5A87F1

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

Preview Lab → · Contrast checker → · Palette generator →

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