#786FC7#786FC7

#786FC7 is a mid, vivid blue. Relative luminance 0.195; OKLCH L 59.0% C 0.132 H 286.3°. Best body text is #000000 at 4.90:1 contrast (WCAG AA passes).

Color values

HEX#786FC7
RGBrgb(120, 111, 199)
HSLhsl(246, 44%, 61%)
HSVhsv(246, 44%, 78%)
CMYKcmyk(39.7%, 44.2%, 0%, 22%)
CIE-LABlab(51.25, 25.00, -44.80)
CIE-LCHlch(51.25, 51.30, 299.16°)
OKLaboklab(58.96% 0.037 -0.1264)
OKLCHoklch(58.96% 0.132 286.3)
XYZxyz(23.7361, 19.4847, 56.5320)
Luminance0.1948 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#786FC7 #BEC76F
analogous
#6F92C7 #786FC7 #A46FC7
triadic
#786FC7 #C7786F #6FC778
tetradic
#786FC7 #C76F92 #BEC76F #6FC7A4
square
#786FC7 #C76F92 #BEC76F #6FC7A4
split-complementary
#786FC7 #C7A46F #92C76F
monochromatic
#3D3587 #5146B3 #786FC7 #A19BD8 #CBC7E9

Accessibility & contrast

On white

4.29
#786FC7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.90
#786FC7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #786FC7
4.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##786FC7#FFFFFF#000000##000000
##786FC71.004.294.904.90
#FFFFFF4.291.0021.0021.00
#0000004.9021.001.001.00
##0000004.9021.001.001.00

Color blindness preview

Protanopia (red-blind)
#4F7CCA
Deuteranopia (green-blind)
#4E78C5
Tritanopia (blue-blind)
#628091
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #786fc7;
/* rgb */ color: rgb(120, 111, 199);
/* oklch */ color: oklch(59.0% 0.132 286.3);
Tailwind
colors: {
  custom: {
    50: '#a298d8',
    500: '#786fc7',
    950: '#000000',
  },
}
SCSS
$custom: #786fc7;
$custom-light: #a298d8;
$custom-dark: #000000;
JSON
{
  "hex": "#786fc7",
  "rgb": {
    "r": 120,
    "g": 111,
    "b": 199
  },
  "hsl": {
    "h": 246.136,
    "s": 44,
    "l": 60.784
  },
  "oklch": {
    "l": 0.5896,
    "c": 0.13172,
    "h": 286.3
  },
  "luminance": 0.19485
}

Semantic roles & 50–950 ramp

primary
#786FC7
secondary
#D6DAB8
accent
#B72EA9
background
#FAF9FD
surface
#F4F2FA
border
#CECCD3
text
#0F0D14
muted
#7F7E83

Preview Lab

Preview with #786FC7

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

Preview Lab → · Contrast checker → · Palette generator →

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