#6787F2#6787F2

#6787F2 is a light, vivid blue. Relative luminance 0.266; OKLCH L 65.0% C 0.163 H 269.0°. Best body text is #000000 at 6.32:1 contrast (WCAG AA passes).

Color values

HEX#6787F2
RGBrgb(103, 135, 242)
HSLhsl(226, 84%, 68%)
HSVhsv(226, 57%, 95%)
CMYKcmyk(57.4%, 44.2%, 0%, 5.1%)
CIE-LABlab(58.62, 19.84, -57.31)
CIE-LCHlch(58.62, 60.65, 289.10°)
OKLaboklab(65.04% -0.0029 -0.1633)
OKLCHoklch(65.04% 0.163 269)
XYZxyz(30.2791, 26.6199, 87.5297)
Luminance0.2662 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6787F2 #F2D267
analogous
#67CCF2 #6787F2 #8C67F2
triadic
#6787F2 #F26787 #87F267
tetradic
#6787F2 #F267CC #F2D267 #67F28C
square
#6787F2 #F267CC #F2D267 #67F28C
split-complementary
#6787F2 #F28C67 #CCF267
monochromatic
#123DCD #2F5AED #6787F2 #9FB4F7 #D8E0FC

Accessibility & contrast

On white

3.32
#6787F2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.32
#6787F2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #6787F2
6.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6787F2#FFFFFF#000000##000000
##6787F21.003.326.326.32
#FFFFFF3.321.0021.0021.00
#0000006.3221.001.001.00
##0000006.3221.001.001.00

Color blindness preview

Protanopia (red-blind)
#5694F6
Deuteranopia (green-blind)
#4387F0
Tritanopia (blue-blind)
#009FB1
Achromatopsia (no color)
#8D8D8D

Design tokens & code

CSS
--color: #6787f2;
/* rgb */ color: rgb(103, 135, 242);
/* oklch */ color: oklch(65.0% 0.163 269.0);
Tailwind
colors: {
  custom: {
    50: '#9da9f7',
    500: '#6787f2',
    950: '#000000',
  },
}
SCSS
$custom: #6787f2;
$custom-light: #9da9f7;
$custom-dark: #000000;
JSON
{
  "hex": "#6787f2",
  "rgb": {
    "r": 103,
    "g": 135,
    "b": 242
  },
  "hsl": {
    "h": 226.187,
    "s": 84.242,
    "l": 67.647
  },
  "oklch": {
    "l": 0.65043,
    "c": 0.16333,
    "h": 269
  },
  "luminance": 0.26622
}

Semantic roles & 50–950 ramp

primary
#6787F2
secondary
#F0E6C5
accent
#AE05E1
background
#FAFAFF
surface
#F4F4FF
border
#CECED7
text
#0F0F17
muted
#7F7F85

Preview Lab

Preview with #6787F2

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

Preview Lab → · Contrast checker → · Palette generator →

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