#787BF6#787BF6

#787BF6 is a light, vivid blue. Relative luminance 0.248; OKLCH L 64.1% C 0.180 H 279.0°. Best body text is #000000 at 5.96:1 contrast (WCAG AA passes).

Color values

HEX#787BF6
RGBrgb(120, 123, 246)
HSLhsl(239, 88%, 72%)
HSVhsv(239, 51%, 96%)
CMYKcmyk(51.2%, 50%, 0%, 3.5%)
CIE-LABlab(56.89, 31.68, -62.23)
CIE-LCHlch(56.89, 69.83, 296.98°)
OKLaboklab(64.08% 0.0281 -0.1775)
OKLCHoklch(64.08% 0.18 279)
XYZxyz(31.4581, 24.8109, 90.3023)
Luminance0.2481 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787BF6 #F6F378
analogous
#78BAF6 #787BF6 #B478F6
triadic
#787BF6 #F6787B #7BF678
tetradic
#787BF6 #F678BA #F6F378 #78F6B4
square
#787BF6 #F678BA #F6F378 #78F6B4
split-complementary
#787BF6 #F6B478 #BAF678
monochromatic
#0F14E4 #3F43F2 #787BF6 #B1B3FA #E2E3FD

Accessibility & contrast

On white

3.52
#787BF6 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.96
#787BF6 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #787BF6
5.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##787BF6#FFFFFF#000000##000000
##787BF61.003.525.965.96
#FFFFFF3.521.0021.0021.00
#0000005.9621.001.001.00
##0000005.9621.001.001.00

Color blindness preview

Protanopia (red-blind)
#3E8EFA
Deuteranopia (green-blind)
#3084F3
Tritanopia (blue-blind)
#4396AD
Achromatopsia (no color)
#888888

Design tokens & code

CSS
--color: #787bf6;
/* rgb */ color: rgb(120, 123, 246);
/* oklch */ color: oklch(64.1% 0.180 279.0);
Tailwind
colors: {
  custom: {
    50: '#a7a1fa',
    500: '#787bf6',
    950: '#000000',
  },
}
SCSS
$custom: #787bf6;
$custom-light: #a7a1fa;
$custom-dark: #000000;
JSON
{
  "hex": "#787bf6",
  "rgb": {
    "r": 120,
    "g": 123,
    "b": 246
  },
  "hsl": {
    "h": 238.571,
    "s": 87.5,
    "l": 71.765
  },
  "oklch": {
    "l": 0.64082,
    "c": 0.17971,
    "h": 279
  },
  "luminance": 0.24813
}

Semantic roles & 50–950 ramp

primary
#787BF6
secondary
#F5F4D5
accent
#DF01E4
background
#FAF9FF
surface
#F4F2FF
border
#CECCD7
text
#100F17
muted
#7F7E85

Preview Lab

Preview with #787BF6

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

Preview Lab → · Contrast checker → · Palette generator →

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