#787CF1#787CF1

#787CF1 is a light, vivid blue. Relative luminance 0.248; OKLCH L 63.9% C 0.172 H 278.9°. Best body text is #000000 at 5.95:1 contrast (WCAG AA passes).

Color values

HEX#787CF1
RGBrgb(120, 124, 241)
HSLhsl(238, 81%, 71%)
HSVhsv(238, 50%, 95%)
CMYKcmyk(50.2%, 48.5%, 0%, 5.5%)
CIE-LABlab(56.84, 29.57, -59.55)
CIE-LCHlch(56.84, 66.48, 296.41°)
OKLaboklab(63.95% 0.0265 -0.1696)
OKLCHoklch(63.95% 0.172 278.9)
XYZxyz(30.8256, 24.7575, 86.3564)
Luminance0.2476 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787CF1 #F1ED78
analogous
#78B8F1 #787CF1 #B178F1
triadic
#787CF1 #F1787C #7CF178
tetradic
#787CF1 #F178B8 #F1ED78 #78F1B1
square
#787CF1 #F178B8 #F1ED78 #78F1B1
split-complementary
#787CF1 #F1B178 #B8F178
monochromatic
#161DD8 #4146EB #787CF1 #AFB2F7 #E3E4FC

Accessibility & contrast

On white

3.53
#787CF1 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.95
#787CF1 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #787CF1
5.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##787CF1#FFFFFF#000000##000000
##787CF11.003.535.955.95
#FFFFFF3.531.0021.0021.00
#0000005.9521.001.001.00
##0000005.9521.001.001.00

Color blindness preview

Protanopia (red-blind)
#468DF5
Deuteranopia (green-blind)
#3A84EE
Tritanopia (blue-blind)
#4795AB
Achromatopsia (no color)
#888888

Design tokens & code

CSS
--color: #787cf1;
/* rgb */ color: rgb(120, 124, 241);
/* oklch */ color: oklch(63.9% 0.172 278.9);
Tailwind
colors: {
  custom: {
    50: '#a6a1f6',
    500: '#787cf1',
    950: '#000000',
  },
}
SCSS
$custom: #787cf1;
$custom-light: #a6a1f6;
$custom-dark: #000000;
JSON
{
  "hex": "#787cf1",
  "rgb": {
    "r": 120,
    "g": 124,
    "b": 241
  },
  "hsl": {
    "h": 238.017,
    "s": 81.208,
    "l": 70.784
  },
  "oklch": {
    "l": 0.63947,
    "c": 0.17166,
    "h": 278.9
  },
  "luminance": 0.24759
}

Semantic roles & 50–950 ramp

primary
#787CF1
secondary
#F3F2D2
accent
#D708DE
background
#FAF9FF
surface
#F4F2FF
border
#CECCD7
text
#100F17
muted
#7F7E85

Preview Lab

Preview with #787CF1

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

Preview Lab → · Contrast checker → · Palette generator →

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