#787AF2#787AF2

#787AF2 is a light, vivid blue. Relative luminance 0.243; OKLCH L 63.6% C 0.176 H 279.4°. Best body text is #000000 at 5.86:1 contrast (WCAG AA passes).

Color values

HEX#787AF2
RGBrgb(120, 122, 242)
HSLhsl(239, 82%, 71%)
HSVhsv(239, 50%, 95%)
CMYKcmyk(50.4%, 49.6%, 0%, 5.1%)
CIE-LABlab(56.41, 31.06, -60.79)
CIE-LCHlch(56.41, 68.27, 297.06°)
OKLaboklab(63.64% 0.0288 -0.1733)
OKLCHoklch(63.64% 0.176 279.4)
XYZxyz(30.7273, 24.3212, 87.0625)
Luminance0.2432 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787AF2 #F2F078
analogous
#78B7F2 #787AF2 #B378F2
triadic
#787AF2 #F2787A #7AF278
tetradic
#787AF2 #F278B7 #F2F078 #78F2B3
square
#787AF2 #F278B7 #F2F078 #78F2B3
split-complementary
#787AF2 #F2B378 #B7F278
monochromatic
#1518DB #4043ED #787AF2 #B0B1F7 #E3E4FC

Accessibility & contrast

On white

3.58
#787AF2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.86
#787AF2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #787AF2
5.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##787AF2#FFFFFF#000000##000000
##787AF21.003.585.865.86
#FFFFFF3.581.0021.0021.00
#0000005.8621.001.001.00
##0000005.8621.001.001.00

Color blindness preview

Protanopia (red-blind)
#408CF6
Deuteranopia (green-blind)
#3483EF
Tritanopia (blue-blind)
#4794AB
Achromatopsia (no color)
#878787

Design tokens & code

CSS
--color: #787af2;
/* rgb */ color: rgb(120, 122, 242);
/* oklch */ color: oklch(63.6% 0.176 279.4);
Tailwind
colors: {
  custom: {
    50: '#a6a0f7',
    500: '#787af2',
    950: '#000000',
  },
}
SCSS
$custom: #787af2;
$custom-light: #a6a0f7;
$custom-dark: #000000;
JSON
{
  "hex": "#787af2",
  "rgb": {
    "r": 120,
    "g": 122,
    "b": 242
  },
  "hsl": {
    "h": 239.016,
    "s": 82.432,
    "l": 70.98
  },
  "oklch": {
    "l": 0.63642,
    "c": 0.17565,
    "h": 279.4
  },
  "luminance": 0.24323
}

Semantic roles & 50–950 ramp

primary
#787AF2
secondary
#F3F3D3
accent
#DB07DF
background
#FAF9FF
surface
#F4F2FF
border
#CECCD7
text
#100E17
muted
#7F7E85

Preview Lab

Preview with #787AF2

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

Preview Lab → · Contrast checker → · Palette generator →

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