#787EFD#787EFD

#787EFD is a light, vivid blue. Relative luminance 0.260; OKLCH L 65.1% C 0.185 H 277.9°. Best body text is #000000 at 6.20:1 contrast (WCAG AA passes).

Color values

HEX#787EFD
RGBrgb(120, 126, 253)
HSLhsl(237, 97%, 73%)
HSVhsv(237, 53%, 99%)
CMYKcmyk(52.6%, 50.2%, 0%, 0.8%)
CIE-LABlab(58.04, 32.03, -64.25)
CIE-LCHlch(58.04, 71.79, 296.50°)
OKLaboklab(65.08% 0.0254 -0.1834)
OKLCHoklch(65.08% 0.185 277.9)
XYZxyz(32.9306, 26.0045, 96.1936)
Luminance0.2601 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787EFD #FDF778
analogous
#78C0FD #787EFD #B478FD
triadic
#787EFD #FD787E #7EFD78
tetradic
#787EFD #FD78C0 #FDF778 #78FDB4
square
#787EFD #FD78C0 #FDF778 #78FDB4
split-complementary
#787EFD #FDB478 #C0FD78
monochromatic
#040FF7 #3C44FC #787EFD #B4B8FE #E1E2FF

Accessibility & contrast

On white

3.39
#787EFD on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.20
#787EFD on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #787EFD
6.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##787EFD#FFFFFF#000000##000000
##787EFD1.003.396.206.20
#FFFFFF3.391.0021.0021.00
#0000006.2021.001.001.00
##0000006.2021.001.001.00

Color blindness preview

Protanopia (red-blind)
#3D91FF
Deuteranopia (green-blind)
#2B86FA
Tritanopia (blue-blind)
#3B9AB2
Achromatopsia (no color)
#8B8B8B

Design tokens & code

CSS
--color: #787efd;
/* rgb */ color: rgb(120, 126, 253);
/* oklch */ color: oklch(65.1% 0.185 277.9);
Tailwind
colors: {
  custom: {
    50: '#a8a3ff',
    500: '#787efd',
    950: '#000000',
  },
}
SCSS
$custom: #787efd;
$custom-light: #a8a3ff;
$custom-dark: #000000;
JSON
{
  "hex": "#787efd",
  "rgb": {
    "r": 120,
    "g": 126,
    "b": 253
  },
  "hsl": {
    "h": 237.293,
    "s": 97.08,
    "l": 73.137
  },
  "oklch": {
    "l": 0.65083,
    "c": 0.18516,
    "h": 277.9
  },
  "luminance": 0.26007
}

Semantic roles & 50–950 ramp

primary
#787EFD
secondary
#F7F5D4
accent
#DB00E6
background
#FAFAFF
surface
#F4F3FF
border
#CECDD7
text
#100F18
muted
#7F7F86

Preview Lab

Preview with #787EFD

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

Preview Lab → · Contrast checker → · Palette generator →

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