#786AC3#786AC3

#786AC3 is a mid, vivid blue. Relative luminance 0.182; OKLCH L 57.8% C 0.134 H 288.7°. Best body text is #000000 at 4.65:1 contrast (WCAG AA passes).

Color values

HEX#786AC3
RGBrgb(120, 106, 195)
HSLhsl(249, 43%, 59%)
HSVhsv(249, 46%, 76%)
CMYKcmyk(38.5%, 45.6%, 0%, 23.5%)
CIE-LABlab(49.79, 26.87, -44.83)
CIE-LCHlch(49.79, 52.26, 300.94°)
OKLaboklab(57.78% 0.0429 -0.1265)
OKLCHoklch(57.78% 0.134 288.7)
XYZxyz(22.7474, 18.2406, 53.9414)
Luminance0.1824 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#786AC3 #B5C36A
analogous
#6A89C3 #786AC3 #A56AC3
triadic
#786AC3 #C3786A #6AC378
tetradic
#786AC3 #C36A89 #B5C36A #6AC3A5
square
#786AC3 #C36A89 #B5C36A #6AC3A5
split-complementary
#786AC3 #C3A56A #89C36A
monochromatic
#3F337F #5545AB #786AC3 #A096D5 #C7C1E6

Accessibility & contrast

On white

4.52
#786AC3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.65
#786AC3 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #786AC3
4.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##786AC3#FFFFFF#000000##000000
##786AC31.004.524.654.65
#FFFFFF4.521.0021.0021.00
#0000004.6521.001.001.00
##0000004.6521.001.001.00

Color blindness preview

Protanopia (red-blind)
#4A78C6
Deuteranopia (green-blind)
#4A74C1
Tritanopia (blue-blind)
#647C8D
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #786ac3;
/* rgb */ color: rgb(120, 106, 195);
/* oklch */ color: oklch(57.8% 0.134 288.7);
Tailwind
colors: {
  custom: {
    50: '#a294d5',
    500: '#786ac3',
    950: '#000000',
  },
}
SCSS
$custom: #786ac3;
$custom-light: #a294d5;
$custom-dark: #000000;
JSON
{
  "hex": "#786ac3",
  "rgb": {
    "r": 120,
    "g": 106,
    "b": 195
  },
  "hsl": {
    "h": 249.438,
    "s": 42.584,
    "l": 59.02
  },
  "oklch": {
    "l": 0.57784,
    "c": 0.1336,
    "h": 288.7
  },
  "luminance": 0.18241
}

Semantic roles & 50–950 ramp

primary
#786AC3
secondary
#D0D6B3
accent
#D255BF
background
#FAF9FD
surface
#F4F1FA
border
#CECBD3
text
#0F0D14
muted
#7F7E83

Preview Lab

Preview with #786AC3

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

Preview Lab → · Contrast checker → · Palette generator →

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