#787BF1#787BF1

#787BF1 is a light, vivid blue. Relative luminance 0.245; OKLCH L 63.8% C 0.173 H 279.2°. Best body text is #000000 at 5.90:1 contrast (WCAG AA passes).

Color values

HEX#787BF1
RGBrgb(120, 123, 241)
HSLhsl(239, 81%, 71%)
HSVhsv(239, 50%, 95%)
CMYKcmyk(50.2%, 49%, 0%, 5.5%)
CIE-LABlab(56.59, 30.16, -59.94)
CIE-LCHlch(56.59, 67.10, 296.71°)
OKLaboklab(63.76% 0.0276 -0.1708)
OKLCHoklch(63.76% 0.173 279.2)
XYZxyz(30.7010, 24.5081, 86.3148)
Luminance0.2451 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787BF1 #F1EE78
analogous
#78B8F1 #787BF1 #B178F1
triadic
#787BF1 #F1787B #7BF178
tetradic
#787BF1 #F178B8 #F1EE78 #78F1B1
square
#787BF1 #F178B8 #F1EE78 #78F1B1
split-complementary
#787BF1 #F1B178 #B8F178
monochromatic
#161BD8 #4145EB #787BF1 #AFB1F7 #E3E4FC

Accessibility & contrast

On white

3.56
#787BF1 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.90
#787BF1 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #787BF1
5.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##787BF1#FFFFFF#000000##000000
##787BF11.003.565.905.90
#FFFFFF3.561.0021.0021.00
#0000005.9021.001.001.00
##0000005.9021.001.001.00

Color blindness preview

Protanopia (red-blind)
#438DF5
Deuteranopia (green-blind)
#3883EE
Tritanopia (blue-blind)
#4795AB
Achromatopsia (no color)
#888888

Design tokens & code

CSS
--color: #787bf1;
/* rgb */ color: rgb(120, 123, 241);
/* oklch */ color: oklch(63.8% 0.173 279.2);
Tailwind
colors: {
  custom: {
    50: '#a6a1f6',
    500: '#787bf1',
    950: '#000000',
  },
}
SCSS
$custom: #787bf1;
$custom-light: #a6a1f6;
$custom-dark: #000000;
JSON
{
  "hex": "#787bf1",
  "rgb": {
    "r": 120,
    "g": 123,
    "b": 241
  },
  "hsl": {
    "h": 238.512,
    "s": 81.208,
    "l": 70.784
  },
  "oklch": {
    "l": 0.63762,
    "c": 0.17298,
    "h": 279.2
  },
  "luminance": 0.2451
}

Semantic roles & 50–950 ramp

primary
#787BF1
secondary
#F3F2D2
accent
#D808DE
background
#FAF9FF
surface
#F4F2FF
border
#CECCD7
text
#100E17
muted
#7F7E85

Preview Lab

Preview with #787BF1

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

Preview Lab → · Contrast checker → · Palette generator →

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