#5A87DC#5A87DC

#5A87DC is a light, vivid blue. Relative luminance 0.247; OKLCH L 63.0% C 0.138 H 262.1°. Best body text is #000000 at 5.93:1 contrast (WCAG AA passes).

Color values

HEX#5A87DC
RGBrgb(90, 135, 220)
HSLhsl(219, 65%, 61%)
HSVhsv(219, 59%, 86%)
CMYKcmyk(59.1%, 38.6%, 0%, 13.7%)
CIE-LABlab(56.75, 10.14, -48.08)
CIE-LCHlch(56.75, 49.14, 281.91°)
OKLaboklab(63.03% -0.019 -0.1365)
OKLCHoklch(63.03% 0.138 262.1)
XYZxyz(25.7942, 24.6667, 71.0981)
Luminance0.2467 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A87DC #DCAF5A
analogous
#5AC8DC #5A87DC #6E5ADC
triadic
#5A87DC #DC5A87 #87DC5A
tetradic
#5A87DC #DC5AC8 #DCAF5A #5ADC6E
square
#5A87DC #DC5AC8 #DCAF5A #5ADC6E
split-complementary
#5A87DC #DC6E5A #C8DC5A
monochromatic
#214B9B #2C64CD #5A87DC #8CACE7 #BFD0F1

Accessibility & contrast

On white

3.54
#5A87DC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.93
#5A87DC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5A87DC
5.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A87DC#FFFFFF#000000##000000
##5A87DC1.003.545.935.93
#FFFFFF3.541.0021.0021.00
#0000005.9321.001.001.00
##0000005.9321.001.001.00

Color blindness preview

Protanopia (red-blind)
#638FDF
Deuteranopia (green-blind)
#5183DA
Tritanopia (blue-blind)
#009AA7
Achromatopsia (no color)
#888888

Design tokens & code

CSS
--color: #5a87dc;
/* rgb */ color: rgb(90, 135, 220);
/* oklch */ color: oklch(63.0% 0.138 262.1);
Tailwind
colors: {
  custom: {
    50: '#93a9e7',
    500: '#5a87dc',
    950: '#000000',
  },
}
SCSS
$custom: #5a87dc;
$custom-light: #93a9e7;
$custom-dark: #000000;
JSON
{
  "hex": "#5a87dc",
  "rgb": {
    "r": 90,
    "g": 135,
    "b": 220
  },
  "hsl": {
    "h": 219.231,
    "s": 65,
    "l": 60.784
  },
  "oklch": {
    "l": 0.63034,
    "c": 0.13781,
    "h": 262.1
  },
  "luminance": 0.24669
}

Semantic roles & 50–950 ramp

primary
#5A87DC
secondary
#E2D0B0
accent
#8E19CD
background
#F9FAFE
surface
#F2F4FC
border
#CCCED5
text
#0E0F16
muted
#7E7F84

Preview Lab

Preview with #5A87DC

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

Preview Lab → · Contrast checker → · Palette generator →

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