#787FEA#787FEA

#787FEA is a light, vivid blue. Relative luminance 0.251; OKLCH L 64.1% C 0.158 H 278.1°. Best body text is #000000 at 6.02:1 contrast (WCAG AA passes).

Color values

HEX#787FEA
RGBrgb(120, 127, 234)
HSLhsl(236, 73%, 69%)
HSVhsv(236, 49%, 92%)
CMYKcmyk(48.7%, 45.7%, 0%, 8.2%)
CIE-LABlab(57.18, 25.67, -55.10)
CIE-LCHlch(57.18, 60.79, 294.98°)
OKLaboklab(64.08% 0.0223 -0.1565)
OKLCHoklch(64.08% 0.158 278.1)
XYZxyz(30.1818, 25.1106, 81.0824)
Luminance0.2511 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787FEA #EAE378
analogous
#78B8EA #787FEA #AA78EA
triadic
#787FEA #EA787F #7FEA78
tetradic
#787FEA #EA78B8 #EAE378 #78EAAA
square
#787FEA #EA78B8 #EAE378 #78EAAA
split-complementary
#787FEA #EAAA78 #B8EA78
monochromatic
#1F2AC8 #434DE2 #787FEA #ADB1F2 #E2E3FA

Accessibility & contrast

On white

3.49
#787FEA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.02
#787FEA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #787FEA
6.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##787FEA#FFFFFF#000000##000000
##787FEA1.003.496.026.02
#FFFFFF3.491.0021.0021.00
#0000006.0221.001.001.00
##0000006.0221.001.001.00

Color blindness preview

Protanopia (red-blind)
#528EEE
Deuteranopia (green-blind)
#4885E8
Tritanopia (blue-blind)
#4C96A9
Achromatopsia (no color)
#898989

Design tokens & code

CSS
--color: #787fea;
/* rgb */ color: rgb(120, 127, 234);
/* oklch */ color: oklch(64.1% 0.158 278.1);
Tailwind
colors: {
  custom: {
    50: '#a5a4f1',
    500: '#787fea',
    950: '#000000',
  },
}
SCSS
$custom: #787fea;
$custom-light: #a5a4f1;
$custom-dark: #000000;
JSON
{
  "hex": "#787fea",
  "rgb": {
    "r": 120,
    "g": 127,
    "b": 234
  },
  "hsl": {
    "h": 236.316,
    "s": 73.077,
    "l": 69.412
  },
  "oklch": {
    "l": 0.64078,
    "c": 0.15811,
    "h": 278.1
  },
  "luminance": 0.25112
}

Semantic roles & 50–950 ramp

primary
#787FEA
secondary
#EFEDCE
accent
#C910D5
background
#FAFAFE
surface
#F4F3FD
border
#CECDD5
text
#100F17
muted
#7F7F85

Preview Lab

Preview with #787FEA

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

Preview Lab → · Contrast checker → · Palette generator →

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