#787AEA#787AEA

#787AEA is a light, vivid blue. Relative luminance 0.239; OKLCH L 63.1% C 0.165 H 279.8°. Best body text is #000000 at 5.77:1 contrast (WCAG AA passes).

Color values

HEX#787AEA
RGBrgb(120, 122, 234)
HSLhsl(239, 73%, 69%)
HSVhsv(239, 49%, 92%)
CMYKcmyk(48.7%, 47.9%, 0%, 8.2%)
CIE-LABlab(55.94, 28.65, -57.09)
CIE-LCHlch(55.94, 63.88, 296.65°)
OKLaboklab(63.14% 0.0281 -0.1624)
OKLCHoklch(63.14% 0.165 279.8)
XYZxyz(29.5520, 23.8510, 80.8725)
Luminance0.2385 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787AEA #EAE878
analogous
#78B3EA #787AEA #AF78EA
triadic
#787AEA #EA787A #7AEA78
tetradic
#787AEA #EA78B3 #EAE878 #78EAAF
square
#787AEA #EA78B3 #EAE878 #78EAAF
split-complementary
#787AEA #EAAF78 #B3EA78
monochromatic
#1F22C8 #4346E2 #787AEA #ADAEF2 #E2E2FA

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##787AEA#FFFFFF#000000##000000
##787AEA1.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)
#488BEE
Deuteranopia (green-blind)
#3E82E8
Tritanopia (blue-blind)
#4D92A7
Achromatopsia (no color)
#868686

Design tokens & code

CSS
--color: #787aea;
/* rgb */ color: rgb(120, 122, 234);
/* oklch */ color: oklch(63.1% 0.165 279.8);
Tailwind
colors: {
  custom: {
    50: '#a6a0f1',
    500: '#787aea',
    950: '#000000',
  },
}
SCSS
$custom: #787aea;
$custom-light: #a6a0f1;
$custom-dark: #000000;
JSON
{
  "hex": "#787aea",
  "rgb": {
    "r": 120,
    "g": 122,
    "b": 234
  },
  "hsl": {
    "h": 238.947,
    "s": 73.077,
    "l": 69.412
  },
  "oklch": {
    "l": 0.63137,
    "c": 0.16482,
    "h": 279.8
  },
  "luminance": 0.23853
}

Semantic roles & 50–950 ramp

primary
#787AEA
secondary
#EFEFCE
accent
#D210D5
background
#FAF9FE
surface
#F4F2FD
border
#CECCD5
text
#100E17
muted
#7F7E85

Preview Lab

Preview with #787AEA

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

Preview Lab → · Contrast checker → · Palette generator →

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