#787BEF#787BEF

#787BEF is a light, vivid blue. Relative luminance 0.244; OKLCH L 63.6% C 0.170 H 279.3°. Best body text is #000000 at 5.88:1 contrast (WCAG AA passes).

Color values

HEX#787BEF
RGBrgb(120, 123, 239)
HSLhsl(238, 79%, 70%)
HSVhsv(238, 50%, 94%)
CMYKcmyk(49.8%, 48.5%, 0%, 6.3%)
CIE-LABlab(56.48, 29.56, -59.02)
CIE-LCHlch(56.48, 66.01, 296.60°)
OKLaboklab(63.64% 0.0274 -0.168)
OKLCHoklch(63.64% 0.17 279.3)
XYZxyz(30.4039, 24.3892, 84.7501)
Luminance0.2439 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787BEF #EFEC78
analogous
#78B7EF #787BEF #B078EF
triadic
#787BEF #EF787B #7BEF78
tetradic
#787BEF #EF78B7 #EFEC78 #78EFB0
square
#787BEF #EF78B7 #EFEC78 #78EFB0
split-complementary
#787BEF #EFB078 #B7EF78
monochromatic
#191ED4 #4146E9 #787BEF #AFB0F5 #E4E4FC

Accessibility & contrast

On white

3.57
#787BEF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.88
#787BEF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #787BEF
5.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##787BEF#FFFFFF#000000##000000
##787BEF1.003.575.885.88
#FFFFFF3.571.0021.0021.00
#0000005.8821.001.001.00
##0000005.8821.001.001.00

Color blindness preview

Protanopia (red-blind)
#458CF3
Deuteranopia (green-blind)
#3A83EC
Tritanopia (blue-blind)
#4994AA
Achromatopsia (no color)
#878787

Design tokens & code

CSS
--color: #787bef;
/* rgb */ color: rgb(120, 123, 239);
/* oklch */ color: oklch(63.6% 0.170 279.3);
Tailwind
colors: {
  custom: {
    50: '#a6a1f5',
    500: '#787bef',
    950: '#000000',
  },
}
SCSS
$custom: #787bef;
$custom-light: #a6a1f5;
$custom-dark: #000000;
JSON
{
  "hex": "#787bef",
  "rgb": {
    "r": 120,
    "g": 123,
    "b": 239
  },
  "hsl": {
    "h": 238.487,
    "s": 78.808,
    "l": 70.392
  },
  "oklch": {
    "l": 0.63636,
    "c": 0.17028,
    "h": 279.3
  },
  "luminance": 0.24391
}

Semantic roles & 50–950 ramp

primary
#787BEF
secondary
#F2F1D1
accent
#D60ADB
background
#FAF9FF
surface
#F4F2FE
border
#CECCD6
text
#100E17
muted
#7F7E85

Preview Lab

Preview with #787BEF

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

Preview Lab → · Contrast checker → · Palette generator →

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