#787FF7#787FF7

#787FF7 is a light, vivid blue. Relative luminance 0.259; OKLCH L 64.9% C 0.176 H 277.8°. Best body text is #000000 at 6.18:1 contrast (WCAG AA passes).

Color values

HEX#787FF7
RGBrgb(120, 127, 247)
HSLhsl(237, 89%, 72%)
HSVhsv(237, 51%, 97%)
CMYKcmyk(51.4%, 48.6%, 0%, 3.1%)
CIE-LABlab(57.93, 29.61, -61.12)
CIE-LCHlch(57.93, 67.92, 295.85°)
OKLaboklab(64.88% 0.0238 -0.1742)
OKLCHoklch(64.88% 0.176 277.8)
XYZxyz(32.1183, 25.8852, 91.2816)
Luminance0.2589 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787FF7 #F7F078
analogous
#78BFF7 #787FF7 #B178F7
triadic
#787FF7 #F7787F #7FF778
tetradic
#787FF7 #F778BF #F7F078 #78F7B1
square
#787FF7 #F778BF #F7F078 #78F7B1
split-complementary
#787FF7 #F7B178 #BFF778
monochromatic
#0E1AE7 #3E48F4 #787FF7 #B2B6FA #E2E4FD

Accessibility & contrast

On white

3.40
#787FF7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.18
#787FF7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #787FF7
6.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##787FF7#FFFFFF#000000##000000
##787FF71.003.406.186.18
#FFFFFF3.401.0021.0021.00
#0000006.1821.001.001.00
##0000006.1821.001.001.00

Color blindness preview

Protanopia (red-blind)
#4690FB
Deuteranopia (green-blind)
#3886F4
Tritanopia (blue-blind)
#4199AF
Achromatopsia (no color)
#8B8B8B

Design tokens & code

CSS
--color: #787ff7;
/* rgb */ color: rgb(120, 127, 247);
/* oklch */ color: oklch(64.9% 0.176 277.8);
Tailwind
colors: {
  custom: {
    50: '#a7a4fa',
    500: '#787ff7',
    950: '#000000',
  },
}
SCSS
$custom: #787ff7;
$custom-light: #a7a4fa;
$custom-dark: #000000;
JSON
{
  "hex": "#787ff7",
  "rgb": {
    "r": 120,
    "g": 127,
    "b": 247
  },
  "hsl": {
    "h": 236.693,
    "s": 88.811,
    "l": 71.961
  },
  "oklch": {
    "l": 0.64882,
    "c": 0.17583,
    "h": 277.8
  },
  "luminance": 0.25887
}

Semantic roles & 50–950 ramp

primary
#787FF7
secondary
#F5F4D5
accent
#D900E5
background
#FAFAFF
surface
#F4F4FF
border
#CECED7
text
#100F17
muted
#7F7F85

Preview Lab

Preview with #787FF7

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

Preview Lab → · Contrast checker → · Palette generator →

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