#786AC8#786AC8

#786AC8 is a mid, vivid blue. Relative luminance 0.185; OKLCH L 58.1% C 0.141 H 288.0°. Best body text is #000000 at 4.69:1 contrast (WCAG AA passes).

Color values

HEX#786AC8
RGBrgb(120, 106, 200)
HSLhsl(249, 46%, 60%)
HSVhsv(249, 47%, 78%)
CMYKcmyk(40%, 47%, 0%, 21.6%)
CIE-LABlab(50.06, 28.28, -47.26)
CIE-LCHlch(50.06, 55.07, 300.89°)
OKLaboklab(58.08% 0.0436 -0.1336)
OKLCHoklch(58.08% 0.141 288)
XYZxyz(23.3222, 18.4705, 56.9687)
Luminance0.1847 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#786AC8 #BAC86A
analogous
#6A8BC8 #786AC8 #A76AC8
triadic
#786AC8 #C8786A #6AC878
tetradic
#786AC8 #C86A8B #BAC86A #6AC8A7
square
#786AC8 #C86A8B #BAC86A #6AC8A7
split-complementary
#786AC8 #C8A76A #8BC86A
monochromatic
#3E3286 #5342B3 #786AC8 #A197D8 #C9C3E9

Accessibility & contrast

On white

4.47
#786AC8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.69
#786AC8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #786AC8
4.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##786AC8#FFFFFF#000000##000000
##786AC81.004.474.694.69
#FFFFFF4.471.0021.0021.00
#0000004.6921.001.001.00
##0000004.6921.001.001.00

Color blindness preview

Protanopia (red-blind)
#4679CB
Deuteranopia (green-blind)
#4675C6
Tritanopia (blue-blind)
#627D8F
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #786ac8;
/* rgb */ color: rgb(120, 106, 200);
/* oklch */ color: oklch(58.1% 0.141 288.0);
Tailwind
colors: {
  custom: {
    50: '#a394d9',
    500: '#786ac8',
    950: '#000000',
  },
}
SCSS
$custom: #786ac8;
$custom-light: #a394d9;
$custom-dark: #000000;
JSON
{
  "hex": "#786ac8",
  "rgb": {
    "r": 120,
    "g": 106,
    "b": 200
  },
  "hsl": {
    "h": 248.936,
    "s": 46.078,
    "l": 60
  },
  "oklch": {
    "l": 0.58081,
    "c": 0.14057,
    "h": 288
  },
  "luminance": 0.18471
}

Semantic roles & 50–950 ramp

primary
#786AC8
secondary
#D4D9B5
accent
#D652C2
background
#FAF9FD
surface
#F4F1FA
border
#CECBD3
text
#0F0D15
muted
#7F7E83

Preview Lab

Preview with #786AC8

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

Preview Lab → · Contrast checker → · Palette generator →

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