#787CF7#787CF7

#787CF7 is a light, vivid blue. Relative luminance 0.251; OKLCH L 64.3% C 0.180 H 278.7°. Best body text is #000000 at 6.02:1 contrast (WCAG AA passes).

Color values

HEX#787CF7
RGBrgb(120, 124, 247)
HSLhsl(238, 89%, 72%)
HSVhsv(238, 51%, 97%)
CMYKcmyk(51.4%, 49.8%, 0%, 3.1%)
CIE-LABlab(57.19, 31.39, -62.30)
CIE-LCHlch(57.19, 69.76, 296.74°)
OKLaboklab(64.33% 0.0271 -0.1777)
OKLCHoklch(64.33% 0.18 278.7)
XYZxyz(31.7366, 25.1219, 91.1543)
Luminance0.2512 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787CF7 #F7F378
analogous
#78BCF7 #787CF7 #B478F7
triadic
#787CF7 #F7787C #7CF778
tetradic
#787CF7 #F778BC #F7F378 #78F7B4
square
#787CF7 #F778BC #F7F378 #78F7B4
split-complementary
#787CF7 #F7B478 #BCF778
monochromatic
#0E15E7 #3E44F4 #787CF7 #B2B4FA #E2E3FD

Accessibility & contrast

On white

3.49
#787CF7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.02
#787CF7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #787CF7
6.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##787CF7#FFFFFF#000000##000000
##787CF71.003.496.026.02
#FFFFFF3.491.0021.0021.00
#0000006.0221.001.001.00
##0000006.0221.001.001.00

Color blindness preview

Protanopia (red-blind)
#3F8EFB
Deuteranopia (green-blind)
#3184F4
Tritanopia (blue-blind)
#4297AE
Achromatopsia (no color)
#898989

Design tokens & code

CSS
--color: #787cf7;
/* rgb */ color: rgb(120, 124, 247);
/* oklch */ color: oklch(64.3% 0.180 278.7);
Tailwind
colors: {
  custom: {
    50: '#a7a1fa',
    500: '#787cf7',
    950: '#000000',
  },
}
SCSS
$custom: #787cf7;
$custom-light: #a7a1fa;
$custom-dark: #000000;
JSON
{
  "hex": "#787cf7",
  "rgb": {
    "r": 120,
    "g": 124,
    "b": 247
  },
  "hsl": {
    "h": 238.11,
    "s": 88.811,
    "l": 71.961
  },
  "oklch": {
    "l": 0.64329,
    "c": 0.17974,
    "h": 278.7
  },
  "luminance": 0.25124
}

Semantic roles & 50–950 ramp

primary
#787CF7
secondary
#F5F4D5
accent
#DE00E5
background
#FAF9FF
surface
#F4F2FF
border
#CECCD7
text
#100F17
muted
#7F7E85

Preview Lab

Preview with #787CF7

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

Preview Lab → · Contrast checker → · Palette generator →

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