#6787EC#6787EC

#6787EC is a light, vivid blue. Relative luminance 0.263; OKLCH L 64.7% C 0.155 H 268.6°. Best body text is #000000 at 6.25:1 contrast (WCAG AA passes).

Color values

HEX#6787EC
RGBrgb(103, 135, 236)
HSLhsl(226, 78%, 66%)
HSVhsv(226, 56%, 93%)
CMYKcmyk(56.4%, 42.8%, 0%, 7.5%)
CIE-LABlab(58.29, 17.91, -54.51)
CIE-LCHlch(58.29, 57.38, 288.19°)
OKLaboklab(64.68% -0.0038 -0.1551)
OKLCHoklch(64.68% 0.155 268.6)
XYZxyz(29.3928, 26.2654, 82.8614)
Luminance0.2627 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6787EC #ECCC67
analogous
#67CAEC #6787EC #8A67EC
triadic
#6787EC #EC6787 #87EC67
tetradic
#6787EC #EC67CA #ECCC67 #67EC8A
square
#6787EC #EC67CA #ECCC67 #67EC8A
split-complementary
#6787EC #EC8A67 #CAEC67
monochromatic
#1841C1 #315CE5 #6787EC #9DB2F3 #D4DDFA

Accessibility & contrast

On white

3.36
#6787EC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.25
#6787EC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #6787EC
6.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6787EC#FFFFFF#000000##000000
##6787EC1.003.366.256.25
#FFFFFF3.361.0021.0021.00
#0000006.2521.001.001.00
##0000006.2521.001.001.00

Color blindness preview

Protanopia (red-blind)
#5B92F0
Deuteranopia (green-blind)
#4987EA
Tritanopia (blue-blind)
#069DAE
Achromatopsia (no color)
#8C8C8C

Design tokens & code

CSS
--color: #6787ec;
/* rgb */ color: rgb(103, 135, 236);
/* oklch */ color: oklch(64.7% 0.155 268.6);
Tailwind
colors: {
  custom: {
    50: '#9ca9f3',
    500: '#6787ec',
    950: '#000000',
  },
}
SCSS
$custom: #6787ec;
$custom-light: #9ca9f3;
$custom-dark: #000000;
JSON
{
  "hex": "#6787ec",
  "rgb": {
    "r": 103,
    "g": 135,
    "b": 236
  },
  "hsl": {
    "h": 225.564,
    "s": 77.778,
    "l": 66.471
  },
  "oklch": {
    "l": 0.64681,
    "c": 0.15516,
    "h": 268.6
  },
  "luminance": 0.26268
}

Semantic roles & 50–950 ramp

primary
#6787EC
secondary
#EDE3C2
accent
#A80BDA
background
#FAFAFE
surface
#F4F4FD
border
#CECED5
text
#0F0F17
muted
#7F7F85

Preview Lab

Preview with #6787EC

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

Preview Lab → · Contrast checker → · Palette generator →

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