#787CE8#787CE8

#787CE8 is a light, vivid blue. Relative luminance 0.242; OKLCH L 63.4% C 0.159 H 279.2°. Best body text is #000000 at 5.85:1 contrast (WCAG AA passes).

Color values

HEX#787CE8
RGBrgb(120, 124, 232)
HSLhsl(238, 71%, 69%)
HSVhsv(238, 48%, 91%)
CMYKcmyk(48.3%, 46.6%, 0%, 9%)
CIE-LABlab(56.32, 26.86, -55.37)
CIE-LCHlch(56.32, 61.54, 295.88°)
OKLaboklab(63.39% 0.0255 -0.1573)
OKLCHoklch(63.39% 0.159 279.2)
XYZxyz(29.5144, 24.2330, 79.4505)
Luminance0.2424 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787CE8 #E8E478
analogous
#78B4E8 #787CE8 #AC78E8
triadic
#787CE8 #E8787C #7CE878
tetradic
#787CE8 #E878B4 #E8E478 #78E8AC
square
#787CE8 #E878B4 #E8E478 #78E8AC
split-complementary
#787CE8 #E8AC78 #B4E878
monochromatic
#2127C4 #4449DF #787CE8 #ACAFF1 #E1E1FA

Accessibility & contrast

On white

3.59
#787CE8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.85
#787CE8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #787CE8
5.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##787CE8#FFFFFF#000000##000000
##787CE81.003.595.855.85
#FFFFFF3.591.0021.0021.00
#0000005.8521.001.001.00
##0000005.8521.001.001.00

Color blindness preview

Protanopia (red-blind)
#4E8BEC
Deuteranopia (green-blind)
#4483E6
Tritanopia (blue-blind)
#4E93A7
Achromatopsia (no color)
#878787

Design tokens & code

CSS
--color: #787ce8;
/* rgb */ color: rgb(120, 124, 232);
/* oklch */ color: oklch(63.4% 0.159 279.2);
Tailwind
colors: {
  custom: {
    50: '#a5a1f0',
    500: '#787ce8',
    950: '#000000',
  },
}
SCSS
$custom: #787ce8;
$custom-light: #a5a1f0;
$custom-dark: #000000;
JSON
{
  "hex": "#787ce8",
  "rgb": {
    "r": 120,
    "g": 124,
    "b": 232
  },
  "hsl": {
    "h": 237.857,
    "s": 70.886,
    "l": 69.02
  },
  "oklch": {
    "l": 0.63388,
    "c": 0.15939,
    "h": 279.2
  },
  "luminance": 0.24235
}

Semantic roles & 50–950 ramp

primary
#787CE8
secondary
#EEEDCD
accent
#CC13D3
background
#FAF9FE
surface
#F4F2FD
border
#CECCD5
text
#100F16
muted
#7F7E84

Preview Lab

Preview with #787CE8

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

Preview Lab → · Contrast checker → · Palette generator →

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