#787BFB#787BFB

#787BFB is a light, vivid blue. Relative luminance 0.251; OKLCH L 64.4% C 0.186 H 278.8°. Best body text is #000000 at 6.02:1 contrast (WCAG AA passes).

Color values

HEX#787BFB
RGBrgb(120, 123, 251)
HSLhsl(239, 94%, 73%)
HSVhsv(239, 52%, 98%)
CMYKcmyk(52.2%, 51%, 0%, 1.6%)
CIE-LABlab(57.19, 33.20, -64.51)
CIE-LCHlch(57.19, 72.55, 297.23°)
OKLaboklab(64.41% 0.0284 -0.1842)
OKLCHoklch(64.41% 0.186 278.8)
XYZxyz(32.2358, 25.1220, 94.3985)
Luminance0.2512 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787BFB #FBF878
analogous
#78BCFB #787BFB #B678FB
triadic
#787BFB #FB787B #7BFB78
tetradic
#787BFB #FB78BC #FBF878 #78FBB6
square
#787BFB #FB78BC #FBF878 #78FBB6
split-complementary
#787BFB #FBB678 #BCFB78
monochromatic
#070DF1 #3D41F9 #787BFB #B3B5FD #E1E2FE

Accessibility & contrast

On white

3.49
#787BFB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.02
#787BFB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #787BFB
6.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##787BFB#FFFFFF#000000##000000
##787BFB1.003.496.026.02
#FFFFFF3.491.0021.0021.00
#0000006.0221.001.001.00
##0000006.0221.001.001.00

Color blindness preview

Protanopia (red-blind)
#388FFF
Deuteranopia (green-blind)
#2684F8
Tritanopia (blue-blind)
#3E98AF
Achromatopsia (no color)
#898989

Design tokens & code

CSS
--color: #787bfb;
/* rgb */ color: rgb(120, 123, 251);
/* oklch */ color: oklch(64.4% 0.186 278.8);
Tailwind
colors: {
  custom: {
    50: '#a8a1fd',
    500: '#787bfb',
    950: '#000000',
  },
}
SCSS
$custom: #787bfb;
$custom-light: #a8a1fd;
$custom-dark: #000000;
JSON
{
  "hex": "#787bfb",
  "rgb": {
    "r": 120,
    "g": 123,
    "b": 251
  },
  "hsl": {
    "h": 238.626,
    "s": 94.245,
    "l": 72.745
  },
  "oklch": {
    "l": 0.64407,
    "c": 0.18638,
    "h": 278.8
  },
  "luminance": 0.25124
}

Semantic roles & 50–950 ramp

primary
#787BFB
secondary
#F6F6D5
accent
#E000E6
background
#FAF9FF
surface
#F4F2FF
border
#CECCD7
text
#100F18
muted
#7F7E86

Preview Lab

Preview with #787BFB

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

Preview Lab → · Contrast checker → · Palette generator →

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