#786FC4#786FC4

#786FC4 is a mid, vivid blue. Relative luminance 0.193; OKLCH L 58.8% C 0.127 H 286.6°. Best body text is #000000 at 4.87:1 contrast (WCAG AA passes).

Color values

HEX#786FC4
RGBrgb(120, 111, 196)
HSLhsl(246, 42%, 60%)
HSVhsv(246, 43%, 77%)
CMYKcmyk(38.8%, 43.4%, 0%, 23.1%)
CIE-LABlab(51.09, 24.15, -43.33)
CIE-LCHlch(51.09, 49.61, 299.13°)
OKLaboklab(58.79% 0.0365 -0.1221)
OKLCHoklch(58.79% 0.127 286.6)
XYZxyz(23.3912, 19.3467, 54.7157)
Luminance0.1935 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#786FC4 #BBC46F
analogous
#6F90C4 #786FC4 #A26FC4
triadic
#786FC4 #C4786F #6FC478
tetradic
#786FC4 #C46F90 #BBC46F #6FC4A2
square
#786FC4 #C46F90 #BBC46F #6FC4A2
split-complementary
#786FC4 #C4A26F #90C46F
monochromatic
#3E3683 #5247AE #786FC4 #A19AD6 #C9C6E8

Accessibility & contrast

On white

4.31
#786FC4 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.87
#786FC4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #786FC4
4.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##786FC4#FFFFFF#000000##000000
##786FC41.004.314.874.87
#FFFFFF4.311.0021.0021.00
#0000004.8721.001.001.00
##0000004.8721.001.001.00

Color blindness preview

Protanopia (red-blind)
#517CC7
Deuteranopia (green-blind)
#5077C2
Tritanopia (blue-blind)
#638090
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #786fc4;
/* rgb */ color: rgb(120, 111, 196);
/* oklch */ color: oklch(58.8% 0.127 286.6);
Tailwind
colors: {
  custom: {
    50: '#a298d6',
    500: '#786fc4',
    950: '#000000',
  },
}
SCSS
$custom: #786fc4;
$custom-light: #a298d6;
$custom-dark: #000000;
JSON
{
  "hex": "#786fc4",
  "rgb": {
    "r": 120,
    "g": 111,
    "b": 196
  },
  "hsl": {
    "h": 246.353,
    "s": 41.872,
    "l": 60.196
  },
  "oklch": {
    "l": 0.58787,
    "c": 0.12748,
    "h": 286.6
  },
  "luminance": 0.19347
}

Semantic roles & 50–950 ramp

primary
#786FC4
secondary
#D4D8B7
accent
#B531A7
background
#FAF9FD
surface
#F4F2FA
border
#CECCD3
text
#0F0D14
muted
#7F7E83

Preview Lab

Preview with #786FC4

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

Preview Lab → · Contrast checker → · Palette generator →

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