#787CE1#787CE1

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

Color values

HEX#787CE1
RGBrgb(120, 124, 225)
HSLhsl(238, 64%, 68%)
HSVhsv(238, 47%, 88%)
CMYKcmyk(46.7%, 44.9%, 0%, 11.8%)
CIE-LABlab(55.93, 24.77, -52.07)
CIE-LCHlch(55.93, 57.67, 295.44°)
OKLaboklab(62.97% 0.0246 -0.1477)
OKLCHoklch(62.97% 0.15 279.5)
XYZxyz(28.5399, 23.8431, 74.3179)
Luminance0.2384 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787CE1 #E1DD78
analogous
#78B1E1 #787CE1 #A878E1
triadic
#787CE1 #E1787C #7CE178
tetradic
#787CE1 #E178B1 #E1DD78 #78E1A8
square
#787CE1 #E178B1 #E1DD78 #78E1A8
split-complementary
#787CE1 #E1A878 #B1E178
monochromatic
#282EB6 #464BD6 #787CE1 #AAADEC #DCDDF7

Accessibility & contrast

On white

3.64
#787CE1 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.77
#787CE1 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #787CE1
5.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##787CE1#FFFFFF#000000##000000
##787CE11.003.645.775.77
#FFFFFF3.641.0021.0021.00
#0000005.7721.001.001.00
##0000005.7721.001.001.00

Color blindness preview

Protanopia (red-blind)
#538AE5
Deuteranopia (green-blind)
#4B82DF
Tritanopia (blue-blind)
#5391A4
Achromatopsia (no color)
#868686

Design tokens & code

CSS
--color: #787ce1;
/* rgb */ color: rgb(120, 124, 225);
/* oklch */ color: oklch(63.0% 0.150 279.5);
Tailwind
colors: {
  custom: {
    50: '#a4a1eb',
    500: '#787ce1',
    950: '#000000',
  },
}
SCSS
$custom: #787ce1;
$custom-light: #a4a1eb;
$custom-dark: #000000;
JSON
{
  "hex": "#787ce1",
  "rgb": {
    "r": 120,
    "g": 124,
    "b": 225
  },
  "hsl": {
    "h": 237.714,
    "s": 63.636,
    "l": 67.647
  },
  "oklch": {
    "l": 0.62967,
    "c": 0.14971,
    "h": 279.5
  },
  "luminance": 0.23845
}

Semantic roles & 50–950 ramp

primary
#787CE1
secondary
#EBE9CA
accent
#C51ACB
background
#FAF9FE
surface
#F4F2FD
border
#CECCD5
text
#100F16
muted
#7F7E84

Preview Lab

Preview with #787CE1

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

Preview Lab → · Contrast checker → · Palette generator →

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