#787DFB#787DFB

#787DFB is a light, vivid blue. Relative luminance 0.256; OKLCH L 64.8% C 0.184 H 278.2°. Best body text is #000000 at 6.12:1 contrast (WCAG AA passes).

Color values

HEX#787DFB
RGBrgb(120, 125, 251)
HSLhsl(238, 94%, 73%)
HSVhsv(238, 52%, 98%)
CMYKcmyk(52.2%, 50.2%, 0%, 1.6%)
CIE-LABlab(57.68, 32.01, -63.73)
CIE-LCHlch(57.68, 71.32, 296.67°)
OKLaboklab(64.77% 0.0263 -0.1819)
OKLCHoklch(64.77% 0.184 278.2)
XYZxyz(32.4865, 25.6233, 94.4820)
Luminance0.2562 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787DFB #FBF678
analogous
#78BEFB #787DFB #B478FB
triadic
#787DFB #FB787D #7DFB78
tetradic
#787DFB #FB78BE #FBF678 #78FBB4
square
#787DFB #FB78BE #FBF678 #78FBB4
split-complementary
#787DFB #FBB478 #BEFB78
monochromatic
#0710F1 #3D44F9 #787DFB #B3B6FD #E1E2FE

Accessibility & contrast

On white

3.43
#787DFB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.12
#787DFB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #787DFB
6.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##787DFB#FFFFFF#000000##000000
##787DFB1.003.436.126.12
#FFFFFF3.431.0021.0021.00
#0000006.1221.001.001.00
##0000006.1221.001.001.00

Color blindness preview

Protanopia (red-blind)
#3D90FF
Deuteranopia (green-blind)
#2C85F8
Tritanopia (blue-blind)
#3E99B0
Achromatopsia (no color)
#8B8B8B

Design tokens & code

CSS
--color: #787dfb;
/* rgb */ color: rgb(120, 125, 251);
/* oklch */ color: oklch(64.8% 0.184 278.2);
Tailwind
colors: {
  custom: {
    50: '#a7a2fd',
    500: '#787dfb',
    950: '#000000',
  },
}
SCSS
$custom: #787dfb;
$custom-light: #a7a2fd;
$custom-dark: #000000;
JSON
{
  "hex": "#787dfb",
  "rgb": {
    "r": 120,
    "g": 125,
    "b": 251
  },
  "hsl": {
    "h": 237.71,
    "s": 94.245,
    "l": 72.745
  },
  "oklch": {
    "l": 0.64771,
    "c": 0.18379,
    "h": 278.2
  },
  "luminance": 0.25625
}

Semantic roles & 50–950 ramp

primary
#787DFB
secondary
#F6F5D5
accent
#DD00E6
background
#FAFAFF
surface
#F4F3FF
border
#CECDD7
text
#100F18
muted
#7F7F86

Preview Lab

Preview with #787DFB

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

Preview Lab → · Contrast checker → · Palette generator →

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