#6787F8#6787F8

#6787F8 is a light, vivid blue. Relative luminance 0.270; OKLCH L 65.4% C 0.171 H 269.3°. Best body text is #000000 at 6.40:1 contrast (WCAG AA passes).

Color values

HEX#6787F8
RGBrgb(103, 135, 248)
HSLhsl(227, 91%, 69%)
HSVhsv(227, 58%, 97%)
CMYKcmyk(58.5%, 45.6%, 0%, 2.7%)
CIE-LABlab(58.96, 21.78, -60.08)
CIE-LCHlch(58.96, 63.90, 289.93°)
OKLaboklab(65.41% -0.002 -0.1714)
OKLCHoklch(65.41% 0.171 269.3)
XYZxyz(31.1951, 26.9863, 92.3537)
Luminance0.2699 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6787F8 #F8D867
analogous
#67CFF8 #6787F8 #9067F8
triadic
#6787F8 #F86787 #87F867
tetradic
#6787F8 #F867CF #F8D867 #67F890
square
#6787F8 #F867CF #F8D867 #67F890
split-complementary
#6787F8 #F89067 #CFF867
monochromatic
#0A38DB #2C59F5 #6787F8 #A2B5FB #DCE3FD

Accessibility & contrast

On white

3.28
#6787F8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.40
#6787F8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #6787F8
6.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6787F8#FFFFFF#000000##000000
##6787F81.003.286.406.40
#FFFFFF3.281.0021.0021.00
#0000006.4021.001.001.00
##0000006.4021.001.001.00

Color blindness preview

Protanopia (red-blind)
#5295FC
Deuteranopia (green-blind)
#3B88F6
Tritanopia (blue-blind)
#00A0B3
Achromatopsia (no color)
#8E8E8E

Design tokens & code

CSS
--color: #6787f8;
/* rgb */ color: rgb(103, 135, 248);
/* oklch */ color: oklch(65.4% 0.171 269.3);
Tailwind
colors: {
  custom: {
    50: '#9da9fb',
    500: '#6787f8',
    950: '#000000',
  },
}
SCSS
$custom: #6787f8;
$custom-light: #9da9fb;
$custom-dark: #000000;
JSON
{
  "hex": "#6787f8",
  "rgb": {
    "r": 103,
    "g": 135,
    "b": 248
  },
  "hsl": {
    "h": 226.759,
    "s": 91.195,
    "l": 68.824
  },
  "oklch": {
    "l": 0.65414,
    "c": 0.17144,
    "h": 269.3
  },
  "luminance": 0.26989
}

Semantic roles & 50–950 ramp

primary
#6787F8
secondary
#F3E9C8
accent
#B300E6
background
#FAFAFF
surface
#F4F4FF
border
#CECED7
text
#0F0F17
muted
#7F7F85

Preview Lab

Preview with #6787F8

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

Preview Lab → · Contrast checker → · Palette generator →

#6787F8 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva