#786CFD#786CFD

#786CFD is a mid, highly saturated blue. Relative luminance 0.218; OKLCH L 61.9% C 0.208 H 282.2°. Best body text is #000000 at 5.36:1 contrast (WCAG AA passes).

Color values

HEX#786CFD
RGBrgb(120, 108, 253)
HSLhsl(245, 97%, 71%)
HSVhsv(245, 57%, 99%)
CMYKcmyk(52.6%, 57.3%, 0%, 0.8%)
CIE-LABlab(53.82, 42.59, -71.06)
CIE-LCHlch(53.82, 82.84, 300.94°)
OKLaboklab(61.94% 0.0439 -0.2036)
OKLCHoklch(61.94% 0.208 282.2)
XYZxyz(30.8325, 21.8082, 95.4942)
Luminance0.2181 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#786CFD #F1FD6C
analogous
#6CA8FD #786CFD #C16CFD
triadic
#786CFD #FD786C #6CFD78
tetradic
#786CFD #FD6CA8 #F1FD6C #6CFDC1
square
#786CFD #FD6CA8 #F1FD6C #6CFDC1
split-complementary
#786CFD #FDC16C #A8FD6C
monochromatic
#1603EB #4130FC #786CFD #AFA8FE #E3E1FF

Accessibility & contrast

On white

3.92
#786CFD on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.36
#786CFD on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #786CFD
5.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##786CFD#FFFFFF#000000##000000
##786CFD1.003.925.365.36
#FFFFFF3.921.0021.0021.00
#0000005.3621.001.001.00
##0000005.3621.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #786cfd;
/* rgb */ color: rgb(120, 108, 253);
/* oklch */ color: oklch(61.9% 0.208 282.2);
Tailwind
colors: {
  custom: {
    50: '#a996ff',
    500: '#786cfd',
    950: '#000000',
  },
}
SCSS
$custom: #786cfd;
$custom-light: #a996ff;
$custom-dark: #000000;
JSON
{
  "hex": "#786cfd",
  "rgb": {
    "r": 120,
    "g": 108,
    "b": 253
  },
  "hsl": {
    "h": 244.966,
    "s": 97.315,
    "l": 70.784
  },
  "oklch": {
    "l": 0.61938,
    "c": 0.20825,
    "h": 282.2
  },
  "luminance": 0.2181
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #786CFD

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

Preview Lab → · Contrast checker → · Palette generator →

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