#786DFE#786DFE

#786DFE is a light, highly saturated blue. Relative luminance 0.221; OKLCH L 62.2% C 0.208 H 281.9°. Best body text is #000000 at 5.42:1 contrast (WCAG AA passes).

Color values

HEX#786DFE
RGBrgb(120, 109, 254)
HSLhsl(245, 99%, 71%)
HSVhsv(245, 57%, 100%)
CMYKcmyk(52.8%, 57.1%, 0%, 0.4%)
CIE-LABlab(54.12, 42.31, -71.14)
CIE-LCHlch(54.12, 82.77, 300.74°)
OKLaboklab(62.18% 0.0429 -0.2038)
OKLCHoklch(62.18% 0.208 281.9)
XYZxyz(31.0983, 22.0843, 96.3707)
Luminance0.2209 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#786DFE #F3FE6D
analogous
#6DAAFE #786DFE #C06DFE
triadic
#786DFE #FE786D #6DFE78
tetradic
#786DFE #FE6DAA #F3FE6D #6DFEC0
square
#786DFE #FE6DAA #F3FE6D #6DFEC0
split-complementary
#786DFE #FEC06D #AAFE6D
monochromatic
#1402EF #4030FE #786DFE #B0AAFE #E3E1FF

Accessibility & contrast

On white

3.88
#786DFE on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.42
#786DFE on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #786DFE
5.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##786DFE#FFFFFF#000000##000000
##786DFE1.003.885.425.42
#FFFFFF3.881.0021.0021.00
#0000005.4221.001.001.00
##0000005.4221.001.001.00

Color blindness preview

Protanopia (red-blind)
#0086FF
Deuteranopia (green-blind)
#007CFB
Tritanopia (blue-blind)
#3D8FAB
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #786dfe;
/* rgb */ color: rgb(120, 109, 254);
/* oklch */ color: oklch(62.2% 0.208 281.9);
Tailwind
colors: {
  custom: {
    50: '#a997ff',
    500: '#786dfe',
    950: '#000000',
  },
}
SCSS
$custom: #786dfe;
$custom-light: #a997ff;
$custom-dark: #000000;
JSON
{
  "hex": "#786dfe",
  "rgb": {
    "r": 120,
    "g": 109,
    "b": 254
  },
  "hsl": {
    "h": 244.552,
    "s": 98.639,
    "l": 71.176
  },
  "oklch": {
    "l": 0.62176,
    "c": 0.20825,
    "h": 281.9
  },
  "luminance": 0.22086
}

Semantic roles & 50–950 ramp

primary
#786DFE
secondary
#F4F6D0
accent
#E600D4
background
#FBF9FF
surface
#F6F2FF
border
#D0CCD7
text
#110D18
muted
#807E86

Preview Lab

Preview with #786DFE

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

Preview Lab → · Contrast checker → · Palette generator →

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