#787BE4#787BE4

#787BE4 is a light, vivid blue. Relative luminance 0.238; OKLCH L 63.0% C 0.155 H 279.7°. Best body text is #000000 at 5.75:1 contrast (WCAG AA passes).

Color values

HEX#787BE4
RGBrgb(120, 123, 228)
HSLhsl(238, 67%, 68%)
HSVhsv(238, 47%, 89%)
CMYKcmyk(47.4%, 46.1%, 0%, 10.6%)
CIE-LABlab(55.85, 26.26, -53.89)
CIE-LCHlch(55.85, 59.95, 295.98°)
OKLaboklab(62.96% 0.0262 -0.153)
OKLCHoklch(62.96% 0.155 279.7)
XYZxyz(28.8280, 23.7589, 76.4507)
Luminance0.2376 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787BE4 #E4E178
analogous
#78B1E4 #787BE4 #AB78E4
triadic
#787BE4 #E4787B #7BE478
tetradic
#787BE4 #E478B1 #E4E178 #78E4AB
square
#787BE4 #E478B1 #E4E178 #78E4AB
split-complementary
#787BE4 #E4AB78 #B1E478
monochromatic
#262ABC #4549DA #787BE4 #ABADEE #DEDFF8

Accessibility & contrast

On white

3.65
#787BE4 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.75
#787BE4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #787BE4
5.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##787BE4#FFFFFF#000000##000000
##787BE41.003.655.755.75
#FFFFFF3.651.0021.0021.00
#0000005.7521.001.001.00
##0000005.7521.001.001.00

Color blindness preview

Protanopia (red-blind)
#4F8AE8
Deuteranopia (green-blind)
#4782E2
Tritanopia (blue-blind)
#5191A4
Achromatopsia (no color)
#868686

Design tokens & code

CSS
--color: #787be4;
/* rgb */ color: rgb(120, 123, 228);
/* oklch */ color: oklch(63.0% 0.155 279.7);
Tailwind
colors: {
  custom: {
    50: '#a5a1ed',
    500: '#787be4',
    950: '#000000',
  },
}
SCSS
$custom: #787be4;
$custom-light: #a5a1ed;
$custom-dark: #000000;
JSON
{
  "hex": "#787be4",
  "rgb": {
    "r": 120,
    "g": 123,
    "b": 228
  },
  "hsl": {
    "h": 238.333,
    "s": 66.667,
    "l": 68.235
  },
  "oklch": {
    "l": 0.62956,
    "c": 0.15523,
    "h": 279.7
  },
  "luminance": 0.2376
}

Semantic roles & 50–950 ramp

primary
#787BE4
secondary
#ECEBCC
accent
#C917CF
background
#FAF9FE
surface
#F4F2FD
border
#CECCD5
text
#100E16
muted
#7F7E84

Preview Lab

Preview with #787BE4

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

Preview Lab → · Contrast checker → · Palette generator →

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