#787FF8#787FF8

#787FF8 is a light, vivid blue. Relative luminance 0.259; OKLCH L 64.9% C 0.177 H 277.8°. Best body text is #000000 at 6.19:1 contrast (WCAG AA passes).

Color values

HEX#787FF8
RGBrgb(120, 127, 248)
HSLhsl(237, 90%, 72%)
HSVhsv(237, 52%, 97%)
CMYKcmyk(51.6%, 48.8%, 0%, 2.7%)
CIE-LABlab(57.99, 29.91, -61.58)
CIE-LCHlch(57.99, 68.46, 295.91°)
OKLaboklab(64.95% 0.0239 -0.1756)
OKLCHoklch(64.95% 0.177 277.8)
XYZxyz(32.2731, 25.9471, 92.0964)
Luminance0.2595 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787FF8 #F8F178
analogous
#78BFF8 #787FF8 #B178F8
triadic
#787FF8 #F8787F #7FF878
tetradic
#787FF8 #F878BF #F8F178 #78F8B1
square
#787FF8 #F878BF #F8F178 #78F8B1
split-complementary
#787FF8 #F8B178 #BFF878
monochromatic
#0C18E9 #3E48F5 #787FF8 #B2B6FB #E2E3FD

Accessibility & contrast

On white

3.39
#787FF8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.19
#787FF8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #787FF8
6.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##787FF8#FFFFFF#000000##000000
##787FF81.003.396.196.19
#FFFFFF3.391.0021.0021.00
#0000006.1921.001.001.00
##0000006.1921.001.001.00

Color blindness preview

Protanopia (red-blind)
#4591FC
Deuteranopia (green-blind)
#3786F5
Tritanopia (blue-blind)
#409AB0
Achromatopsia (no color)
#8B8B8B

Design tokens & code

CSS
--color: #787ff8;
/* rgb */ color: rgb(120, 127, 248);
/* oklch */ color: oklch(64.9% 0.177 277.8);
Tailwind
colors: {
  custom: {
    50: '#a7a4fb',
    500: '#787ff8',
    950: '#000000',
  },
}
SCSS
$custom: #787ff8;
$custom-light: #a7a4fb;
$custom-dark: #000000;
JSON
{
  "hex": "#787ff8",
  "rgb": {
    "r": 120,
    "g": 127,
    "b": 248
  },
  "hsl": {
    "h": 236.719,
    "s": 90.141,
    "l": 72.157
  },
  "oklch": {
    "l": 0.64946,
    "c": 0.17717,
    "h": 277.8
  },
  "luminance": 0.25949
}

Semantic roles & 50–950 ramp

primary
#787FF8
secondary
#F6F4D5
accent
#D900E6
background
#FAFAFF
surface
#F4F4FF
border
#CECED7
text
#100F17
muted
#7F7F85

Preview Lab

Preview with #787FF8

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

Preview Lab → · Contrast checker → · Palette generator →

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