#5A87F6#5A87F6

#5A87F6 is a light, vivid blue. Relative luminance 0.262; OKLCH L 64.6% C 0.173 H 265.3°. Best body text is #000000 at 6.23:1 contrast (WCAG AA passes).

Color values

HEX#5A87F6
RGBrgb(90, 135, 246)
HSLhsl(223, 90%, 66%)
HSVhsv(223, 63%, 96%)
CMYKcmyk(63.4%, 45.1%, 0%, 3.5%)
CIE-LABlab(58.18, 18.82, -60.26)
CIE-LCHlch(58.18, 63.13, 287.34°)
OKLaboklab(64.6% -0.0142 -0.1722)
OKLCHoklch(64.6% 0.173 265.3)
XYZxyz(29.5092, 26.1527, 90.6638)
Luminance0.2616 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A87F6 #F6C95A
analogous
#5AD5F6 #5A87F6 #7B5AF6
triadic
#5A87F6 #F65A87 #87F65A
tetradic
#5A87F6 #F65AD5 #F6C95A #5AF67B
square
#5A87F6 #F65AD5 #F6C95A #5AF67B
split-complementary
#5A87F6 #F67B5A #D5F65A
monochromatic
#0B42CB #205DF3 #5A87F6 #94B1F9 #CEDBFC

Accessibility & contrast

On white

3.37
#5A87F6 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.23
#5A87F6 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5A87F6
6.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A87F6#FFFFFF#000000##000000
##5A87F61.003.376.236.23
#FFFFFF3.371.0021.0021.00
#0000006.2321.001.001.00
##0000006.2321.001.001.00

Color blindness preview

Protanopia (red-blind)
#5193FA
Deuteranopia (green-blind)
#3585F4
Tritanopia (blue-blind)
#00A0B3
Achromatopsia (no color)
#8C8C8C

Design tokens & code

CSS
--color: #5a87f6;
/* rgb */ color: rgb(90, 135, 246);
/* oklch */ color: oklch(64.6% 0.173 265.3);
Tailwind
colors: {
  custom: {
    50: '#97a9fa',
    500: '#5a87f6',
    950: '#000000',
  },
}
SCSS
$custom: #5a87f6;
$custom-light: #97a9fa;
$custom-dark: #000000;
JSON
{
  "hex": "#5a87f6",
  "rgb": {
    "r": 90,
    "g": 135,
    "b": 246
  },
  "hsl": {
    "h": 222.692,
    "s": 89.655,
    "l": 65.882
  },
  "oklch": {
    "l": 0.64602,
    "c": 0.17281,
    "h": 265.3
  },
  "luminance": 0.26155
}

Semantic roles & 50–950 ramp

primary
#5A87F6
secondary
#F0E1BC
accent
#A300E6
background
#F9FAFF
surface
#F2F4FF
border
#CCCED7
text
#0F0F17
muted
#7E7F85

Preview Lab

Preview with #5A87F6

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

Preview Lab → · Contrast checker → · Palette generator →

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