#787BF7#787BF7

#787BF7 is a light, vivid blue. Relative luminance 0.249; OKLCH L 64.1% C 0.181 H 278.9°. Best body text is #000000 at 5.97:1 contrast (WCAG AA passes).

Color values

HEX#787BF7
RGBrgb(120, 123, 247)
HSLhsl(239, 89%, 72%)
HSVhsv(239, 51%, 97%)
CMYKcmyk(51.4%, 50.2%, 0%, 3.1%)
CIE-LABlab(56.95, 31.98, -62.69)
CIE-LCHlch(56.95, 70.38, 297.03°)
OKLaboklab(64.15% 0.0282 -0.1788)
OKLCHoklch(64.15% 0.181 278.9)
XYZxyz(31.6120, 24.8725, 91.1128)
Luminance0.2487 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787BF7 #F7F478
analogous
#78BAF7 #787BF7 #B578F7
triadic
#787BF7 #F7787B #7BF778
tetradic
#787BF7 #F778BA #F7F478 #78F7B5
square
#787BF7 #F778BA #F7F478 #78F7B5
split-complementary
#787BF7 #F7B578 #BAF778
monochromatic
#0E13E7 #3E43F4 #787BF7 #B2B3FA #E2E3FD

Accessibility & contrast

On white

3.51
#787BF7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.97
#787BF7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #787BF7
5.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##787BF7#FFFFFF#000000##000000
##787BF71.003.515.975.97
#FFFFFF3.511.0021.0021.00
#0000005.9721.001.001.00
##0000005.9721.001.001.00

Color blindness preview

Protanopia (red-blind)
#3D8EFB
Deuteranopia (green-blind)
#2E84F4
Tritanopia (blue-blind)
#4296AD
Achromatopsia (no color)
#898989

Design tokens & code

CSS
--color: #787bf7;
/* rgb */ color: rgb(120, 123, 247);
/* oklch */ color: oklch(64.1% 0.181 278.9);
Tailwind
colors: {
  custom: {
    50: '#a7a1fa',
    500: '#787bf7',
    950: '#000000',
  },
}
SCSS
$custom: #787bf7;
$custom-light: #a7a1fa;
$custom-dark: #000000;
JSON
{
  "hex": "#787bf7",
  "rgb": {
    "r": 120,
    "g": 123,
    "b": 247
  },
  "hsl": {
    "h": 238.583,
    "s": 88.811,
    "l": 71.961
  },
  "oklch": {
    "l": 0.64147,
    "c": 0.18105,
    "h": 278.9
  },
  "luminance": 0.24874
}

Semantic roles & 50–950 ramp

primary
#787BF7
secondary
#F5F5D5
accent
#E000E5
background
#FAF9FF
surface
#F4F2FF
border
#CECCD7
text
#100F17
muted
#7F7E85

Preview Lab

Preview with #787BF7

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

Preview Lab → · Contrast checker → · Palette generator →

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