#787EEC#787EEC

#787EEC is a light, vivid blue. Relative luminance 0.250; OKLCH L 64.0% C 0.162 H 278.4°. Best body text is #000000 at 5.99:1 contrast (WCAG AA passes).

Color values

HEX#787EEC
RGBrgb(120, 126, 236)
HSLhsl(237, 75%, 70%)
HSVhsv(237, 49%, 93%)
CMYKcmyk(49.2%, 46.6%, 0%, 7.5%)
CIE-LABlab(57.05, 26.87, -56.44)
CIE-LCHlch(57.05, 62.51, 295.46°)
OKLaboklab(64.01% 0.0237 -0.1604)
OKLCHoklch(64.01% 0.162 278.4)
XYZxyz(30.3422, 24.9692, 82.5613)
Luminance0.2497 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787EEC #ECE678
analogous
#78B8EC #787EEC #AC78EC
triadic
#787EEC #EC787E #7EEC78
tetradic
#787EEC #EC78B8 #ECE678 #78ECAC
square
#787EEC #EC78B8 #ECE678 #78ECAC
split-complementary
#787EEC #ECAC78 #B8EC78
monochromatic
#1D26CD #424BE4 #787EEC #AEB1F4 #E3E5FB

Accessibility & contrast

On white

3.50
#787EEC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.99
#787EEC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #787EEC
5.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##787EEC#FFFFFF#000000##000000
##787EEC1.003.505.995.99
#FFFFFF3.501.0021.0021.00
#0000005.9921.001.001.00
##0000005.9921.001.001.00

Color blindness preview

Protanopia (red-blind)
#4E8EF0
Deuteranopia (green-blind)
#4485EA
Tritanopia (blue-blind)
#4B96AA
Achromatopsia (no color)
#898989

Design tokens & code

CSS
--color: #787eec;
/* rgb */ color: rgb(120, 126, 236);
/* oklch */ color: oklch(64.0% 0.162 278.4);
Tailwind
colors: {
  custom: {
    50: '#a6a3f3',
    500: '#787eec',
    950: '#000000',
  },
}
SCSS
$custom: #787eec;
$custom-light: #a6a3f3;
$custom-dark: #000000;
JSON
{
  "hex": "#787eec",
  "rgb": {
    "r": 120,
    "g": 126,
    "b": 236
  },
  "hsl": {
    "h": 236.897,
    "s": 75.325,
    "l": 69.804
  },
  "oklch": {
    "l": 0.6401,
    "c": 0.1622,
    "h": 278.4
  },
  "luminance": 0.24971
}

Semantic roles & 50–950 ramp

primary
#787EEC
secondary
#F0EFD0
accent
#CD0ED7
background
#FAFAFE
surface
#F4F3FD
border
#CECDD5
text
#100F17
muted
#7F7F85

Preview Lab

Preview with #787EEC

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

Preview Lab → · Contrast checker → · Palette generator →

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