#787CE4#787CE4

#787CE4 is a light, vivid blue. Relative luminance 0.240; OKLCH L 63.1% C 0.154 H 279.4°. Best body text is #000000 at 5.80:1 contrast (WCAG AA passes).

Color values

HEX#787CE4
RGBrgb(120, 124, 228)
HSLhsl(238, 67%, 68%)
HSVhsv(238, 47%, 89%)
CMYKcmyk(47.4%, 45.6%, 0%, 10.6%)
CIE-LABlab(56.10, 25.66, -53.49)
CIE-LCHlch(56.10, 59.33, 295.63°)
OKLaboklab(63.15% 0.025 -0.1518)
OKLCHoklch(63.15% 0.154 279.4)
XYZxyz(28.9527, 24.0083, 76.4922)
Luminance0.2401 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787CE4 #E4E078
analogous
#78B2E4 #787CE4 #AA78E4
triadic
#787CE4 #E4787C #7CE478
tetradic
#787CE4 #E478B2 #E4E078 #78E4AA
square
#787CE4 #E478B2 #E4E078 #78E4AA
split-complementary
#787CE4 #E4AA78 #B2E478
monochromatic
#262BBC #454BDA #787CE4 #ABADEE #DEDFF8

Accessibility & contrast

On white

3.62
#787CE4 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.80
#787CE4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #787CE4
5.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##787CE4#FFFFFF#000000##000000
##787CE41.003.625.805.80
#FFFFFF3.621.0021.0021.00
#0000005.8021.001.001.00
##0000005.8021.001.001.00

Color blindness preview

Protanopia (red-blind)
#518BE8
Deuteranopia (green-blind)
#4882E2
Tritanopia (blue-blind)
#5192A5
Achromatopsia (no color)
#868686

Design tokens & code

CSS
--color: #787ce4;
/* rgb */ color: rgb(120, 124, 228);
/* oklch */ color: oklch(63.1% 0.154 279.4);
Tailwind
colors: {
  custom: {
    50: '#a5a1ed',
    500: '#787ce4',
    950: '#000000',
  },
}
SCSS
$custom: #787ce4;
$custom-light: #a5a1ed;
$custom-dark: #000000;
JSON
{
  "hex": "#787ce4",
  "rgb": {
    "r": 120,
    "g": 124,
    "b": 228
  },
  "hsl": {
    "h": 237.778,
    "s": 66.667,
    "l": 68.235
  },
  "oklch": {
    "l": 0.63146,
    "c": 0.15387,
    "h": 279.4
  },
  "luminance": 0.2401
}

Semantic roles & 50–950 ramp

primary
#787CE4
secondary
#ECEBCC
accent
#C817CF
background
#FAF9FE
surface
#F4F2FD
border
#CECCD5
text
#100F16
muted
#7F7E84

Preview Lab

Preview with #787CE4

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

Preview Lab → · Contrast checker → · Palette generator →

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