#787CF8#787CF8

#787CF8 is a light, vivid blue. Relative luminance 0.252; OKLCH L 64.4% C 0.181 H 278.6°. Best body text is #000000 at 6.04:1 contrast (WCAG AA passes).

Color values

HEX#787CF8
RGBrgb(120, 124, 248)
HSLhsl(238, 90%, 72%)
HSVhsv(238, 52%, 97%)
CMYKcmyk(51.6%, 50%, 0%, 2.7%)
CIE-LABlab(57.25, 31.69, -62.76)
CIE-LCHlch(57.25, 70.30, 296.79°)
OKLaboklab(64.39% 0.0272 -0.179)
OKLCHoklch(64.39% 0.181 278.6)
XYZxyz(31.8914, 25.1837, 91.9692)
Luminance0.2519 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787CF8 #F8F478
analogous
#78BCF8 #787CF8 #B478F8
triadic
#787CF8 #F8787C #7CF878
tetradic
#787CF8 #F878BC #F8F478 #78F8B4
square
#787CF8 #F878BC #F8F478 #78F8B4
split-complementary
#787CF8 #F8B478 #BCF878
monochromatic
#0C13E9 #3E44F5 #787CF8 #B2B4FB #E2E3FD

Accessibility & contrast

On white

3.48
#787CF8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.04
#787CF8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #787CF8
6.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##787CF8#FFFFFF#000000##000000
##787CF81.003.486.046.04
#FFFFFF3.481.0021.0021.00
#0000006.0421.001.001.00
##0000006.0421.001.001.00

Color blindness preview

Protanopia (red-blind)
#3E8FFC
Deuteranopia (green-blind)
#2F85F5
Tritanopia (blue-blind)
#4197AE
Achromatopsia (no color)
#898989

Design tokens & code

CSS
--color: #787cf8;
/* rgb */ color: rgb(120, 124, 248);
/* oklch */ color: oklch(64.4% 0.181 278.6);
Tailwind
colors: {
  custom: {
    50: '#a7a1fb',
    500: '#787cf8',
    950: '#000000',
  },
}
SCSS
$custom: #787cf8;
$custom-light: #a7a1fb;
$custom-dark: #000000;
JSON
{
  "hex": "#787cf8",
  "rgb": {
    "r": 120,
    "g": 124,
    "b": 248
  },
  "hsl": {
    "h": 238.125,
    "s": 90.141,
    "l": 72.157
  },
  "oklch": {
    "l": 0.64394,
    "c": 0.18108,
    "h": 278.6
  },
  "luminance": 0.25186
}

Semantic roles & 50–950 ramp

primary
#787CF8
secondary
#F6F5D5
accent
#DE00E6
background
#FAF9FF
surface
#F4F2FF
border
#CECCD7
text
#100F17
muted
#7F7E85

Preview Lab

Preview with #787CF8

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

Preview Lab → · Contrast checker → · Palette generator →

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