#6787F4#6787F4

#6787F4 is a light, vivid blue. Relative luminance 0.267; OKLCH L 65.2% C 0.166 H 269.1°. Best body text is #000000 at 6.35:1 contrast (WCAG AA passes).

Color values

HEX#6787F4
RGBrgb(103, 135, 244)
HSLhsl(226, 87%, 68%)
HSVhsv(226, 58%, 96%)
CMYKcmyk(57.8%, 44.7%, 0%, 4.3%)
CIE-LABlab(58.73, 20.49, -58.23)
CIE-LCHlch(58.73, 61.73, 289.38°)
OKLaboklab(65.17% -0.0026 -0.166)
OKLCHoklch(65.17% 0.166 269.1)
XYZxyz(30.5812, 26.7407, 89.1204)
Luminance0.2674 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6787F4 #F4D467
analogous
#67CDF4 #6787F4 #8D67F4
triadic
#6787F4 #F46787 #87F467
tetradic
#6787F4 #F467CD #F4D467 #67F48D
square
#6787F4 #F467CD #F4D467 #67F48D
split-complementary
#6787F4 #F48D67 #CDF467
monochromatic
#0F3BD1 #2E5AF0 #6787F4 #A0B4F8 #D9E1FC

Accessibility & contrast

On white

3.31
#6787F4 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.35
#6787F4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #6787F4
6.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6787F4#FFFFFF#000000##000000
##6787F41.003.316.356.35
#FFFFFF3.311.0021.0021.00
#0000006.3521.001.001.00
##0000006.3521.001.001.00

Color blindness preview

Protanopia (red-blind)
#5594F8
Deuteranopia (green-blind)
#4187F2
Tritanopia (blue-blind)
#009FB2
Achromatopsia (no color)
#8D8D8D

Design tokens & code

CSS
--color: #6787f4;
/* rgb */ color: rgb(103, 135, 244);
/* oklch */ color: oklch(65.2% 0.166 269.1);
Tailwind
colors: {
  custom: {
    50: '#9da9f8',
    500: '#6787f4',
    950: '#000000',
  },
}
SCSS
$custom: #6787f4;
$custom-light: #9da9f8;
$custom-dark: #000000;
JSON
{
  "hex": "#6787f4",
  "rgb": {
    "r": 103,
    "g": 135,
    "b": 244
  },
  "hsl": {
    "h": 226.383,
    "s": 86.503,
    "l": 68.039
  },
  "oklch": {
    "l": 0.65166,
    "c": 0.16604,
    "h": 269.1
  },
  "luminance": 0.26743
}

Semantic roles & 50–950 ramp

primary
#6787F4
secondary
#F1E7C6
accent
#B002E3
background
#FAFAFF
surface
#F4F4FF
border
#CECED7
text
#0F0F17
muted
#7F7F85

Preview Lab

Preview with #6787F4

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

Preview Lab → · Contrast checker → · Palette generator →

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