#787CEC#787CEC

#787CEC is a light, vivid blue. Relative luminance 0.245; OKLCH L 63.6% C 0.165 H 279.1°. Best body text is #000000 at 5.89:1 contrast (WCAG AA passes).

Color values

HEX#787CEC
RGBrgb(120, 124, 236)
HSLhsl(238, 75%, 70%)
HSVhsv(238, 49%, 93%)
CMYKcmyk(49.2%, 47.5%, 0%, 7.5%)
CIE-LABlab(56.55, 28.06, -57.23)
CIE-LCHlch(56.55, 63.74, 296.12°)
OKLaboklab(63.63% 0.026 -0.1628)
OKLCHoklch(63.63% 0.165 279.1)
XYZxyz(30.0890, 24.4628, 82.4769)
Luminance0.2447 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787CEC #ECE878
analogous
#78B6EC #787CEC #AE78EC
triadic
#787CEC #EC787C #7CEC78
tetradic
#787CEC #EC78B6 #ECE878 #78ECAE
square
#787CEC #EC78B6 #ECE878 #78ECAE
split-complementary
#787CEC #ECAE78 #B6EC78
monochromatic
#1D23CD #4248E4 #787CEC #AEB0F4 #E3E4FB

Accessibility & contrast

On white

3.56
#787CEC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.89
#787CEC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #787CEC
5.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##787CEC#FFFFFF#000000##000000
##787CEC1.003.565.895.89
#FFFFFF3.561.0021.0021.00
#0000005.8921.001.001.00
##0000005.8921.001.001.00

Color blindness preview

Protanopia (red-blind)
#4A8CF0
Deuteranopia (green-blind)
#4083EA
Tritanopia (blue-blind)
#4B94A9
Achromatopsia (no color)
#888888

Design tokens & code

CSS
--color: #787cec;
/* rgb */ color: rgb(120, 124, 236);
/* oklch */ color: oklch(63.6% 0.165 279.1);
Tailwind
colors: {
  custom: {
    50: '#a6a1f3',
    500: '#787cec',
    950: '#000000',
  },
}
SCSS
$custom: #787cec;
$custom-light: #a6a1f3;
$custom-dark: #000000;
JSON
{
  "hex": "#787cec",
  "rgb": {
    "r": 120,
    "g": 124,
    "b": 236
  },
  "hsl": {
    "h": 237.931,
    "s": 75.325,
    "l": 69.804
  },
  "oklch": {
    "l": 0.63634,
    "c": 0.16486,
    "h": 279.1
  },
  "luminance": 0.24465
}

Semantic roles & 50–950 ramp

primary
#787CEC
secondary
#F0EFD0
accent
#D10ED7
background
#FAF9FE
surface
#F4F2FD
border
#CECCD5
text
#100F17
muted
#7F7E85

Preview Lab

Preview with #787CEC

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

Preview Lab → · Contrast checker → · Palette generator →

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