#5786F5#5786F5

#5786F5 is a light, vivid blue. Relative luminance 0.257; OKLCH L 64.2% C 0.174 H 264.7°. Best body text is #000000 at 6.13:1 contrast (WCAG AA passes).

Color values

HEX#5786F5
RGBrgb(87, 134, 245)
HSLhsl(222, 89%, 65%)
HSVhsv(222, 64%, 96%)
CMYKcmyk(64.5%, 45.3%, 0%, 3.9%)
CIE-LABlab(57.72, 18.59, -60.45)
CIE-LCHlch(57.72, 63.25, 287.09°)
OKLaboklab(64.19% -0.016 -0.1729)
OKLCHoklch(64.19% 0.174 264.7)
XYZxyz(28.9313, 25.6663, 89.7979)
Luminance0.2567 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5786F5 #F5C657
analogous
#57D5F5 #5786F5 #7757F5
triadic
#5786F5 #F55786 #86F557
tetradic
#5786F5 #F557D5 #F5C657 #57F577
square
#5786F5 #F557D5 #F5C657 #57F577
split-complementary
#5786F5 #F57757 #D5F557
monochromatic
#0C43C6 #1D5CF2 #5786F5 #91B0F8 #CBD9FC

Accessibility & contrast

On white

3.42
#5786F5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.13
#5786F5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5786F5
6.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5786F5#FFFFFF#000000##000000
##5786F51.003.426.136.13
#FFFFFF3.421.0021.0021.00
#0000006.1321.001.001.00
##0000006.1321.001.001.00

Color blindness preview

Protanopia (red-blind)
#4F92F9
Deuteranopia (green-blind)
#3284F3
Tritanopia (blue-blind)
#00A0B2
Achromatopsia (no color)
#8B8B8B

Design tokens & code

CSS
--color: #5786f5;
/* rgb */ color: rgb(87, 134, 245);
/* oklch */ color: oklch(64.2% 0.174 264.7);
Tailwind
colors: {
  custom: {
    50: '#95a8f9',
    500: '#5786f5',
    950: '#000000',
  },
}
SCSS
$custom: #5786f5;
$custom-light: #95a8f9;
$custom-dark: #000000;
JSON
{
  "hex": "#5786f5",
  "rgb": {
    "r": 87,
    "g": 134,
    "b": 245
  },
  "hsl": {
    "h": 222.152,
    "s": 88.764,
    "l": 65.098
  },
  "oklch": {
    "l": 0.6419,
    "c": 0.17361,
    "h": 264.7
  },
  "luminance": 0.25669
}

Semantic roles & 50–950 ramp

primary
#5786F5
secondary
#EFDFB9
accent
#A100E5
background
#F9FAFF
surface
#F2F4FF
border
#CCCED7
text
#0F0F17
muted
#7E7F85

Preview Lab

Preview with #5786F5

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

Preview Lab → · Contrast checker → · Palette generator →

#5786F5 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva