#787CFE#787CFE

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

Color values

HEX#787CFE
RGBrgb(120, 124, 254)
HSLhsl(238, 99%, 73%)
HSVhsv(238, 53%, 100%)
CMYKcmyk(52.8%, 51.2%, 0%, 0.4%)
CIE-LABlab(57.62, 33.52, -65.48)
CIE-LCHlch(57.62, 73.56, 297.11°)
OKLaboklab(64.79% 0.0276 -0.187)
OKLCHoklch(64.79% 0.189 278.4)
XYZxyz(32.8372, 25.5621, 96.9504)
Luminance0.2556 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787CFE #FEFA78
analogous
#78BFFE #787CFE #B778FE
triadic
#787CFE #FE787C #7CFE78
tetradic
#787CFE #FE78BF #FEFA78 #78FEB7
square
#787CFE #FE78BF #FEFA78 #78FEB7
split-complementary
#787CFE #FEB778 #BFFE78
monochromatic
#0209FA #3B41FE #787CFE #B5B7FE #E1E2FF

Accessibility & contrast

On white

3.44
#787CFE on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

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

Best text color

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

Contrast matrix

fg \ bg##787CFE#FFFFFF#000000##000000
##787CFE1.003.446.116.11
#FFFFFF3.441.0021.0021.00
#0000006.1121.001.001.00
##0000006.1121.001.001.00

Color blindness preview

Protanopia (red-blind)
#3790FF
Deuteranopia (green-blind)
#2385FB
Tritanopia (blue-blind)
#3B99B1
Achromatopsia (no color)
#8A8A8A

Design tokens & code

CSS
--color: #787cfe;
/* rgb */ color: rgb(120, 124, 254);
/* oklch */ color: oklch(64.8% 0.189 278.4);
Tailwind
colors: {
  custom: {
    50: '#a8a2ff',
    500: '#787cfe',
    950: '#000000',
  },
}
SCSS
$custom: #787cfe;
$custom-light: #a8a2ff;
$custom-dark: #000000;
JSON
{
  "hex": "#787cfe",
  "rgb": {
    "r": 120,
    "g": 124,
    "b": 254
  },
  "hsl": {
    "h": 238.209,
    "s": 98.529,
    "l": 73.333
  },
  "oklch": {
    "l": 0.64785,
    "c": 0.18906,
    "h": 278.4
  },
  "luminance": 0.25564
}

Semantic roles & 50–950 ramp

primary
#787CFE
secondary
#F7F6D4
accent
#DF00E6
background
#FAF9FF
surface
#F5F2FF
border
#CFCCD7
text
#110F18
muted
#807E86

Preview Lab

Preview with #787CFE

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

Preview Lab → · Contrast checker → · Palette generator →

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