#787EF6#787EF6

#787EF6 is a light, vivid blue. Relative luminance 0.256; OKLCH L 64.6% C 0.176 H 278.1°. Best body text is #000000 at 6.11:1 contrast (WCAG AA passes).

Color values

HEX#787EF6
RGBrgb(120, 126, 246)
HSLhsl(237, 88%, 72%)
HSVhsv(237, 51%, 96%)
CMYKcmyk(51.2%, 48.8%, 0%, 3.5%)
CIE-LABlab(57.62, 29.90, -61.06)
CIE-LCHlch(57.62, 67.98, 296.09°)
OKLaboklab(64.63% 0.0248 -0.174)
OKLCHoklch(64.63% 0.176 278.1)
XYZxyz(31.8359, 25.5667, 90.4282)
Luminance0.2557 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787EF6 #F6F078
analogous
#78BDF6 #787EF6 #B178F6
triadic
#787EF6 #F6787E #7EF678
tetradic
#787EF6 #F678BD #F6F078 #78F6B1
square
#787EF6 #F678BD #F6F078 #78F6B1
split-complementary
#787EF6 #F6B178 #BDF678
monochromatic
#0F19E4 #3F47F2 #787EF6 #B1B5FA #E2E4FD

Accessibility & contrast

On white

3.43
#787EF6 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.11
#787EF6 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #787EF6
6.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##787EF6#FFFFFF#000000##000000
##787EF61.003.436.116.11
#FFFFFF3.431.0021.0021.00
#0000006.1121.001.001.00
##0000006.1121.001.001.00

Color blindness preview

Protanopia (red-blind)
#4590FA
Deuteranopia (green-blind)
#3786F3
Tritanopia (blue-blind)
#4298AE
Achromatopsia (no color)
#8A8A8A

Design tokens & code

CSS
--color: #787ef6;
/* rgb */ color: rgb(120, 126, 246);
/* oklch */ color: oklch(64.6% 0.176 278.1);
Tailwind
colors: {
  custom: {
    50: '#a7a3fa',
    500: '#787ef6',
    950: '#000000',
  },
}
SCSS
$custom: #787ef6;
$custom-light: #a7a3fa;
$custom-dark: #000000;
JSON
{
  "hex": "#787ef6",
  "rgb": {
    "r": 120,
    "g": 126,
    "b": 246
  },
  "hsl": {
    "h": 237.143,
    "s": 87.5,
    "l": 71.765
  },
  "oklch": {
    "l": 0.64634,
    "c": 0.17579,
    "h": 278.1
  },
  "luminance": 0.25569
}

Semantic roles & 50–950 ramp

primary
#787EF6
secondary
#F5F3D5
accent
#D901E4
background
#FAFAFF
surface
#F4F3FF
border
#CECDD7
text
#100F17
muted
#7F7F85

Preview Lab

Preview with #787EF6

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

Preview Lab → · Contrast checker → · Palette generator →

#787EF6 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva