#787BF4#787BF4

#787BF4 is a light, vivid blue. Relative luminance 0.247; OKLCH L 64.0% C 0.177 H 279.1°. Best body text is #000000 at 5.94:1 contrast (WCAG AA passes).

Color values

HEX#787BF4
RGBrgb(120, 123, 244)
HSLhsl(239, 85%, 71%)
HSVhsv(239, 51%, 96%)
CMYKcmyk(50.8%, 49.6%, 0%, 4.3%)
CIE-LABlab(56.77, 31.07, -61.32)
CIE-LCHlch(56.77, 68.74, 296.87°)
OKLaboklab(63.95% 0.0279 -0.1748)
OKLCHoklch(63.95% 0.177 279.1)
XYZxyz(31.1528, 24.6888, 88.6943)
Luminance0.2469 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787BF4 #F4F178
analogous
#78B9F4 #787BF4 #B378F4
triadic
#787BF4 #F4787B #7BF478
tetradic
#787BF4 #F478B9 #F4F178 #78F4B3
square
#787BF4 #F478B9 #F4F178 #78F4B3
split-complementary
#787BF4 #F4B378 #B9F478
monochromatic
#1217DF #3F44EF #787BF4 #B1B2F9 #E3E3FD

Accessibility & contrast

On white

3.54
#787BF4 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.94
#787BF4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #787BF4
5.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##787BF4#FFFFFF#000000##000000
##787BF41.003.545.945.94
#FFFFFF3.541.0021.0021.00
#0000005.9421.001.001.00
##0000005.9421.001.001.00

Color blindness preview

Protanopia (red-blind)
#408DF8
Deuteranopia (green-blind)
#3383F1
Tritanopia (blue-blind)
#4596AC
Achromatopsia (no color)
#888888

Design tokens & code

CSS
--color: #787bf4;
/* rgb */ color: rgb(120, 123, 244);
/* oklch */ color: oklch(64.0% 0.177 279.1);
Tailwind
colors: {
  custom: {
    50: '#a7a1f8',
    500: '#787bf4',
    950: '#000000',
  },
}
SCSS
$custom: #787bf4;
$custom-light: #a7a1f8;
$custom-dark: #000000;
JSON
{
  "hex": "#787bf4",
  "rgb": {
    "r": 120,
    "g": 123,
    "b": 244
  },
  "hsl": {
    "h": 238.548,
    "s": 84.932,
    "l": 71.373
  },
  "oklch": {
    "l": 0.63953,
    "c": 0.17702,
    "h": 279.1
  },
  "luminance": 0.24691
}

Semantic roles & 50–950 ramp

primary
#787BF4
secondary
#F4F3D4
accent
#DC04E1
background
#FAF9FF
surface
#F4F2FF
border
#CECCD7
text
#100F17
muted
#7F7E85

Preview Lab

Preview with #787BF4

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

Preview Lab → · Contrast checker → · Palette generator →

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