#787BF8#787BF8

#787BF8 is a light, vivid blue. Relative luminance 0.249; OKLCH L 64.2% C 0.182 H 278.9°. Best body text is #000000 at 5.99:1 contrast (WCAG AA passes).

Color values

HEX#787BF8
RGBrgb(120, 123, 248)
HSLhsl(239, 90%, 72%)
HSVhsv(239, 52%, 97%)
CMYKcmyk(51.6%, 50.4%, 0%, 2.7%)
CIE-LABlab(57.01, 32.28, -63.15)
CIE-LCHlch(57.01, 70.92, 297.08°)
OKLaboklab(64.21% 0.0282 -0.1802)
OKLCHoklch(64.21% 0.182 278.9)
XYZxyz(31.7667, 24.9344, 91.9276)
Luminance0.2494 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787BF8 #F8F578
analogous
#78BBF8 #787BF8 #B578F8
triadic
#787BF8 #F8787B #7BF878
tetradic
#787BF8 #F878BB #F8F578 #78F8B5
square
#787BF8 #F878BB #F8F578 #78F8B5
split-complementary
#787BF8 #F8B578 #BBF878
monochromatic
#0C11E9 #3E42F5 #787BF8 #B2B4FB #E2E3FD

Accessibility & contrast

On white

3.51
#787BF8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.99
#787BF8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #787BF8
5.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##787BF8#FFFFFF#000000##000000
##787BF81.003.515.995.99
#FFFFFF3.511.0021.0021.00
#0000005.9921.001.001.00
##0000005.9921.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #787bf8;
/* rgb */ color: rgb(120, 123, 248);
/* oklch */ color: oklch(64.2% 0.182 278.9);
Tailwind
colors: {
  custom: {
    50: '#a7a1fb',
    500: '#787bf8',
    950: '#000000',
  },
}
SCSS
$custom: #787bf8;
$custom-light: #a7a1fb;
$custom-dark: #000000;
JSON
{
  "hex": "#787bf8",
  "rgb": {
    "r": 120,
    "g": 123,
    "b": 248
  },
  "hsl": {
    "h": 238.594,
    "s": 90.141,
    "l": 72.157
  },
  "oklch": {
    "l": 0.64211,
    "c": 0.18239,
    "h": 278.9
  },
  "luminance": 0.24936
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #787BF8

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

Preview Lab → · Contrast checker → · Palette generator →

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