#788AF2#788AF2

#788AF2 is a light, vivid blue. Relative luminance 0.286; OKLCH L 66.7% C 0.155 H 274.1°. Best body text is #000000 at 6.72:1 contrast (WCAG AA passes).

Color values

HEX#788AF2
RGBrgb(120, 138, 242)
HSLhsl(231, 82%, 71%)
HSVhsv(231, 50%, 95%)
CMYKcmyk(50.4%, 43%, 0%, 5.1%)
CIE-LABlab(60.41, 21.56, -54.40)
CIE-LCHlch(60.41, 58.52, 291.63°)
OKLaboklab(66.68% 0.011 -0.1544)
OKLCHoklch(66.68% 0.155 274.1)
XYZxyz(32.8561, 28.5788, 87.7721)
Luminance0.2858 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#788AF2 #F2E078
analogous
#78C7F2 #788AF2 #A378F2
triadic
#788AF2 #F2788A #8AF278
tetradic
#788AF2 #F278C7 #F2E078 #78F2A3
square
#788AF2 #F278C7 #F2E078 #78F2A3
split-complementary
#788AF2 #F2A378 #C7F278
monochromatic
#1532DB #405AED #788AF2 #B0BAF7 #E3E7FC

Accessibility & contrast

On white

3.13
#788AF2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.72
#788AF2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #788AF2
6.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##788AF2#FFFFFF#000000##000000
##788AF21.003.136.726.72
#FFFFFF3.131.0021.0021.00
#0000006.7221.001.001.00
##0000006.7221.001.001.00

Color blindness preview

Protanopia (red-blind)
#5F97F6
Deuteranopia (green-blind)
#528DF0
Tritanopia (blue-blind)
#44A0B2
Achromatopsia (no color)
#929292

Design tokens & code

CSS
--color: #788af2;
/* rgb */ color: rgb(120, 138, 242);
/* oklch */ color: oklch(66.7% 0.155 274.1);
Tailwind
colors: {
  custom: {
    50: '#a6abf7',
    500: '#788af2',
    950: '#000000',
  },
}
SCSS
$custom: #788af2;
$custom-light: #a6abf7;
$custom-dark: #000000;
JSON
{
  "hex": "#788af2",
  "rgb": {
    "r": 120,
    "g": 138,
    "b": 242
  },
  "hsl": {
    "h": 231.148,
    "s": 82.432,
    "l": 70.98
  },
  "oklch": {
    "l": 0.66675,
    "c": 0.15477,
    "h": 274.1
  },
  "luminance": 0.28581
}

Semantic roles & 50–950 ramp

primary
#788AF2
secondary
#F3EED3
accent
#BF07DF
background
#FAFAFF
surface
#F4F4FF
border
#CECED7
text
#101017
muted
#7F7F85

Preview Lab

Preview with #788AF2

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

Preview Lab → · Contrast checker → · Palette generator →

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