#6787F1#6787F1

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

Color values

HEX#6787F1
RGBrgb(103, 135, 241)
HSLhsl(226, 83%, 67%)
HSVhsv(226, 57%, 95%)
CMYKcmyk(57.3%, 44%, 0%, 5.5%)
CIE-LABlab(58.56, 19.52, -56.84)
CIE-LCHlch(58.56, 60.10, 288.95°)
OKLaboklab(64.98% -0.003 -0.1619)
OKLCHoklch(64.98% 0.162 268.9)
XYZxyz(30.1294, 26.5600, 86.7409)
Luminance0.2656 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6787F1 #F1D167
analogous
#67CCF1 #6787F1 #8C67F1
triadic
#6787F1 #F16787 #87F167
tetradic
#6787F1 #F167CC #F1D167 #67F18C
square
#6787F1 #F167CC #F1D167 #67F18C
split-complementary
#6787F1 #F18C67 #CCF167
monochromatic
#133DCB #2F5BEC #6787F1 #9FB3F6 #D7DFFB

Accessibility & contrast

On white

3.33
#6787F1 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.31
#6787F1 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #6787F1
6.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6787F1#FFFFFF#000000##000000
##6787F11.003.336.316.31
#FFFFFF3.331.0021.0021.00
#0000006.3121.001.001.00
##0000006.3121.001.001.00

Color blindness preview

Protanopia (red-blind)
#5793F5
Deuteranopia (green-blind)
#4487EF
Tritanopia (blue-blind)
#009FB0
Achromatopsia (no color)
#8D8D8D

Design tokens & code

CSS
--color: #6787f1;
/* rgb */ color: rgb(103, 135, 241);
/* oklch */ color: oklch(65.0% 0.162 268.9);
Tailwind
colors: {
  custom: {
    50: '#9ca9f6',
    500: '#6787f1',
    950: '#000000',
  },
}
SCSS
$custom: #6787f1;
$custom-light: #9ca9f6;
$custom-dark: #000000;
JSON
{
  "hex": "#6787f1",
  "rgb": {
    "r": 103,
    "g": 135,
    "b": 241
  },
  "hsl": {
    "h": 226.087,
    "s": 83.133,
    "l": 67.451
  },
  "oklch": {
    "l": 0.64982,
    "c": 0.16197,
    "h": 268.9
  },
  "luminance": 0.26562
}

Semantic roles & 50–950 ramp

primary
#6787F1
secondary
#EFE5C4
accent
#AD06E0
background
#FAFAFF
surface
#F4F4FE
border
#CECED6
text
#0F0F17
muted
#7F7F85

Preview Lab

Preview with #6787F1

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

Preview Lab → · Contrast checker → · Palette generator →

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