#787AE7#787AE7

#787AE7 is a light, vivid blue. Relative luminance 0.237; OKLCH L 63.0% C 0.161 H 279.9°. Best body text is #000000 at 5.74:1 contrast (WCAG AA passes).

Color values

HEX#787AE7
RGBrgb(120, 122, 231)
HSLhsl(239, 70%, 69%)
HSVhsv(239, 48%, 91%)
CMYKcmyk(48.1%, 47.2%, 0%, 9.4%)
CIE-LABlab(55.77, 27.75, -55.69)
CIE-LCHlch(55.77, 62.23, 296.49°)
OKLaboklab(62.95% 0.0277 -0.1583)
OKLCHoklch(62.95% 0.161 279.9)
XYZxyz(29.1247, 23.6801, 78.6219)
Luminance0.2368 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787AE7 #E7E578
analogous
#78B2E7 #787AE7 #AE78E7
triadic
#787AE7 #E7787A #7AE778
tetradic
#787AE7 #E778B2 #E7E578 #78E7AE
square
#787AE7 #E778B2 #E7E578 #78E7AE
split-complementary
#787AE7 #E7AE78 #B2E778
monochromatic
#2325C2 #4447DE #787AE7 #ACADF0 #E0E0F9

Accessibility & contrast

On white

3.66
#787AE7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.74
#787AE7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #787AE7
5.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##787AE7#FFFFFF#000000##000000
##787AE71.003.665.745.74
#FFFFFF3.661.0021.0021.00
#0000005.7421.001.001.00
##0000005.7421.001.001.00

Color blindness preview

Protanopia (red-blind)
#4B8AEB
Deuteranopia (green-blind)
#4282E5
Tritanopia (blue-blind)
#4F91A5
Achromatopsia (no color)
#868686

Design tokens & code

CSS
--color: #787ae7;
/* rgb */ color: rgb(120, 122, 231);
/* oklch */ color: oklch(63.0% 0.161 279.9);
Tailwind
colors: {
  custom: {
    50: '#a5a0ef',
    500: '#787ae7',
    950: '#000000',
  },
}
SCSS
$custom: #787ae7;
$custom-light: #a5a0ef;
$custom-dark: #000000;
JSON
{
  "hex": "#787ae7",
  "rgb": {
    "r": 120,
    "g": 122,
    "b": 231
  },
  "hsl": {
    "h": 238.919,
    "s": 69.811,
    "l": 68.824
  },
  "oklch": {
    "l": 0.62951,
    "c": 0.16071,
    "h": 279.9
  },
  "luminance": 0.23682
}

Semantic roles & 50–950 ramp

primary
#787AE7
secondary
#EEEDCD
accent
#CE14D2
background
#FAF9FE
surface
#F4F2FD
border
#CECCD5
text
#100E16
muted
#7F7E84

Preview Lab

Preview with #787AE7

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

Preview Lab → · Contrast checker → · Palette generator →

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