#787DF7#787DF7

#787DF7 is a light, vivid blue. Relative luminance 0.254; OKLCH L 64.5% C 0.178 H 278.4°. Best body text is #000000 at 6.08:1 contrast (WCAG AA passes).

Color values

HEX#787DF7
RGBrgb(120, 125, 247)
HSLhsl(238, 89%, 72%)
HSVhsv(238, 51%, 97%)
CMYKcmyk(51.4%, 49.4%, 0%, 3.1%)
CIE-LABlab(57.44, 30.79, -61.91)
CIE-LCHlch(57.44, 69.14, 296.45°)
OKLaboklab(64.51% 0.026 -0.1765)
OKLCHoklch(64.51% 0.178 278.4)
XYZxyz(31.8626, 25.3738, 91.1963)
Luminance0.2538 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787DF7 #F7F278
analogous
#78BDF7 #787DF7 #B378F7
triadic
#787DF7 #F7787D #7DF778
tetradic
#787DF7 #F778BD #F7F278 #78F7B3
square
#787DF7 #F778BD #F7F278 #78F7B3
split-complementary
#787DF7 #F7B378 #BDF778
monochromatic
#0E16E7 #3E45F4 #787DF7 #B2B5FA #E2E3FD

Accessibility & contrast

On white

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

On black

6.08
#787DF7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #787DF7
6.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##787DF7#FFFFFF#000000##000000
##787DF71.003.466.086.08
#FFFFFF3.461.0021.0021.00
#0000006.0821.001.001.00
##0000006.0821.001.001.00

Color blindness preview

Protanopia (red-blind)
#428FFB
Deuteranopia (green-blind)
#3385F4
Tritanopia (blue-blind)
#4298AE
Achromatopsia (no color)
#8A8A8A

Design tokens & code

CSS
--color: #787df7;
/* rgb */ color: rgb(120, 125, 247);
/* oklch */ color: oklch(64.5% 0.178 278.4);
Tailwind
colors: {
  custom: {
    50: '#a7a2fa',
    500: '#787df7',
    950: '#000000',
  },
}
SCSS
$custom: #787df7;
$custom-light: #a7a2fa;
$custom-dark: #000000;
JSON
{
  "hex": "#787df7",
  "rgb": {
    "r": 120,
    "g": 125,
    "b": 247
  },
  "hsl": {
    "h": 237.638,
    "s": 88.811,
    "l": 71.961
  },
  "oklch": {
    "l": 0.64513,
    "c": 0.17843,
    "h": 278.4
  },
  "luminance": 0.25376
}

Semantic roles & 50–950 ramp

primary
#787DF7
secondary
#F5F4D5
accent
#DC00E5
background
#FAFAFF
surface
#F4F3FF
border
#CECDD7
text
#100F17
muted
#7F7F85

Preview Lab

Preview with #787DF7

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

Preview Lab → · Contrast checker → · Palette generator →

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