#787CF2#787CF2

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

Color values

HEX#787CF2
RGBrgb(120, 124, 242)
HSLhsl(238, 82%, 71%)
HSVhsv(238, 50%, 95%)
CMYKcmyk(50.4%, 48.8%, 0%, 5.1%)
CIE-LABlab(56.90, 29.87, -60.01)
CIE-LCHlch(56.90, 67.03, 296.46°)
OKLaboklab(64.01% 0.0266 -0.1709)
OKLCHoklch(64.01% 0.173 278.9)
XYZxyz(30.9754, 24.8174, 87.1452)
Luminance0.2482 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787CF2 #F2EE78
analogous
#78B9F2 #787CF2 #B178F2
triadic
#787CF2 #F2787C #7CF278
tetradic
#787CF2 #F278B9 #F2EE78 #78F2B1
square
#787CF2 #F278B9 #F2EE78 #78F2B1
split-complementary
#787CF2 #F2B178 #B9F278
monochromatic
#151CDB #4046ED #787CF2 #B0B2F7 #E3E4FC

Accessibility & contrast

On white

3.52
#787CF2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.96
#787CF2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #787CF2
5.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##787CF2#FFFFFF#000000##000000
##787CF21.003.525.965.96
#FFFFFF3.521.0021.0021.00
#0000005.9621.001.001.00
##0000005.9621.001.001.00

Color blindness preview

Protanopia (red-blind)
#458DF6
Deuteranopia (green-blind)
#3884EF
Tritanopia (blue-blind)
#4696AC
Achromatopsia (no color)
#898989

Design tokens & code

CSS
--color: #787cf2;
/* rgb */ color: rgb(120, 124, 242);
/* oklch */ color: oklch(64.0% 0.173 278.9);
Tailwind
colors: {
  custom: {
    50: '#a6a1f7',
    500: '#787cf2',
    950: '#000000',
  },
}
SCSS
$custom: #787cf2;
$custom-light: #a6a1f7;
$custom-dark: #000000;
JSON
{
  "hex": "#787cf2",
  "rgb": {
    "r": 120,
    "g": 124,
    "b": 242
  },
  "hsl": {
    "h": 238.033,
    "s": 82.432,
    "l": 70.98
  },
  "oklch": {
    "l": 0.6401,
    "c": 0.17301,
    "h": 278.9
  },
  "luminance": 0.24819
}

Semantic roles & 50–950 ramp

primary
#787CF2
secondary
#F3F2D3
accent
#D807DF
background
#FAF9FF
surface
#F4F2FF
border
#CECCD7
text
#100F17
muted
#7F7E85

Preview Lab

Preview with #787CF2

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

Preview Lab → · Contrast checker → · Palette generator →

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