#787DFE#787DFE

#787DFE is a light, vivid blue. Relative luminance 0.258; OKLCH L 65.0% C 0.188 H 278.1°. Best body text is #000000 at 6.16:1 contrast (WCAG AA passes).

Color values

HEX#787DFE
RGBrgb(120, 125, 254)
HSLhsl(238, 99%, 73%)
HSVhsv(238, 53%, 100%)
CMYKcmyk(52.8%, 50.8%, 0%, 0.4%)
CIE-LABlab(57.86, 32.93, -65.09)
CIE-LCHlch(57.86, 72.95, 296.83°)
OKLaboklab(64.97% 0.0265 -0.1859)
OKLCHoklch(64.97% 0.188 278.1)
XYZxyz(32.9631, 25.8140, 96.9923)
Luminance0.2582 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787DFE #FEF978
analogous
#78C0FE #787DFE #B678FE
triadic
#787DFE #FE787D #7DFE78
tetradic
#787DFE #FE78C0 #FEF978 #78FEB6
square
#787DFE #FE78C0 #FEF978 #78FEB6
split-complementary
#787DFE #FEB678 #C0FE78
monochromatic
#020BFA #3B42FE #787DFE #B5B7FE #E1E2FF

Accessibility & contrast

On white

3.41
#787DFE on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.16
#787DFE on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #787DFE
6.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##787DFE#FFFFFF#000000##000000
##787DFE1.003.416.166.16
#FFFFFF3.411.0021.0021.00
#0000006.1621.001.001.00
##0000006.1621.001.001.00

Color blindness preview

Protanopia (red-blind)
#3991FF
Deuteranopia (green-blind)
#2686FB
Tritanopia (blue-blind)
#3A9AB2
Achromatopsia (no color)
#8B8B8B

Design tokens & code

CSS
--color: #787dfe;
/* rgb */ color: rgb(120, 125, 254);
/* oklch */ color: oklch(65.0% 0.188 278.1);
Tailwind
colors: {
  custom: {
    50: '#a8a2ff',
    500: '#787dfe',
    950: '#000000',
  },
}
SCSS
$custom: #787dfe;
$custom-light: #a8a2ff;
$custom-dark: #000000;
JSON
{
  "hex": "#787dfe",
  "rgb": {
    "r": 120,
    "g": 125,
    "b": 254
  },
  "hsl": {
    "h": 237.761,
    "s": 98.529,
    "l": 73.333
  },
  "oklch": {
    "l": 0.64966,
    "c": 0.18778,
    "h": 278.1
  },
  "luminance": 0.25816
}

Semantic roles & 50–950 ramp

primary
#787DFE
secondary
#F7F6D4
accent
#DD00E6
background
#FAFAFF
surface
#F5F3FF
border
#CFCDD7
text
#110F18
muted
#807F86

Preview Lab

Preview with #787DFE

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

Preview Lab → · Contrast checker → · Palette generator →

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