#786ACC#786ACC

#786ACC is a mid, vivid blue. Relative luminance 0.187; OKLCH L 58.3% C 0.146 H 287.5°. Best body text is #000000 at 4.73:1 contrast (WCAG AA passes).

Color values

HEX#786ACC
RGBrgb(120, 106, 204)
HSLhsl(249, 49%, 61%)
HSVhsv(249, 48%, 80%)
CMYKcmyk(41.2%, 48%, 0%, 20%)
CIE-LABlab(50.29, 29.41, -49.19)
CIE-LCHlch(50.29, 57.31, 300.88°)
OKLaboklab(58.32% 0.044 -0.1393)
OKLCHoklch(58.32% 0.146 287.5)
XYZxyz(23.7958, 18.6599, 59.4630)
Luminance0.1866 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#786ACC #BECC6A
analogous
#6A8DCC #786ACC #A96ACC
triadic
#786ACC #CC786A #6ACC78
tetradic
#786ACC #CC6A8D #BECC6A #6ACCA9
square
#786ACC #CC6A8D #BECC6A #6ACCA9
split-complementary
#786ACC #CCA96A #8DCC6A
monochromatic
#3D308C #513FB9 #786ACC #A198DC #CBC5EB

Accessibility & contrast

On white

4.44
#786ACC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.73
#786ACC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #786ACC
4.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##786ACC#FFFFFF#000000##000000
##786ACC1.004.444.734.73
#FFFFFF4.441.0021.0021.00
#0000004.7321.001.001.00
##0000004.7321.001.001.00

Color blindness preview

Protanopia (red-blind)
#437AD0
Deuteranopia (green-blind)
#4375CA
Tritanopia (blue-blind)
#607E91
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #786acc;
/* rgb */ color: rgb(120, 106, 204);
/* oklch */ color: oklch(58.3% 0.146 287.5);
Tailwind
colors: {
  custom: {
    50: '#a395dc',
    500: '#786acc',
    950: '#000000',
  },
}
SCSS
$custom: #786acc;
$custom-light: #a395dc;
$custom-dark: #000000;
JSON
{
  "hex": "#786acc",
  "rgb": {
    "r": 120,
    "g": 106,
    "b": 204
  },
  "hsl": {
    "h": 248.571,
    "s": 49,
    "l": 60.784
  },
  "oklch": {
    "l": 0.58323,
    "c": 0.14609,
    "h": 287.5
  },
  "luminance": 0.18661
}

Semantic roles & 50–950 ramp

primary
#786ACC
secondary
#D6DBB6
accent
#BC29A7
background
#FAF9FD
surface
#F4F1FB
border
#CECBD4
text
#0F0D15
muted
#7F7E83

Preview Lab

Preview with #786ACC

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

Preview Lab → · Contrast checker → · Palette generator →

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