#786FEC#786FEC

#786FEC is a mid, vivid blue. Relative luminance 0.214; OKLCH L 61.3% C 0.182 H 282.8°. Best body text is #000000 at 5.28:1 contrast (WCAG AA passes).

Color values

HEX#786FEC
RGBrgb(120, 111, 236)
HSLhsl(244, 77%, 68%)
HSVhsv(244, 53%, 93%)
CMYKcmyk(49.2%, 53%, 0%, 7.5%)
CIE-LABlab(53.40, 35.77, -62.28)
CIE-LCHlch(53.40, 71.82, 299.87°)
OKLaboklab(61.27% 0.0405 -0.1777)
OKLCHoklch(61.27% 0.182 282.8)
XYZxyz(28.5659, 21.4166, 81.9692)
Luminance0.2142 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#786FEC #E3EC6F
analogous
#6FA4EC #786FEC #B66FEC
triadic
#786FEC #EC786F #6FEC78
tetradic
#786FEC #EC6FA4 #E3EC6F #6FECB6
square
#786FEC #EC6FA4 #E3EC6F #6FECB6
split-complementary
#786FEC #ECB66F #A4EC6F
monochromatic
#271AC6 #4539E5 #786FEC #ABA5F3 #DDDBFA

Accessibility & contrast

On white

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

On black

5.28
#786FEC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #786FEC
5.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##786FEC#FFFFFF#000000##000000
##786FEC1.003.975.285.28
#FFFFFF3.971.0021.0021.00
#0000005.2821.001.001.00
##0000005.2821.001.001.00

Color blindness preview

Protanopia (red-blind)
#2B84F0
Deuteranopia (green-blind)
#207BE9
Tritanopia (blue-blind)
#4D8BA3
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #786fec;
/* rgb */ color: rgb(120, 111, 236);
/* oklch */ color: oklch(61.3% 0.182 282.8);
Tailwind
colors: {
  custom: {
    50: '#a698f3',
    500: '#786fec',
    950: '#000000',
  },
}
SCSS
$custom: #786fec;
$custom-light: #a698f3;
$custom-dark: #000000;
JSON
{
  "hex": "#786fec",
  "rgb": {
    "r": 120,
    "g": 111,
    "b": 236
  },
  "hsl": {
    "h": 244.32,
    "s": 76.687,
    "l": 68.039
  },
  "oklch": {
    "l": 0.61272,
    "c": 0.18228,
    "h": 282.8
  },
  "luminance": 0.21418
}

Semantic roles & 50–950 ramp

primary
#786FEC
secondary
#ECEFC8
accent
#D90DCA
background
#FAF9FE
surface
#F4F2FD
border
#CECCD5
text
#100D17
muted
#7F7E85

Preview Lab

Preview with #786FEC

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

Preview Lab → · Contrast checker → · Palette generator →

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