#787AF4#787AF4

#787AF4 is a light, vivid blue. Relative luminance 0.244; OKLCH L 63.8% C 0.178 H 279.4°. Best body text is #000000 at 5.89:1 contrast (WCAG AA passes).

Color values

HEX#787AF4
RGBrgb(120, 122, 244)
HSLhsl(239, 85%, 71%)
HSVhsv(239, 51%, 96%)
CMYKcmyk(50.8%, 50%, 0%, 4.3%)
CIE-LABlab(56.53, 31.66, -61.71)
CIE-LCHlch(56.53, 69.36, 297.16°)
OKLaboklab(63.77% 0.029 -0.176)
OKLCHoklch(63.77% 0.178 279.4)
XYZxyz(31.0293, 24.4420, 88.6531)
Luminance0.2444 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787AF4 #F4F278
analogous
#78B8F4 #787AF4 #B478F4
triadic
#787AF4 #F4787A #7AF478
tetradic
#787AF4 #F478B8 #F4F278 #78F4B4
square
#787AF4 #F478B8 #F4F278 #78F4B4
split-complementary
#787AF4 #F4B478 #B8F478
monochromatic
#1216DF #3F42EF #787AF4 #B1B2F9 #E3E3FD

Accessibility & contrast

On white

3.57
#787AF4 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.89
#787AF4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #787AF4
5.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##787AF4#FFFFFF#000000##000000
##787AF41.003.575.895.89
#FFFFFF3.571.0021.0021.00
#0000005.8921.001.001.00
##0000005.8921.001.001.00

Color blindness preview

Protanopia (red-blind)
#3E8CF8
Deuteranopia (green-blind)
#3183F1
Tritanopia (blue-blind)
#4595AC
Achromatopsia (no color)
#888888

Design tokens & code

CSS
--color: #787af4;
/* rgb */ color: rgb(120, 122, 244);
/* oklch */ color: oklch(63.8% 0.178 279.4);
Tailwind
colors: {
  custom: {
    50: '#a7a0f8',
    500: '#787af4',
    950: '#000000',
  },
}
SCSS
$custom: #787af4;
$custom-light: #a7a0f8;
$custom-dark: #000000;
JSON
{
  "hex": "#787af4",
  "rgb": {
    "r": 120,
    "g": 122,
    "b": 244
  },
  "hsl": {
    "h": 239.032,
    "s": 84.932,
    "l": 71.373
  },
  "oklch": {
    "l": 0.6377,
    "c": 0.17834,
    "h": 279.4
  },
  "luminance": 0.24444
}

Semantic roles & 50–950 ramp

primary
#787AF4
secondary
#F4F3D4
accent
#DE04E1
background
#FAF9FF
surface
#F4F2FF
border
#CECCD7
text
#100E17
muted
#7F7E85

Preview Lab

Preview with #787AF4

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

Preview Lab → · Contrast checker → · Palette generator →

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