#787FFF#787FFF

#787FFF is a light, vivid blue. Relative luminance 0.264; OKLCH L 65.4% C 0.187 H 277.6°. Best body text is #000000 at 6.28:1 contrast (WCAG AA passes).

Color values

HEX#787FFF
RGBrgb(120, 127, 255)
HSLhsl(237, 100%, 74%)
HSVhsv(237, 53%, 100%)
CMYKcmyk(52.9%, 50.2%, 0%, 0%)
CIE-LABlab(58.41, 32.05, -64.77)
CIE-LCHlch(58.41, 72.26, 296.33°)
OKLaboklab(65.4% 0.0245 -0.1849)
OKLCHoklch(65.4% 0.187 277.6)
XYZxyz(33.3794, 26.3897, 97.9232)
Luminance0.2639 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787FFF #FFF878
analogous
#78C2FF #787FFF #B478FF
triadic
#787FFF #FF787F #7FFF78
tetradic
#787FFF #FF78C2 #FFF878 #78FFB4
square
#787FFF #FF78C2 #FFF878 #78FFB4
split-complementary
#787FFF #FFB478 #C2FF78
monochromatic
#000DFD #3B45FF #787FFF #B5B9FF #E0E2FF

Accessibility & contrast

On white

3.34
#787FFF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.28
#787FFF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #787FFF
6.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##787FFF#FFFFFF#000000##000000
##787FFF1.003.346.286.28
#FFFFFF3.341.0021.0021.00
#0000006.2821.001.001.00
##0000006.2821.001.001.00

Color blindness preview

Protanopia (red-blind)
#3D92FF
Deuteranopia (green-blind)
#2B87FC
Tritanopia (blue-blind)
#399CB3
Achromatopsia (no color)
#8C8C8C

Design tokens & code

CSS
--color: #787fff;
/* rgb */ color: rgb(120, 127, 255);
/* oklch */ color: oklch(65.4% 0.187 277.6);
Tailwind
colors: {
  custom: {
    50: '#a8a4ff',
    500: '#787fff',
    950: '#000000',
  },
}
SCSS
$custom: #787fff;
$custom-light: #a8a4ff;
$custom-dark: #000000;
JSON
{
  "hex": "#787fff",
  "rgb": {
    "r": 120,
    "g": 127,
    "b": 255
  },
  "hsl": {
    "h": 236.889,
    "s": 100,
    "l": 73.529
  },
  "oklch": {
    "l": 0.65395,
    "c": 0.18654,
    "h": 277.6
  },
  "luminance": 0.26392
}

Semantic roles & 50–950 ramp

primary
#787FFF
secondary
#F7F5D4
accent
#DA00E6
background
#FAFAFF
surface
#F5F4FF
border
#CFCED7
text
#110F18
muted
#807F86

Preview Lab

Preview with #787FFF

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

Preview Lab → · Contrast checker → · Palette generator →

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