#786EC6#786EC6

#786EC6 is a mid, vivid blue. Relative luminance 0.192; OKLCH L 58.7% C 0.132 H 286.8°. Best body text is #000000 at 4.84:1 contrast (WCAG AA passes).

Color values

HEX#786EC6
RGBrgb(120, 110, 198)
HSLhsl(247, 44%, 60%)
HSVhsv(247, 44%, 78%)
CMYKcmyk(39.4%, 44.4%, 0%, 22.4%)
CIE-LABlab(50.95, 25.32, -44.71)
CIE-LCHlch(50.95, 51.38, 299.52°)
OKLaboklab(58.71% 0.0381 -0.1262)
OKLCHoklch(58.71% 0.132 286.8)
XYZxyz(23.5119, 19.2214, 55.8864)
Luminance0.1922 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#786EC6 #BCC66E
analogous
#6E90C6 #786EC6 #A46EC6
triadic
#786EC6 #C6786E #6EC678
tetradic
#786EC6 #C66E90 #BCC66E #6EC6A4
square
#786EC6 #C66E90 #BCC66E #6EC6A4
split-complementary
#786EC6 #C6A46E #90C66E
monochromatic
#3E3485 #5246B1 #786EC6 #A19AD7 #CAC6E9

Accessibility & contrast

On white

4.33
#786EC6 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.84
#786EC6 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #786EC6
4.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##786EC6#FFFFFF#000000##000000
##786EC61.004.334.844.84
#FFFFFF4.331.0021.0021.00
#0000004.8421.001.001.00
##0000004.8421.001.001.00

Color blindness preview

Protanopia (red-blind)
#4E7CC9
Deuteranopia (green-blind)
#4D77C4
Tritanopia (blue-blind)
#627F90
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #786ec6;
/* rgb */ color: rgb(120, 110, 198);
/* oklch */ color: oklch(58.7% 0.132 286.8);
Tailwind
colors: {
  custom: {
    50: '#a297d8',
    500: '#786ec6',
    950: '#000000',
  },
}
SCSS
$custom: #786ec6;
$custom-light: #a297d8;
$custom-dark: #000000;
JSON
{
  "hex": "#786ec6",
  "rgb": {
    "r": 120,
    "g": 110,
    "b": 198
  },
  "hsl": {
    "h": 246.818,
    "s": 43.564,
    "l": 60.392
  },
  "oklch": {
    "l": 0.58712,
    "c": 0.1318,
    "h": 286.8
  },
  "luminance": 0.19222
}

Semantic roles & 50–950 ramp

primary
#786EC6
secondary
#D5D9B7
accent
#B72FA7
background
#FAF9FD
surface
#F4F2FA
border
#CECCD3
text
#0F0D14
muted
#7F7E83

Preview Lab

Preview with #786EC6

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

Preview Lab → · Contrast checker → · Palette generator →

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