#787AE6#787AE6

#787AE6 is a light, vivid blue. Relative luminance 0.236; OKLCH L 62.9% C 0.159 H 280.0°. Best body text is #000000 at 5.73:1 contrast (WCAG AA passes).

Color values

HEX#787AE6
RGBrgb(120, 122, 230)
HSLhsl(239, 69%, 69%)
HSVhsv(239, 48%, 90%)
CMYKcmyk(47.8%, 47%, 0%, 9.8%)
CIE-LABlab(55.71, 27.45, -55.23)
CIE-LCHlch(55.71, 61.67, 296.43°)
OKLaboklab(62.89% 0.0276 -0.1569)
OKLCHoklch(62.89% 0.159 280)
XYZxyz(28.9838, 23.6238, 77.8802)
Luminance0.2362 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787AE6 #E6E478
analogous
#78B1E6 #787AE6 #AD78E6
triadic
#787AE6 #E6787A #7AE678
tetradic
#787AE6 #E678B1 #E6E478 #78E6AD
square
#787AE6 #E678B1 #E6E478 #78E6AD
split-complementary
#787AE6 #E6AD78 #B1E678
monochromatic
#2426C0 #4447DC #787AE6 #ACADF0 #DFE0F9

Accessibility & contrast

On white

3.67
#787AE6 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.73
#787AE6 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #787AE6
5.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##787AE6#FFFFFF#000000##000000
##787AE61.003.675.735.73
#FFFFFF3.671.0021.0021.00
#0000005.7321.001.001.00
##0000005.7321.001.001.00

Color blindness preview

Protanopia (red-blind)
#4C8AEA
Deuteranopia (green-blind)
#4381E4
Tritanopia (blue-blind)
#5091A5
Achromatopsia (no color)
#858585

Design tokens & code

CSS
--color: #787ae6;
/* rgb */ color: rgb(120, 122, 230);
/* oklch */ color: oklch(62.9% 0.159 280.0);
Tailwind
colors: {
  custom: {
    50: '#a5a0ee',
    500: '#787ae6',
    950: '#000000',
  },
}
SCSS
$custom: #787ae6;
$custom-light: #a5a0ee;
$custom-dark: #000000;
JSON
{
  "hex": "#787ae6",
  "rgb": {
    "r": 120,
    "g": 122,
    "b": 230
  },
  "hsl": {
    "h": 238.909,
    "s": 68.75,
    "l": 68.627
  },
  "oklch": {
    "l": 0.62889,
    "c": 0.15934,
    "h": 280
  },
  "luminance": 0.23625
}

Semantic roles & 50–950 ramp

primary
#787AE6
secondary
#EDEDCC
accent
#CD15D1
background
#FAF9FE
surface
#F4F2FD
border
#CECCD5
text
#100E16
muted
#7F7E84

Preview Lab

Preview with #787AE6

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

Preview Lab → · Contrast checker → · Palette generator →

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