#786AC1#786AC1

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

Color values

HEX#786AC1
RGBrgb(120, 106, 193)
HSLhsl(250, 41%, 59%)
HSVhsv(250, 45%, 76%)
CMYKcmyk(37.8%, 45.1%, 0%, 24.3%)
CIE-LABlab(49.68, 26.31, -43.85)
CIE-LCHlch(49.68, 51.14, 300.97°)
OKLaboklab(57.67% 0.0426 -0.1237)
OKLCHoklch(57.67% 0.131 289)
XYZxyz(22.5228, 18.1507, 52.7585)
Luminance0.1815 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#786AC1 #B3C16A
analogous
#6A87C1 #786AC1 #A36AC1
triadic
#786AC1 #C1786A #6AC178
tetradic
#786AC1 #C16A87 #B3C16A #6AC1A3
square
#786AC1 #C16A87 #B3C16A #6AC1A3
split-complementary
#786AC1 #C1A36A #87C16A
monochromatic
#40347D #5646A8 #786AC1 #9F95D3 #C6C0E5

Accessibility & contrast

On white

4.54
#786AC1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.63
#786AC1 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #786AC1
4.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##786AC1#FFFFFF#000000##000000
##786AC11.004.544.634.63
#FFFFFF4.541.0021.0021.00
#0000004.6321.001.001.00
##0000004.6321.001.001.00

Color blindness preview

Protanopia (red-blind)
#4B78C4
Deuteranopia (green-blind)
#4C74BF
Tritanopia (blue-blind)
#657B8C
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #786ac1;
/* rgb */ color: rgb(120, 106, 193);
/* oklch */ color: oklch(57.7% 0.131 289.0);
Tailwind
colors: {
  custom: {
    50: '#a294d4',
    500: '#786ac1',
    950: '#000000',
  },
}
SCSS
$custom: #786ac1;
$custom-light: #a294d4;
$custom-dark: #000000;
JSON
{
  "hex": "#786ac1",
  "rgb": {
    "r": 120,
    "g": 106,
    "b": 193
  },
  "hsl": {
    "h": 249.655,
    "s": 41.232,
    "l": 58.627
  },
  "oklch": {
    "l": 0.57667,
    "c": 0.1308,
    "h": 289
  },
  "luminance": 0.18151
}

Semantic roles & 50–950 ramp

primary
#786AC1
secondary
#CFD5B2
accent
#D157BD
background
#FAF9FD
surface
#F4F1FA
border
#CECBD3
text
#0F0D14
muted
#7F7E83

Preview Lab

Preview with #786AC1

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

Preview Lab → · Contrast checker → · Palette generator →

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