#787AF6#787AF6

#787AF6 is a light, vivid blue. Relative luminance 0.246; OKLCH L 63.9% C 0.181 H 279.3°. Best body text is #000000 at 5.91:1 contrast (WCAG AA passes).

Color values

HEX#787AF6
RGBrgb(120, 122, 246)
HSLhsl(239, 88%, 72%)
HSVhsv(239, 51%, 96%)
CMYKcmyk(51.2%, 50.4%, 0%, 3.5%)
CIE-LABlab(56.65, 32.27, -62.62)
CIE-LCHlch(56.65, 70.45, 297.26°)
OKLaboklab(63.9% 0.0292 -0.1787)
OKLCHoklch(63.9% 0.181 279.3)
XYZxyz(31.3346, 24.5641, 90.2611)
Luminance0.2457 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787AF6 #F6F478
analogous
#78B9F6 #787AF6 #B578F6
triadic
#787AF6 #F6787A #7AF678
tetradic
#787AF6 #F678B9 #F6F478 #78F6B5
square
#787AF6 #F678B9 #F6F478 #78F6B5
split-complementary
#787AF6 #F6B578 #B9F678
monochromatic
#0F13E4 #3F41F2 #787AF6 #B1B3FA #E2E3FD

Accessibility & contrast

On white

3.55
#787AF6 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.91
#787AF6 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #787AF6
5.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##787AF6#FFFFFF#000000##000000
##787AF61.003.555.915.91
#FFFFFF3.551.0021.0021.00
#0000005.9121.001.001.00
##0000005.9121.001.001.00

Color blindness preview

Protanopia (red-blind)
#3C8DFA
Deuteranopia (green-blind)
#2D83F3
Tritanopia (blue-blind)
#4395AD
Achromatopsia (no color)
#888888

Design tokens & code

CSS
--color: #787af6;
/* rgb */ color: rgb(120, 122, 246);
/* oklch */ color: oklch(63.9% 0.181 279.3);
Tailwind
colors: {
  custom: {
    50: '#a7a0fa',
    500: '#787af6',
    950: '#000000',
  },
}
SCSS
$custom: #787af6;
$custom-light: #a7a0fa;
$custom-dark: #000000;
JSON
{
  "hex": "#787af6",
  "rgb": {
    "r": 120,
    "g": 122,
    "b": 246
  },
  "hsl": {
    "h": 239.048,
    "s": 87.5,
    "l": 71.765
  },
  "oklch": {
    "l": 0.639,
    "c": 0.18102,
    "h": 279.3
  },
  "luminance": 0.24566
}

Semantic roles & 50–950 ramp

primary
#787AF6
secondary
#F5F4D5
accent
#E001E4
background
#FAF9FF
surface
#F4F2FF
border
#CECCD7
text
#100E17
muted
#7F7E85

Preview Lab

Preview with #787AF6

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

Preview Lab → · Contrast checker → · Palette generator →

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