#786AC2#786AC2

#786AC2 is a mid, vivid blue. Relative luminance 0.182; OKLCH L 57.7% C 0.132 H 288.9°. Best body text is #000000 at 4.64:1 contrast (WCAG AA passes).

Color values

HEX#786AC2
RGBrgb(120, 106, 194)
HSLhsl(250, 42%, 59%)
HSVhsv(250, 45%, 76%)
CMYKcmyk(38.1%, 45.4%, 0%, 23.9%)
CIE-LABlab(49.73, 26.59, -44.34)
CIE-LCHlch(49.73, 51.70, 300.95°)
OKLaboklab(57.73% 0.0428 -0.1251)
OKLCHoklch(57.73% 0.132 288.9)
XYZxyz(22.6347, 18.1955, 53.3480)
Luminance0.1820 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#786AC2 #B4C26A
analogous
#6A88C2 #786AC2 #A46AC2
triadic
#786AC2 #C2786A #6AC278
tetradic
#786AC2 #C26A88 #B4C26A #6AC2A4
square
#786AC2 #C26A88 #B4C26A #6AC2A4
split-complementary
#786AC2 #C2A46A #88C26A
monochromatic
#3F347E #5545A9 #786AC2 #9F95D4 #C7C1E6

Accessibility & contrast

On white

4.53
#786AC2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.64
#786AC2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #786AC2
4.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##786AC2#FFFFFF#000000##000000
##786AC21.004.534.644.64
#FFFFFF4.531.0021.0021.00
#0000004.6421.001.001.00
##0000004.6421.001.001.00

Color blindness preview

Protanopia (red-blind)
#4B78C5
Deuteranopia (green-blind)
#4B74C0
Tritanopia (blue-blind)
#647B8D
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #786ac2;
/* rgb */ color: rgb(120, 106, 194);
/* oklch */ color: oklch(57.7% 0.132 288.9);
Tailwind
colors: {
  custom: {
    50: '#a294d5',
    500: '#786ac2',
    950: '#000000',
  },
}
SCSS
$custom: #786ac2;
$custom-light: #a294d5;
$custom-dark: #000000;
JSON
{
  "hex": "#786ac2",
  "rgb": {
    "r": 120,
    "g": 106,
    "b": 194
  },
  "hsl": {
    "h": 249.545,
    "s": 41.905,
    "l": 58.824
  },
  "oklch": {
    "l": 0.57725,
    "c": 0.13221,
    "h": 288.9
  },
  "luminance": 0.18196
}

Semantic roles & 50–950 ramp

primary
#786AC2
secondary
#D0D5B3
accent
#D256BE
background
#FAF9FD
surface
#F4F1FA
border
#CECBD3
text
#0F0D14
muted
#7F7E83

Preview Lab

Preview with #786AC2

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

Preview Lab → · Contrast checker → · Palette generator →

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