#787BFC#787BFC

#787BFC is a light, vivid blue. Relative luminance 0.252; OKLCH L 64.5% C 0.188 H 278.7°. Best body text is #000000 at 6.04:1 contrast (WCAG AA passes).

Color values

HEX#787BFC
RGBrgb(120, 123, 252)
HSLhsl(239, 96%, 73%)
HSVhsv(239, 52%, 99%)
CMYKcmyk(52.4%, 51.2%, 0%, 1.2%)
CIE-LABlab(57.26, 33.50, -64.96)
CIE-LCHlch(57.26, 73.09, 297.28°)
OKLaboklab(64.47% 0.0285 -0.1855)
OKLCHoklch(64.47% 0.188 278.7)
XYZxyz(32.3939, 25.1853, 95.2309)
Luminance0.2519 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787BFC #FCF978
analogous
#78BDFC #787BFC #B778FC
triadic
#787BFC #FC787B #7BFC78
tetradic
#787BFC #FC78BD #FCF978 #78FCB7
square
#787BFC #FC78BD #FCF978 #78FCB7
split-complementary
#787BFC #FCB778 #BDFC78
monochromatic
#050BF4 #3C40FB #787BFC #B4B6FD #E1E2FE

Accessibility & contrast

On white

3.48
#787BFC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.04
#787BFC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #787BFC
6.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##787BFC#FFFFFF#000000##000000
##787BFC1.003.486.046.04
#FFFFFF3.481.0021.0021.00
#0000006.0421.001.001.00
##0000006.0421.001.001.00

Color blindness preview

Protanopia (red-blind)
#378FFF
Deuteranopia (green-blind)
#2484F9
Tritanopia (blue-blind)
#3D98B0
Achromatopsia (no color)
#898989

Design tokens & code

CSS
--color: #787bfc;
/* rgb */ color: rgb(120, 123, 252);
/* oklch */ color: oklch(64.5% 0.188 278.7);
Tailwind
colors: {
  custom: {
    50: '#a8a1fe',
    500: '#787bfc',
    950: '#000000',
  },
}
SCSS
$custom: #787bfc;
$custom-light: #a8a1fe;
$custom-dark: #000000;
JSON
{
  "hex": "#787bfc",
  "rgb": {
    "r": 120,
    "g": 123,
    "b": 252
  },
  "hsl": {
    "h": 238.636,
    "s": 95.652,
    "l": 72.941
  },
  "oklch": {
    "l": 0.64473,
    "c": 0.18771,
    "h": 278.7
  },
  "luminance": 0.25187
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #787BFC

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

Preview Lab → · Contrast checker → · Palette generator →

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