#787AEF#787AEF

#787AEF is a light, vivid blue. Relative luminance 0.241; OKLCH L 63.5% C 0.172 H 279.6°. Best body text is #000000 at 5.83:1 contrast (WCAG AA passes).

Color values

HEX#787AEF
RGBrgb(120, 122, 239)
HSLhsl(239, 79%, 70%)
HSVhsv(239, 50%, 94%)
CMYKcmyk(49.8%, 49%, 0%, 6.3%)
CIE-LABlab(56.23, 30.15, -59.41)
CIE-LCHlch(56.23, 66.62, 296.91°)
OKLaboklab(63.45% 0.0286 -0.1692)
OKLCHoklch(63.45% 0.172 279.6)
XYZxyz(30.2804, 24.1424, 84.7090)
Luminance0.2414 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787AEF #EFED78
analogous
#78B5EF #787AEF #B278EF
triadic
#787AEF #EF787A #7AEF78
tetradic
#787AEF #EF78B5 #EFED78 #78EFB2
square
#787AEF #EF78B5 #EFED78 #78EFB2
split-complementary
#787AEF #EFB278 #B5EF78
monochromatic
#191CD4 #4144E9 #787AEF #AFB0F5 #E4E4FC

Accessibility & contrast

On white

3.60
#787AEF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.83
#787AEF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #787AEF
5.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##787AEF#FFFFFF#000000##000000
##787AEF1.003.605.835.83
#FFFFFF3.601.0021.0021.00
#0000005.8321.001.001.00
##0000005.8321.001.001.00

Color blindness preview

Protanopia (red-blind)
#438BF3
Deuteranopia (green-blind)
#3882EC
Tritanopia (blue-blind)
#4993A9
Achromatopsia (no color)
#878787

Design tokens & code

CSS
--color: #787aef;
/* rgb */ color: rgb(120, 122, 239);
/* oklch */ color: oklch(63.5% 0.172 279.6);
Tailwind
colors: {
  custom: {
    50: '#a6a0f5',
    500: '#787aef',
    950: '#000000',
  },
}
SCSS
$custom: #787aef;
$custom-light: #a6a0f5;
$custom-dark: #000000;
JSON
{
  "hex": "#787aef",
  "rgb": {
    "r": 120,
    "g": 122,
    "b": 239
  },
  "hsl": {
    "h": 238.992,
    "s": 78.808,
    "l": 70.392
  },
  "oklch": {
    "l": 0.63451,
    "c": 0.1716,
    "h": 279.6
  },
  "luminance": 0.24144
}

Semantic roles & 50–950 ramp

primary
#787AEF
secondary
#F2F1D1
accent
#D80ADB
background
#FAF9FF
surface
#F4F2FE
border
#CECCD6
text
#100E17
muted
#7F7E85

Preview Lab

Preview with #787AEF

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

Preview Lab → · Contrast checker → · Palette generator →

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