#787CF6#787CF6

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

Color values

HEX#787CF6
RGBrgb(120, 124, 246)
HSLhsl(238, 88%, 72%)
HSVhsv(238, 51%, 96%)
CMYKcmyk(51.2%, 49.6%, 0%, 3.5%)
CIE-LABlab(57.13, 31.08, -61.84)
CIE-LCHlch(57.13, 69.21, 296.69°)
OKLaboklab(64.27% 0.027 -0.1763)
OKLCHoklch(64.27% 0.178 278.7)
XYZxyz(31.5828, 25.0603, 90.3438)
Luminance0.2506 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787CF6 #F6F278
analogous
#78BBF6 #787CF6 #B378F6
triadic
#787CF6 #F6787C #7CF678
tetradic
#787CF6 #F678BB #F6F278 #78F6B3
square
#787CF6 #F678BB #F6F278 #78F6B3
split-complementary
#787CF6 #F6B378 #BBF678
monochromatic
#0F16E4 #3F44F2 #787CF6 #B1B4FA #E2E3FD

Accessibility & contrast

On white

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

On black

6.01
#787CF6 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #787CF6
6.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##787CF6#FFFFFF#000000##000000
##787CF61.003.496.016.01
#FFFFFF3.491.0021.0021.00
#0000006.0121.001.001.00
##0000006.0121.001.001.00

Color blindness preview

Protanopia (red-blind)
#408EFA
Deuteranopia (green-blind)
#3284F3
Tritanopia (blue-blind)
#4397AD
Achromatopsia (no color)
#898989

Design tokens & code

CSS
--color: #787cf6;
/* rgb */ color: rgb(120, 124, 246);
/* oklch */ color: oklch(64.3% 0.178 278.7);
Tailwind
colors: {
  custom: {
    50: '#a7a1fa',
    500: '#787cf6',
    950: '#000000',
  },
}
SCSS
$custom: #787cf6;
$custom-light: #a7a1fa;
$custom-dark: #000000;
JSON
{
  "hex": "#787cf6",
  "rgb": {
    "r": 120,
    "g": 124,
    "b": 246
  },
  "hsl": {
    "h": 238.095,
    "s": 87.5,
    "l": 71.765
  },
  "oklch": {
    "l": 0.64265,
    "c": 0.1784,
    "h": 278.7
  },
  "luminance": 0.25062
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #787CF6

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

Preview Lab → · Contrast checker → · Palette generator →

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