#786ECC#786ECC

#786ECC is a mid, vivid blue. Relative luminance 0.195; OKLCH L 59.1% C 0.140 H 286.1°. Best body text is #000000 at 4.90:1 contrast (WCAG AA passes).

Color values

HEX#786ECC
RGBrgb(120, 110, 204)
HSLhsl(246, 48%, 62%)
HSVhsv(246, 46%, 80%)
CMYKcmyk(41.2%, 46.1%, 0%, 20%)
CIE-LABlab(51.27, 27.02, -47.62)
CIE-LCHlch(51.27, 54.75, 299.57°)
OKLaboklab(59.07% 0.039 -0.1347)
OKLCHoklch(59.07% 0.14 286.1)
XYZxyz(24.2177, 19.5037, 59.6036)
Luminance0.1951 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#786ECC #C2CC6E
analogous
#6E93CC #786ECC #A76ECC
triadic
#786ECC #CC786E #6ECC78
tetradic
#786ECC #CC6E93 #C2CC6E #6ECCA7
square
#786ECC #CC6E93 #C2CC6E #6ECCA7
split-complementary
#786ECC #CCA76E #93CC6E
monochromatic
#3C328E #4F42BB #786ECC #A29BDC #CCC9EC

Accessibility & contrast

On white

4.28
#786ECC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.90
#786ECC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #786ECC
4.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##786ECC#FFFFFF#000000##000000
##786ECC1.004.284.904.90
#FFFFFF4.281.0021.0021.00
#0000004.9021.001.001.00
##0000004.9021.001.001.00

Color blindness preview

Protanopia (red-blind)
#4A7DCF
Deuteranopia (green-blind)
#4877CA
Tritanopia (blue-blind)
#608193
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #786ecc;
/* rgb */ color: rgb(120, 110, 204);
/* oklch */ color: oklch(59.1% 0.140 286.1);
Tailwind
colors: {
  custom: {
    50: '#a397dc',
    500: '#786ecc',
    950: '#000000',
  },
}
SCSS
$custom: #786ecc;
$custom-light: #a397dc;
$custom-dark: #000000;
JSON
{
  "hex": "#786ecc",
  "rgb": {
    "r": 120,
    "g": 110,
    "b": 204
  },
  "hsl": {
    "h": 246.383,
    "s": 47.959,
    "l": 61.569
  },
  "oklch": {
    "l": 0.59065,
    "c": 0.14021,
    "h": 286.1
  },
  "luminance": 0.19505
}

Semantic roles & 50–950 ramp

primary
#786ECC
secondary
#D9DCB9
accent
#BB2AAC
background
#FAF9FD
surface
#F4F2FB
border
#CECCD4
text
#0F0D15
muted
#7F7E83

Preview Lab

Preview with #786ECC

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

Preview Lab → · Contrast checker → · Palette generator →

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