#787AFF#787AFF

#787AFF is a light, vivid blue. Relative luminance 0.251; OKLCH L 64.5% C 0.193 H 278.9°. Best body text is #000000 at 6.03:1 contrast (WCAG AA passes).

Color values

HEX#787AFF
RGBrgb(120, 122, 255)
HSLhsl(239, 100%, 74%)
HSVhsv(239, 53%, 100%)
CMYKcmyk(52.9%, 52.2%, 0%, 0%)
CIE-LABlab(57.20, 35.00, -66.70)
CIE-LCHlch(57.20, 75.33, 297.69°)
OKLaboklab(64.49% 0.0297 -0.1907)
OKLCHoklch(64.49% 0.193 278.9)
XYZxyz(32.7496, 25.1301, 97.7132)
Luminance0.2513 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787AFF #FFFD78
analogous
#78BDFF #787AFF #B978FF
triadic
#787AFF #FF787A #7AFF78
tetradic
#787AFF #FF78BD #FFFD78 #78FFB9
square
#787AFF #FF78BD #FFFD78 #78FFB9
split-complementary
#787AFF #FFB978 #BDFF78
monochromatic
#0004FD #3B3EFF #787AFF #B5B6FF #E0E1FF

Accessibility & contrast

On white

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

On black

6.03
#787AFF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #787AFF
6.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##787AFF#FFFFFF#000000##000000
##787AFF1.003.486.036.03
#FFFFFF3.481.0021.0021.00
#0000006.0321.001.001.00
##0000006.0321.001.001.00

Color blindness preview

Protanopia (red-blind)
#2F8FFF
Deuteranopia (green-blind)
#1784FC
Tritanopia (blue-blind)
#3A98B1
Achromatopsia (no color)
#898989

Design tokens & code

CSS
--color: #787aff;
/* rgb */ color: rgb(120, 122, 255);
/* oklch */ color: oklch(64.5% 0.193 278.9);
Tailwind
colors: {
  custom: {
    50: '#a8a0ff',
    500: '#787aff',
    950: '#000000',
  },
}
SCSS
$custom: #787aff;
$custom-light: #a8a0ff;
$custom-dark: #000000;
JSON
{
  "hex": "#787aff",
  "rgb": {
    "r": 120,
    "g": 122,
    "b": 255
  },
  "hsl": {
    "h": 239.111,
    "s": 100,
    "l": 73.529
  },
  "oklch": {
    "l": 0.64492,
    "c": 0.19297,
    "h": 278.9
  },
  "luminance": 0.25132
}

Semantic roles & 50–950 ramp

primary
#787AFF
secondary
#F7F7D4
accent
#E200E6
background
#FAF9FF
surface
#F5F2FF
border
#CFCCD7
text
#110E18
muted
#807E86

Preview Lab

Preview with #787AFF

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

Preview Lab → · Contrast checker → · Palette generator →

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