#787EF2#787EF2

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

Color values

HEX#787EF2
RGBrgb(120, 126, 242)
HSLhsl(237, 82%, 71%)
HSVhsv(237, 50%, 95%)
CMYKcmyk(50.4%, 47.9%, 0%, 5.1%)
CIE-LABlab(57.39, 28.68, -59.22)
CIE-LCHlch(57.39, 65.80, 295.84°)
OKLaboklab(64.38% 0.0244 -0.1686)
OKLCHoklch(64.38% 0.17 278.2)
XYZxyz(31.2286, 25.3237, 87.2296)
Luminance0.2533 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787EF2 #F2EC78
analogous
#78BBF2 #787EF2 #AF78F2
triadic
#787EF2 #F2787E #7EF278
tetradic
#787EF2 #F278BB #F2EC78 #78F2AF
square
#787EF2 #F278BB #F2EC78 #78F2AF
split-complementary
#787EF2 #F2AF78 #BBF278
monochromatic
#151FDB #4049ED #787EF2 #B0B3F7 #E3E4FC

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##787EF2#FFFFFF#000000##000000
##787EF21.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)
#498FF6
Deuteranopia (green-blind)
#3D85EF
Tritanopia (blue-blind)
#4697AC
Achromatopsia (no color)
#8A8A8A

Design tokens & code

CSS
--color: #787ef2;
/* rgb */ color: rgb(120, 126, 242);
/* oklch */ color: oklch(64.4% 0.170 278.2);
Tailwind
colors: {
  custom: {
    50: '#a6a3f7',
    500: '#787ef2',
    950: '#000000',
  },
}
SCSS
$custom: #787ef2;
$custom-light: #a6a3f7;
$custom-dark: #000000;
JSON
{
  "hex": "#787ef2",
  "rgb": {
    "r": 120,
    "g": 126,
    "b": 242
  },
  "hsl": {
    "h": 237.049,
    "s": 82.432,
    "l": 70.98
  },
  "oklch": {
    "l": 0.64382,
    "c": 0.17038,
    "h": 278.2
  },
  "luminance": 0.25326
}

Semantic roles & 50–950 ramp

primary
#787EF2
secondary
#F3F2D3
accent
#D407DF
background
#FAFAFF
surface
#F4F3FF
border
#CECDD7
text
#100F17
muted
#7F7F85

Preview Lab

Preview with #787EF2

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

Preview Lab → · Contrast checker → · Palette generator →

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