#787AF5#787AF5

#787AF5 is a light, vivid blue. Relative luminance 0.245; OKLCH L 63.8% C 0.180 H 279.3°. Best body text is #000000 at 5.90:1 contrast (WCAG AA passes).

Color values

HEX#787AF5
RGBrgb(120, 122, 245)
HSLhsl(239, 86%, 72%)
HSVhsv(239, 51%, 96%)
CMYKcmyk(51%, 50.2%, 0%, 3.9%)
CIE-LABlab(56.59, 31.97, -62.17)
CIE-LCHlch(56.59, 69.90, 297.21°)
OKLaboklab(63.83% 0.0291 -0.1773)
OKLCHoklch(63.83% 0.18 279.3)
XYZxyz(31.1816, 24.5029, 89.4550)
Luminance0.2450 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787AF5 #F5F378
analogous
#78B9F5 #787AF5 #B578F5
triadic
#787AF5 #F5787A #7AF578
tetradic
#787AF5 #F578B9 #F5F378 #78F5B5
square
#787AF5 #F578B9 #F5F378 #78F5B5
split-complementary
#787AF5 #F5B578 #B9F578
monochromatic
#1114E2 #3F42F1 #787AF5 #B1B2F9 #E3E3FD

Accessibility & contrast

On white

3.56
#787AF5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.90
#787AF5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #787AF5
5.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##787AF5#FFFFFF#000000##000000
##787AF51.003.565.905.90
#FFFFFF3.561.0021.0021.00
#0000005.9021.001.001.00
##0000005.9021.001.001.00

Color blindness preview

Protanopia (red-blind)
#3D8DF9
Deuteranopia (green-blind)
#2F83F2
Tritanopia (blue-blind)
#4495AC
Achromatopsia (no color)
#888888

Design tokens & code

CSS
--color: #787af5;
/* rgb */ color: rgb(120, 122, 245);
/* oklch */ color: oklch(63.8% 0.180 279.3);
Tailwind
colors: {
  custom: {
    50: '#a7a0f9',
    500: '#787af5',
    950: '#000000',
  },
}
SCSS
$custom: #787af5;
$custom-light: #a7a0f9;
$custom-dark: #000000;
JSON
{
  "hex": "#787af5",
  "rgb": {
    "r": 120,
    "g": 122,
    "b": 245
  },
  "hsl": {
    "h": 239.04,
    "s": 86.207,
    "l": 71.569
  },
  "oklch": {
    "l": 0.63835,
    "c": 0.17968,
    "h": 279.3
  },
  "luminance": 0.24505
}

Semantic roles & 50–950 ramp

primary
#787AF5
secondary
#F4F4D4
accent
#DF03E3
background
#FAF9FF
surface
#F4F2FF
border
#CECCD7
text
#100E17
muted
#7F7E85

Preview Lab

Preview with #787AF5

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

Preview Lab → · Contrast checker → · Palette generator →

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