#787EF8#787EF8

#787EF8 is a light, vivid blue. Relative luminance 0.257; OKLCH L 64.8% C 0.178 H 278.0°. Best body text is #000000 at 6.14:1 contrast (WCAG AA passes).

Color values

HEX#787EF8
RGBrgb(120, 126, 248)
HSLhsl(237, 90%, 72%)
HSVhsv(237, 52%, 97%)
CMYKcmyk(51.6%, 49.2%, 0%, 2.7%)
CIE-LABlab(57.74, 30.51, -61.97)
CIE-LCHlch(57.74, 69.07, 296.21°)
OKLaboklab(64.76% 0.025 -0.1767)
OKLCHoklch(64.76% 0.178 278)
XYZxyz(32.1446, 25.6901, 92.0536)
Luminance0.2569 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787EF8 #F8F278
analogous
#78BEF8 #787EF8 #B278F8
triadic
#787EF8 #F8787E #7EF878
tetradic
#787EF8 #F878BE #F8F278 #78F8B2
square
#787EF8 #F878BE #F8F278 #78F8B2
split-complementary
#787EF8 #F8B278 #BEF878
monochromatic
#0C16E9 #3E46F5 #787EF8 #B2B6FB #E2E3FD

Accessibility & contrast

On white

3.42
#787EF8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.14
#787EF8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #787EF8
6.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##787EF8#FFFFFF#000000##000000
##787EF81.003.426.146.14
#FFFFFF3.421.0021.0021.00
#0000006.1421.001.001.00
##0000006.1421.001.001.00

Color blindness preview

Protanopia (red-blind)
#4390FC
Deuteranopia (green-blind)
#3486F5
Tritanopia (blue-blind)
#4099AF
Achromatopsia (no color)
#8B8B8B

Design tokens & code

CSS
--color: #787ef8;
/* rgb */ color: rgb(120, 126, 248);
/* oklch */ color: oklch(64.8% 0.178 278.0);
Tailwind
colors: {
  custom: {
    50: '#a7a3fb',
    500: '#787ef8',
    950: '#000000',
  },
}
SCSS
$custom: #787ef8;
$custom-light: #a7a3fb;
$custom-dark: #000000;
JSON
{
  "hex": "#787ef8",
  "rgb": {
    "r": 120,
    "g": 126,
    "b": 248
  },
  "hsl": {
    "h": 237.188,
    "s": 90.141,
    "l": 72.157
  },
  "oklch": {
    "l": 0.64761,
    "c": 0.17848,
    "h": 278
  },
  "luminance": 0.25692
}

Semantic roles & 50–950 ramp

primary
#787EF8
secondary
#F6F4D5
accent
#DB00E6
background
#FAFAFF
surface
#F4F3FF
border
#CECDD7
text
#100F17
muted
#7F7F85

Preview Lab

Preview with #787EF8

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

Preview Lab → · Contrast checker → · Palette generator →

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