#6787F5#6787F5

#6787F5 is a light, vivid blue. Relative luminance 0.268; OKLCH L 65.2% C 0.167 H 269.2°. Best body text is #000000 at 6.36:1 contrast (WCAG AA passes).

Color values

HEX#6787F5
RGBrgb(103, 135, 245)
HSLhsl(226, 88%, 68%)
HSVhsv(226, 58%, 96%)
CMYKcmyk(58%, 44.9%, 0%, 3.9%)
CIE-LABlab(58.79, 20.81, -58.69)
CIE-LCHlch(58.79, 62.28, 289.52°)
OKLaboklab(65.23% -0.0024 -0.1674)
OKLCHoklch(65.23% 0.167 269.2)
XYZxyz(30.7334, 26.8016, 89.9222)
Luminance0.2680 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6787F5 #F5D567
analogous
#67CEF5 #6787F5 #8E67F5
triadic
#6787F5 #F56787 #87F567
tetradic
#6787F5 #F567CE #F5D567 #67F58E
square
#6787F5 #F567CE #F5D567 #67F58E
split-complementary
#6787F5 #F58E67 #CEF567
monochromatic
#0E3AD4 #2E5AF1 #6787F5 #A0B4F9 #DAE2FD

Accessibility & contrast

On white

3.30
#6787F5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.36
#6787F5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #6787F5
6.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6787F5#FFFFFF#000000##000000
##6787F51.003.306.366.36
#FFFFFF3.301.0021.0021.00
#0000006.3621.001.001.00
##0000006.3621.001.001.00

Color blindness preview

Protanopia (red-blind)
#5494F9
Deuteranopia (green-blind)
#3F87F3
Tritanopia (blue-blind)
#00A0B2
Achromatopsia (no color)
#8D8D8D

Design tokens & code

CSS
--color: #6787f5;
/* rgb */ color: rgb(103, 135, 245);
/* oklch */ color: oklch(65.2% 0.167 269.2);
Tailwind
colors: {
  custom: {
    50: '#9da9f9',
    500: '#6787f5',
    950: '#000000',
  },
}
SCSS
$custom: #6787f5;
$custom-light: #9da9f9;
$custom-dark: #000000;
JSON
{
  "hex": "#6787f5",
  "rgb": {
    "r": 103,
    "g": 135,
    "b": 245
  },
  "hsl": {
    "h": 226.479,
    "s": 87.654,
    "l": 68.235
  },
  "oklch": {
    "l": 0.65228,
    "c": 0.1674,
    "h": 269.2
  },
  "luminance": 0.26804
}

Semantic roles & 50–950 ramp

primary
#6787F5
secondary
#F1E8C6
accent
#B101E4
background
#FAFAFF
surface
#F4F4FF
border
#CECED7
text
#0F0F17
muted
#7F7F85

Preview Lab

Preview with #6787F5

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

Preview Lab → · Contrast checker → · Palette generator →

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