#786CC2#786CC2

#786CC2 is a mid, vivid blue. Relative luminance 0.186; OKLCH L 58.1% C 0.129 H 288.1°. Best body text is #000000 at 4.72:1 contrast (WCAG AA passes).

Color values

HEX#786CC2
RGBrgb(120, 108, 194)
HSLhsl(248, 41%, 59%)
HSVhsv(248, 44%, 76%)
CMYKcmyk(38.1%, 44.3%, 0%, 23.9%)
CIE-LABlab(50.23, 25.39, -43.55)
CIE-LCHlch(50.23, 50.41, 300.24°)
OKLaboklab(58.1% 0.0401 -0.1228)
OKLCHoklch(58.1% 0.129 288.1)
XYZxyz(22.8432, 18.6125, 53.4175)
Luminance0.1861 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#786CC2 #B6C26C
analogous
#6C8BC2 #786CC2 #A36CC2
triadic
#786CC2 #C2786C #6CC278
tetradic
#786CC2 #C26C8B #B6C26C #6CC2A3
square
#786CC2 #C26C8B #B6C26C #6CC2A3
split-complementary
#786CC2 #C2A36C #8BC26C
monochromatic
#3F357F #5547AA #786CC2 #A097D4 #C7C3E6

Accessibility & contrast

On white

4.45
#786CC2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.72
#786CC2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #786CC2
4.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##786CC2#FFFFFF#000000##000000
##786CC21.004.454.724.72
#FFFFFF4.451.0021.0021.00
#0000004.7221.001.001.00
##0000004.7221.001.001.00

Color blindness preview

Protanopia (red-blind)
#4E7AC5
Deuteranopia (green-blind)
#4D75C0
Tritanopia (blue-blind)
#647D8E
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #786cc2;
/* rgb */ color: rgb(120, 108, 194);
/* oklch */ color: oklch(58.1% 0.129 288.1);
Tailwind
colors: {
  custom: {
    50: '#a296d5',
    500: '#786cc2',
    950: '#000000',
  },
}
SCSS
$custom: #786cc2;
$custom-light: #a296d5;
$custom-dark: #000000;
JSON
{
  "hex": "#786cc2",
  "rgb": {
    "r": 120,
    "g": 108,
    "b": 194
  },
  "hsl": {
    "h": 248.372,
    "s": 41.346,
    "l": 59.216
  },
  "oklch": {
    "l": 0.58102,
    "c": 0.12917,
    "h": 288.1
  },
  "luminance": 0.18613
}

Semantic roles & 50–950 ramp

primary
#786CC2
secondary
#D1D6B4
accent
#D157C0
background
#FAF9FD
surface
#F4F2FA
border
#CECCD3
text
#0F0D14
muted
#7F7E83

Preview Lab

Preview with #786CC2

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

Preview Lab → · Contrast checker → · Palette generator →

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