#786AFE#786AFE

#786AFE is a mid, highly saturated blue. Relative luminance 0.215; OKLCH L 61.7% C 0.212 H 282.5°. Best body text is #000000 at 5.29:1 contrast (WCAG AA passes).

Color values

HEX#786AFE
RGBrgb(120, 106, 254)
HSLhsl(246, 99%, 71%)
HSVhsv(246, 58%, 100%)
CMYKcmyk(52.8%, 58.3%, 0%, 0.4%)
CIE-LABlab(53.44, 44.04, -72.22)
CIE-LCHlch(53.44, 84.59, 301.38°)
OKLaboklab(61.68% 0.0459 -0.207)
OKLCHoklch(61.68% 0.212 282.5)
XYZxyz(30.7837, 21.4551, 96.2659)
Luminance0.2146 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#786AFE #F0FE6A
analogous
#6AA6FE #786AFE #C26AFE
triadic
#786AFE #FE786A #6AFE78
tetradic
#786AFE #FE6AA6 #F0FE6A #6AFEC2
square
#786AFE #FE6AA6 #F0FE6A #6AFEC2
split-complementary
#786AFE #FEC26A #A6FE6A
monochromatic
#1802EC #412DFE #786AFE #AFA7FE #E3E1FF

Accessibility & contrast

On white

3.97
#786AFE on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.29
#786AFE on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #786AFE
5.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##786AFE#FFFFFF#000000##000000
##786AFE1.003.975.295.29
#FFFFFF3.971.0021.0021.00
#0000005.2921.001.001.00
##0000005.2921.001.001.00

Color blindness preview

Protanopia (red-blind)
#0085FF
Deuteranopia (green-blind)
#007BFB
Tritanopia (blue-blind)
#3E8DAA
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #786afe;
/* rgb */ color: rgb(120, 106, 254);
/* oklch */ color: oklch(61.7% 0.212 282.5);
Tailwind
colors: {
  custom: {
    50: '#a995ff',
    500: '#786afe',
    950: '#000000',
  },
}
SCSS
$custom: #786afe;
$custom-light: #a995ff;
$custom-dark: #000000;
JSON
{
  "hex": "#786afe",
  "rgb": {
    "r": 120,
    "g": 106,
    "b": 254
  },
  "hsl": {
    "h": 245.676,
    "s": 98.667,
    "l": 70.588
  },
  "oklch": {
    "l": 0.6168,
    "c": 0.21203,
    "h": 282.5
  },
  "luminance": 0.21457
}

Semantic roles & 50–950 ramp

primary
#786AFE
secondary
#F2F6CE
accent
#E600D0
background
#FBF9FF
surface
#F6F2FF
border
#D0CCD7
text
#110D18
muted
#807E86

Preview Lab

Preview with #786AFE

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

Preview Lab → · Contrast checker → · Palette generator →

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