#786CFE#786CFE

#786CFE is a light, highly saturated blue. Relative luminance 0.219; OKLCH L 62.0% C 0.210 H 282.1°. Best body text is #000000 at 5.37:1 contrast (WCAG AA passes).

Color values

HEX#786CFE
RGBrgb(120, 108, 254)
HSLhsl(245, 99%, 71%)
HSVhsv(245, 57%, 100%)
CMYKcmyk(52.8%, 57.5%, 0%, 0.4%)
CIE-LABlab(53.89, 42.89, -71.50)
CIE-LCHlch(53.89, 83.38, 300.96°)
OKLaboklab(62.01% 0.0439 -0.2049)
OKLCHoklch(62.01% 0.21 282.1)
XYZxyz(30.9922, 21.8721, 96.3354)
Luminance0.2187 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#786CFE #F2FE6C
analogous
#6CA9FE #786CFE #C16CFE
triadic
#786CFE #FE786C #6CFE78
tetradic
#786CFE #FE6CA9 #F2FE6C #6CFEC1
square
#786CFE #FE6CA9 #F2FE6C #6CFEC1
split-complementary
#786CFE #FEC16C #A9FE6C
monochromatic
#1502EE #402FFE #786CFE #B0A9FE #E3E1FF

Accessibility & contrast

On white

3.91
#786CFE on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.37
#786CFE on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #786CFE
5.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##786CFE#FFFFFF#000000##000000
##786CFE1.003.915.375.37
#FFFFFF3.911.0021.0021.00
#0000005.3721.001.001.00
##0000005.3721.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #786cfe;
/* rgb */ color: rgb(120, 108, 254);
/* oklch */ color: oklch(62.0% 0.210 282.1);
Tailwind
colors: {
  custom: {
    50: '#a996ff',
    500: '#786cfe',
    950: '#000000',
  },
}
SCSS
$custom: #786cfe;
$custom-light: #a996ff;
$custom-dark: #000000;
JSON
{
  "hex": "#786cfe",
  "rgb": {
    "r": 120,
    "g": 108,
    "b": 254
  },
  "hsl": {
    "h": 244.932,
    "s": 98.649,
    "l": 70.98
  },
  "oklch": {
    "l": 0.6201,
    "c": 0.20952,
    "h": 282.1
  },
  "luminance": 0.21874
}

Semantic roles & 50–950 ramp

primary
#786CFE
secondary
#F3F6CF
accent
#E600D3
background
#FBF9FF
surface
#F6F2FF
border
#D0CCD7
text
#110D18
muted
#807E86

Preview Lab

Preview with #786CFE

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

Preview Lab → · Contrast checker → · Palette generator →

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