#787DEC#787DEC

#787DEC is a light, vivid blue. Relative luminance 0.247; OKLCH L 63.8% C 0.164 H 278.7°. Best body text is #000000 at 5.94:1 contrast (WCAG AA passes).

Color values

HEX#787DEC
RGBrgb(120, 125, 236)
HSLhsl(237, 75%, 70%)
HSVhsv(237, 49%, 93%)
CMYKcmyk(49.2%, 47%, 0%, 7.5%)
CIE-LABlab(56.80, 27.47, -56.83)
CIE-LCHlch(56.80, 63.12, 295.79°)
OKLaboklab(63.82% 0.0249 -0.1616)
OKLCHoklch(63.82% 0.164 278.7)
XYZxyz(30.2150, 24.7147, 82.5189)
Luminance0.2472 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787DEC #ECE778
analogous
#78B7EC #787DEC #AD78EC
triadic
#787DEC #EC787D #7DEC78
tetradic
#787DEC #EC78B7 #ECE778 #78ECAD
square
#787DEC #EC78B7 #ECE778 #78ECAD
split-complementary
#787DEC #ECAD78 #B7EC78
monochromatic
#1D24CD #4249E4 #787DEC #AEB1F4 #E3E4FB

Accessibility & contrast

On white

3.53
#787DEC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.94
#787DEC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #787DEC
5.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##787DEC#FFFFFF#000000##000000
##787DEC1.003.535.945.94
#FFFFFF3.531.0021.0021.00
#0000005.9421.001.001.00
##0000005.9421.001.001.00

Color blindness preview

Protanopia (red-blind)
#4C8DF0
Deuteranopia (green-blind)
#4284EA
Tritanopia (blue-blind)
#4B95A9
Achromatopsia (no color)
#888888

Design tokens & code

CSS
--color: #787dec;
/* rgb */ color: rgb(120, 125, 236);
/* oklch */ color: oklch(63.8% 0.164 278.7);
Tailwind
colors: {
  custom: {
    50: '#a6a2f3',
    500: '#787dec',
    950: '#000000',
  },
}
SCSS
$custom: #787dec;
$custom-light: #a6a2f3;
$custom-dark: #000000;
JSON
{
  "hex": "#787dec",
  "rgb": {
    "r": 120,
    "g": 125,
    "b": 236
  },
  "hsl": {
    "h": 237.414,
    "s": 75.325,
    "l": 69.804
  },
  "oklch": {
    "l": 0.63822,
    "c": 0.16353,
    "h": 278.7
  },
  "luminance": 0.24716
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #787DEC

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

Preview Lab → · Contrast checker → · Palette generator →

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