#787CFC#787CFC

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

Color values

HEX#787CFC
RGBrgb(120, 124, 252)
HSLhsl(238, 96%, 73%)
HSVhsv(238, 52%, 99%)
CMYKcmyk(52.4%, 50.8%, 0%, 1.2%)
CIE-LABlab(57.50, 32.91, -64.58)
CIE-LCHlch(57.50, 72.48, 297.00°)
OKLaboklab(64.65% 0.0275 -0.1844)
OKLCHoklch(64.65% 0.186 278.5)
XYZxyz(32.5186, 25.4346, 95.2724)
Luminance0.2544 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787CFC #FCF878
analogous
#78BEFC #787CFC #B678FC
triadic
#787CFC #FC787C #7CFC78
tetradic
#787CFC #FC78BE #FCF878 #78FCB6
square
#787CFC #FC78BE #FCF878 #78FCB6
split-complementary
#787CFC #FCB678 #BEFC78
monochromatic
#050DF4 #3C42FB #787CFC #B4B6FD #E1E2FE

Accessibility & contrast

On white

3.45
#787CFC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.09
#787CFC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #787CFC
6.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##787CFC#FFFFFF#000000##000000
##787CFC1.003.456.096.09
#FFFFFF3.451.0021.0021.00
#0000006.0921.001.001.00
##0000006.0921.001.001.00

Color blindness preview

Protanopia (red-blind)
#398FFF
Deuteranopia (green-blind)
#2785F9
Tritanopia (blue-blind)
#3D99B0
Achromatopsia (no color)
#8A8A8A

Design tokens & code

CSS
--color: #787cfc;
/* rgb */ color: rgb(120, 124, 252);
/* oklch */ color: oklch(64.7% 0.186 278.5);
Tailwind
colors: {
  custom: {
    50: '#a8a1fe',
    500: '#787cfc',
    950: '#000000',
  },
}
SCSS
$custom: #787cfc;
$custom-light: #a8a1fe;
$custom-dark: #000000;
JSON
{
  "hex": "#787cfc",
  "rgb": {
    "r": 120,
    "g": 124,
    "b": 252
  },
  "hsl": {
    "h": 238.182,
    "s": 95.652,
    "l": 72.941
  },
  "oklch": {
    "l": 0.64654,
    "c": 0.18641,
    "h": 278.5
  },
  "luminance": 0.25437
}

Semantic roles & 50–950 ramp

primary
#787CFC
secondary
#F7F6D4
accent
#DF00E6
background
#FAF9FF
surface
#F4F2FF
border
#CECCD7
text
#100F18
muted
#7F7E86

Preview Lab

Preview with #787CFC

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

Preview Lab → · Contrast checker → · Palette generator →

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