#787CFB#787CFB

#787CFB is a light, vivid blue. Relative luminance 0.254; OKLCH L 64.6% C 0.185 H 278.5°. Best body text is #000000 at 6.07:1 contrast (WCAG AA passes).

Color values

HEX#787CFB
RGBrgb(120, 124, 251)
HSLhsl(238, 94%, 73%)
HSVhsv(238, 52%, 98%)
CMYKcmyk(52.2%, 50.6%, 0%, 1.6%)
CIE-LABlab(57.44, 32.60, -64.12)
CIE-LCHlch(57.44, 71.93, 296.95°)
OKLaboklab(64.59% 0.0274 -0.183)
OKLCHoklch(64.59% 0.185 278.5)
XYZxyz(32.3605, 25.3714, 94.4400)
Luminance0.2537 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787CFB #FBF778
analogous
#78BDFB #787CFB #B578FB
triadic
#787CFB #FB787C #7CFB78
tetradic
#787CFB #FB78BD #FBF778 #78FBB5
square
#787CFB #FB78BD #FBF778 #78FBB5
split-complementary
#787CFB #FBB578 #BDFB78
monochromatic
#070EF1 #3D42F9 #787CFB #B3B6FD #E1E2FE

Accessibility & contrast

On white

3.46
#787CFB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.07
#787CFB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #787CFB
6.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##787CFB#FFFFFF#000000##000000
##787CFB1.003.466.076.07
#FFFFFF3.461.0021.0021.00
#0000006.0721.001.001.00
##0000006.0721.001.001.00

Color blindness preview

Protanopia (red-blind)
#3B8FFF
Deuteranopia (green-blind)
#2985F8
Tritanopia (blue-blind)
#3E98B0
Achromatopsia (no color)
#8A8A8A

Design tokens & code

CSS
--color: #787cfb;
/* rgb */ color: rgb(120, 124, 251);
/* oklch */ color: oklch(64.6% 0.185 278.5);
Tailwind
colors: {
  custom: {
    50: '#a8a1fd',
    500: '#787cfb',
    950: '#000000',
  },
}
SCSS
$custom: #787cfb;
$custom-light: #a8a1fd;
$custom-dark: #000000;
JSON
{
  "hex": "#787cfb",
  "rgb": {
    "r": 120,
    "g": 124,
    "b": 251
  },
  "hsl": {
    "h": 238.168,
    "s": 94.245,
    "l": 72.745
  },
  "oklch": {
    "l": 0.64589,
    "c": 0.18509,
    "h": 278.5
  },
  "luminance": 0.25373
}

Semantic roles & 50–950 ramp

primary
#787CFB
secondary
#F6F5D5
accent
#DE00E6
background
#FAF9FF
surface
#F4F2FF
border
#CECCD7
text
#100F18
muted
#7F7E86

Preview Lab

Preview with #787CFB

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

Preview Lab → · Contrast checker → · Palette generator →

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