#788EF8#788EF8

#788EF8 is a light, vivid blue. Relative luminance 0.301; OKLCH L 67.8% C 0.158 H 272.7°. Best body text is #000000 at 7.02:1 contrast (WCAG AA passes).

Color values

HEX#788EF8
RGBrgb(120, 142, 248)
HSLhsl(230, 90%, 72%)
HSVhsv(230, 52%, 97%)
CMYKcmyk(51.6%, 42.7%, 0%, 2.7%)
CIE-LABlab(61.75, 21.03, -55.56)
CIE-LCHlch(61.75, 59.41, 290.73°)
OKLaboklab(67.81% 0.0074 -0.1578)
OKLCHoklch(67.81% 0.158 272.7)
XYZxyz(34.3566, 30.1141, 92.7909)
Luminance0.3012 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#788EF8 #F8E278
analogous
#78CEF8 #788EF8 #A278F8
triadic
#788EF8 #F8788E #8EF878
tetradic
#788EF8 #F878CE #F8E278 #78F8A2
square
#788EF8 #F878CE #F8E278 #78F8A2
split-complementary
#788EF8 #F8A278 #CEF878
monochromatic
#0C32E9 #3E5DF5 #788EF8 #B2BFFB #E2E7FD

Accessibility & contrast

On white

2.99
#788EF8 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.02
#788EF8 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #788EF8
7.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##788EF8#FFFFFF#000000##000000
##788EF81.002.997.027.02
#FFFFFF2.991.0021.0021.00
#0000007.0221.001.001.00
##0000007.0221.001.001.00

Color blindness preview

Protanopia (red-blind)
#629BFC
Deuteranopia (green-blind)
#5490F6
Tritanopia (blue-blind)
#3DA5B7
Achromatopsia (no color)
#959595

Design tokens & code

CSS
--color: #788ef8;
/* rgb */ color: rgb(120, 142, 248);
/* oklch */ color: oklch(67.8% 0.158 272.7);
Tailwind
colors: {
  custom: {
    50: '#a6aefb',
    500: '#788ef8',
    950: '#000000',
  },
}
SCSS
$custom: #788ef8;
$custom-light: #a6aefb;
$custom-dark: #000000;
JSON
{
  "hex": "#788ef8",
  "rgb": {
    "r": 120,
    "g": 142,
    "b": 248
  },
  "hsl": {
    "h": 229.688,
    "s": 90.141,
    "l": 72.157
  },
  "oklch": {
    "l": 0.67806,
    "c": 0.15793,
    "h": 272.7
  },
  "luminance": 0.30116
}

Semantic roles & 50–950 ramp

primary
#788EF8
secondary
#F6F0D5
accent
#BE00E6
background
#FAFAFF
surface
#F4F4FF
border
#CECED7
text
#101017
muted
#7F7F85

Preview Lab

Preview with #788EF8

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

Preview Lab → · Contrast checker → · Palette generator →

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