#787FEE#787FEE

#787FEE is a light, vivid blue. Relative luminance 0.253; OKLCH L 64.3% C 0.164 H 278.0°. Best body text is #000000 at 6.07:1 contrast (WCAG AA passes).

Color values

HEX#787FEE
RGBrgb(120, 127, 238)
HSLhsl(236, 78%, 70%)
HSVhsv(236, 50%, 93%)
CMYKcmyk(49.6%, 46.6%, 0%, 6.7%)
CIE-LABlab(57.41, 26.88, -56.97)
CIE-LCHlch(57.41, 62.99, 295.26°)
OKLaboklab(64.32% 0.0228 -0.162)
OKLCHoklch(64.32% 0.164 278)
XYZxyz(30.7629, 25.3431, 84.1430)
Luminance0.2535 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787FEE #EEE778
analogous
#78BAEE #787FEE #AC78EE
triadic
#787FEE #EE787F #7FEE78
tetradic
#787FEE #EE78BA #EEE778 #78EEAC
square
#787FEE #EE78BA #EEE778 #78EEAC
split-complementary
#787FEE #EEAC78 #BAEE78
monochromatic
#1A25D1 #424BE7 #787FEE #AEB3F5 #E4E5FC

Accessibility & contrast

On white

3.46
#787FEE on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.07
#787FEE on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #787FEE
6.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##787FEE#FFFFFF#000000##000000
##787FEE1.003.466.076.07
#FFFFFF3.461.0021.0021.00
#0000006.0721.001.001.00
##0000006.0721.001.001.00

Color blindness preview

Protanopia (red-blind)
#4E8FF2
Deuteranopia (green-blind)
#4385EC
Tritanopia (blue-blind)
#4997AB
Achromatopsia (no color)
#8A8A8A

Design tokens & code

CSS
--color: #787fee;
/* rgb */ color: rgb(120, 127, 238);
/* oklch */ color: oklch(64.3% 0.164 278.0);
Tailwind
colors: {
  custom: {
    50: '#a6a4f4',
    500: '#787fee',
    950: '#000000',
  },
}
SCSS
$custom: #787fee;
$custom-light: #a6a4f4;
$custom-dark: #000000;
JSON
{
  "hex": "#787fee",
  "rgb": {
    "r": 120,
    "g": 127,
    "b": 238
  },
  "hsl": {
    "h": 236.441,
    "s": 77.632,
    "l": 70.196
  },
  "oklch": {
    "l": 0.64322,
    "c": 0.16361,
    "h": 278
  },
  "luminance": 0.25345
}

Semantic roles & 50–950 ramp

primary
#787FEE
secondary
#F1EFD1
accent
#CE0CDA
background
#FAFAFF
surface
#F4F4FE
border
#CECED6
text
#100F17
muted
#7F7F85

Preview Lab

Preview with #787FEE

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

Preview Lab → · Contrast checker → · Palette generator →

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