#787FF6#787FF6

#787FF6 is a light, vivid blue. Relative luminance 0.258; OKLCH L 64.8% C 0.174 H 277.8°. Best body text is #000000 at 6.17:1 contrast (WCAG AA passes).

Color values

HEX#787FF6
RGBrgb(120, 127, 246)
HSLhsl(237, 88%, 72%)
HSVhsv(237, 51%, 96%)
CMYKcmyk(51.2%, 48.4%, 0%, 3.5%)
CIE-LABlab(57.87, 29.30, -60.66)
CIE-LCHlch(57.87, 67.37, 295.78°)
OKLaboklab(64.82% 0.0237 -0.1729)
OKLCHoklch(64.82% 0.174 277.8)
XYZxyz(31.9644, 25.8237, 90.4711)
Luminance0.2583 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787FF6 #F6EF78
analogous
#78BEF6 #787FF6 #B078F6
triadic
#787FF6 #F6787F #7FF678
tetradic
#787FF6 #F678BE #F6EF78 #78F6B0
square
#787FF6 #F678BE #F6EF78 #78F6B0
split-complementary
#787FF6 #F6B078 #BEF678
monochromatic
#0F1BE4 #3F49F2 #787FF6 #B1B5FA #E2E4FD

Accessibility & contrast

On white

3.41
#787FF6 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.17
#787FF6 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #787FF6
6.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##787FF6#FFFFFF#000000##000000
##787FF61.003.416.176.17
#FFFFFF3.411.0021.0021.00
#0000006.1721.001.001.00
##0000006.1721.001.001.00

Color blindness preview

Protanopia (red-blind)
#4790FA
Deuteranopia (green-blind)
#3986F3
Tritanopia (blue-blind)
#4299AF
Achromatopsia (no color)
#8B8B8B

Design tokens & code

CSS
--color: #787ff6;
/* rgb */ color: rgb(120, 127, 246);
/* oklch */ color: oklch(64.8% 0.174 277.8);
Tailwind
colors: {
  custom: {
    50: '#a7a4fa',
    500: '#787ff6',
    950: '#000000',
  },
}
SCSS
$custom: #787ff6;
$custom-light: #a7a4fa;
$custom-dark: #000000;
JSON
{
  "hex": "#787ff6",
  "rgb": {
    "r": 120,
    "g": 127,
    "b": 246
  },
  "hsl": {
    "h": 236.667,
    "s": 87.5,
    "l": 71.765
  },
  "oklch": {
    "l": 0.64819,
    "c": 0.17448,
    "h": 277.8
  },
  "luminance": 0.25826
}

Semantic roles & 50–950 ramp

primary
#787FF6
secondary
#F5F3D5
accent
#D701E4
background
#FAFAFF
surface
#F4F4FF
border
#CECED7
text
#100F17
muted
#7F7F85

Preview Lab

Preview with #787FF6

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

Preview Lab → · Contrast checker → · Palette generator →

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