#787FFE#787FFE

#787FFE is a light, vivid blue. Relative luminance 0.263; OKLCH L 65.3% C 0.185 H 277.6°. Best body text is #000000 at 6.27:1 contrast (WCAG AA passes).

Color values

HEX#787FFE
RGBrgb(120, 127, 254)
HSLhsl(237, 99%, 73%)
HSVhsv(237, 53%, 100%)
CMYKcmyk(52.8%, 50%, 0%, 0.4%)
CIE-LABlab(58.34, 31.75, -64.31)
CIE-LCHlch(58.34, 71.72, 296.27°)
OKLaboklab(65.33% 0.0244 -0.1836)
OKLCHoklch(65.33% 0.185 277.6)
XYZxyz(33.2189, 26.3254, 97.0776)
Luminance0.2633 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787FFE #FEF778
analogous
#78C2FE #787FFE #B478FE
triadic
#787FFE #FE787F #7FFE78
tetradic
#787FFE #FE78C2 #FEF778 #78FEB4
square
#787FFE #FE78C2 #FEF778 #78FEB4
split-complementary
#787FFE #FEB478 #C2FE78
monochromatic
#020FFA #3B45FE #787FFE #B5B9FE #E1E2FF

Accessibility & contrast

On white

3.35
#787FFE on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.27
#787FFE on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #787FFE
6.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##787FFE#FFFFFF#000000##000000
##787FFE1.003.356.276.27
#FFFFFF3.351.0021.0021.00
#0000006.2721.001.001.00
##0000006.2721.001.001.00

Color blindness preview

Protanopia (red-blind)
#3F92FF
Deuteranopia (green-blind)
#2C87FB
Tritanopia (blue-blind)
#3A9BB3
Achromatopsia (no color)
#8C8C8C

Design tokens & code

CSS
--color: #787ffe;
/* rgb */ color: rgb(120, 127, 254);
/* oklch */ color: oklch(65.3% 0.185 277.6);
Tailwind
colors: {
  custom: {
    50: '#a8a4ff',
    500: '#787ffe',
    950: '#000000',
  },
}
SCSS
$custom: #787ffe;
$custom-light: #a8a4ff;
$custom-dark: #000000;
JSON
{
  "hex": "#787ffe",
  "rgb": {
    "r": 120,
    "g": 127,
    "b": 254
  },
  "hsl": {
    "h": 236.866,
    "s": 98.529,
    "l": 73.333
  },
  "oklch": {
    "l": 0.6533,
    "c": 0.18521,
    "h": 277.6
  },
  "luminance": 0.26328
}

Semantic roles & 50–950 ramp

primary
#787FFE
secondary
#F7F5D4
accent
#DA00E6
background
#FAFAFF
surface
#F5F4FF
border
#CFCED7
text
#100F18
muted
#7F7F86

Preview Lab

Preview with #787FFE

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

Preview Lab → · Contrast checker → · Palette generator →

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