#5787FA#5787FA

#5787FA is a light, vivid blue. Relative luminance 0.263; OKLCH L 64.7% C 0.179 H 264.8°. Best body text is #000000 at 6.25:1 contrast (WCAG AA passes).

Color values

HEX#5787FA
RGBrgb(87, 135, 250)
HSLhsl(222, 94%, 66%)
HSVhsv(222, 65%, 98%)
CMYKcmyk(65.2%, 46%, 0%, 2%)
CIE-LABlab(58.28, 19.68, -62.32)
CIE-LCHlch(58.28, 65.35, 287.53°)
OKLaboklab(64.71% -0.0162 -0.1783)
OKLCHoklch(64.71% 0.179 264.8)
XYZxyz(29.8438, 26.2535, 93.9186)
Luminance0.2626 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5787FA #FACA57
analogous
#57D9FA #5787FA #7857FA
triadic
#5787FA #FA5787 #87FA57
tetradic
#5787FA #FA57D9 #FACA57 #57FA78
square
#5787FA #FA57D9 #FACA57 #57FA78
split-complementary
#5787FA #FA7857 #D9FA57
monochromatic
#0642D0 #1C5DF8 #5787FA #92B1FC #CEDCFE

Accessibility & contrast

On white

3.36
#5787FA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.25
#5787FA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5787FA
6.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5787FA#FFFFFF#000000##000000
##5787FA1.003.366.256.25
#FFFFFF3.361.0021.0021.00
#0000006.2521.001.001.00
##0000006.2521.001.001.00

Color blindness preview

Protanopia (red-blind)
#4D94FE
Deuteranopia (green-blind)
#2C85F8
Tritanopia (blue-blind)
#00A2B4
Achromatopsia (no color)
#8C8C8C

Design tokens & code

CSS
--color: #5787fa;
/* rgb */ color: rgb(87, 135, 250);
/* oklch */ color: oklch(64.7% 0.179 264.8);
Tailwind
colors: {
  custom: {
    50: '#96a9fd',
    500: '#5787fa',
    950: '#000000',
  },
}
SCSS
$custom: #5787fa;
$custom-light: #96a9fd;
$custom-dark: #000000;
JSON
{
  "hex": "#5787fa",
  "rgb": {
    "r": 87,
    "g": 135,
    "b": 250
  },
  "hsl": {
    "h": 222.331,
    "s": 94.22,
    "l": 66.078
  },
  "oklch": {
    "l": 0.64713,
    "c": 0.17907,
    "h": 264.8
  },
  "luminance": 0.26256
}

Semantic roles & 50–950 ramp

primary
#5787FA
secondary
#F1E1BC
accent
#A200E6
background
#FAFAFF
surface
#F3F4FF
border
#CDCED7
text
#0F0F18
muted
#7F7F86

Preview Lab

Preview with #5787FA

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

Preview Lab → · Contrast checker → · Palette generator →

#5787FA Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva