#787FEF#787FEF

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

Color values

HEX#787FEF
RGBrgb(120, 127, 239)
HSLhsl(236, 79%, 70%)
HSVhsv(236, 50%, 94%)
CMYKcmyk(49.8%, 46.9%, 0%, 6.3%)
CIE-LABlab(57.47, 27.18, -57.43)
CIE-LCHlch(57.47, 63.54, 295.33°)
OKLaboklab(64.38% 0.023 -0.1634)
OKLCHoklch(64.38% 0.165 278)
XYZxyz(30.9102, 25.4020, 84.9189)
Luminance0.2540 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787FEF #EFE878
analogous
#78BAEF #787FEF #AD78EF
triadic
#787FEF #EF787F #7FEF78
tetradic
#787FEF #EF78BA #EFE878 #78EFAD
square
#787FEF #EF78BA #EFE878 #78EFAD
split-complementary
#787FEF #EFAD78 #BAEF78
monochromatic
#1924D4 #414BE9 #787FEF #AFB3F5 #E4E5FC

Accessibility & contrast

On white

3.45
#787FEF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

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

Best text color

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

Contrast matrix

fg \ bg##787FEF#FFFFFF#000000##000000
##787FEF1.003.456.086.08
#FFFFFF3.451.0021.0021.00
#0000006.0821.001.001.00
##0000006.0821.001.001.00

Color blindness preview

Protanopia (red-blind)
#4D8FF3
Deuteranopia (green-blind)
#4285ED
Tritanopia (blue-blind)
#4897AC
Achromatopsia (no color)
#8A8A8A

Design tokens & code

CSS
--color: #787fef;
/* rgb */ color: rgb(120, 127, 239);
/* oklch */ color: oklch(64.4% 0.165 278.0);
Tailwind
colors: {
  custom: {
    50: '#a6a4f5',
    500: '#787fef',
    950: '#000000',
  },
}
SCSS
$custom: #787fef;
$custom-light: #a6a4f5;
$custom-dark: #000000;
JSON
{
  "hex": "#787fef",
  "rgb": {
    "r": 120,
    "g": 127,
    "b": 239
  },
  "hsl": {
    "h": 236.471,
    "s": 78.808,
    "l": 70.392
  },
  "oklch": {
    "l": 0.64383,
    "c": 0.16497,
    "h": 278
  },
  "luminance": 0.25404
}

Semantic roles & 50–950 ramp

primary
#787FEF
secondary
#F2F0D1
accent
#CF0ADB
background
#FAFAFF
surface
#F4F4FE
border
#CECED6
text
#100F17
muted
#7F7F85

Preview Lab

Preview with #787FEF

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

Preview Lab → · Contrast checker → · Palette generator →

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