#787BF0#787BF0

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

Color values

HEX#787BF0
RGBrgb(120, 123, 240)
HSLhsl(239, 80%, 71%)
HSVhsv(239, 50%, 94%)
CMYKcmyk(50%, 48.7%, 0%, 5.9%)
CIE-LABlab(56.53, 29.86, -59.48)
CIE-LCHlch(56.53, 66.55, 296.66°)
OKLaboklab(63.7% 0.0275 -0.1694)
OKLCHoklch(63.7% 0.172 279.2)
XYZxyz(30.5520, 24.4485, 85.5303)
Luminance0.2445 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787BF0 #F0ED78
analogous
#78B7F0 #787BF0 #B178F0
triadic
#787BF0 #F0787B #7BF078
tetradic
#787BF0 #F078B7 #F0ED78 #78F0B1
square
#787BF0 #F078B7 #F0ED78 #78F0B1
split-complementary
#787BF0 #F0B178 #B7F078
monochromatic
#181DD6 #4145EA #787BF0 #AFB1F6 #E3E4FC

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##787BF0#FFFFFF#000000##000000
##787BF01.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)
#448CF4
Deuteranopia (green-blind)
#3983ED
Tritanopia (blue-blind)
#4894AA
Achromatopsia (no color)
#888888

Design tokens & code

CSS
--color: #787bf0;
/* rgb */ color: rgb(120, 123, 240);
/* oklch */ color: oklch(63.7% 0.172 279.2);
Tailwind
colors: {
  custom: {
    50: '#a6a1f5',
    500: '#787bf0',
    950: '#000000',
  },
}
SCSS
$custom: #787bf0;
$custom-light: #a6a1f5;
$custom-dark: #000000;
JSON
{
  "hex": "#787bf0",
  "rgb": {
    "r": 120,
    "g": 123,
    "b": 240
  },
  "hsl": {
    "h": 238.5,
    "s": 80,
    "l": 70.588
  },
  "oklch": {
    "l": 0.63699,
    "c": 0.17163,
    "h": 279.2
  },
  "luminance": 0.2445
}

Semantic roles & 50–950 ramp

primary
#787BF0
secondary
#F2F1D2
accent
#D709DC
background
#FAF9FF
surface
#F4F2FE
border
#CECCD6
text
#100E17
muted
#7F7E85

Preview Lab

Preview with #787BF0

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

Preview Lab → · Contrast checker → · Palette generator →

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