#786EC7#786EC7

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

Color values

HEX#786EC7
RGBrgb(120, 110, 199)
HSLhsl(247, 44%, 61%)
HSVhsv(247, 45%, 78%)
CMYKcmyk(39.7%, 44.7%, 0%, 22%)
CIE-LABlab(51.00, 25.60, -45.20)
CIE-LCHlch(51.00, 51.94, 299.53°)
OKLaboklab(58.77% 0.0383 -0.1276)
OKLCHoklch(58.77% 0.133 286.7)
XYZxyz(23.6276, 19.2676, 56.4959)
Luminance0.1927 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#786EC7 #BDC76E
analogous
#6E90C7 #786EC7 #A56EC7
triadic
#786EC7 #C7786E #6EC778
tetradic
#786EC7 #C76E90 #BDC76E #6EC7A5
square
#786EC7 #C76E90 #BDC76E #6EC7A5
split-complementary
#786EC7 #C7A56E #90C76E
monochromatic
#3D3487 #5145B3 #786EC7 #A19AD8 #CAC6E9

Accessibility & contrast

On white

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

On black

4.85
#786EC7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #786EC7
4.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##786EC7#FFFFFF#000000##000000
##786EC71.004.334.854.85
#FFFFFF4.331.0021.0021.00
#0000004.8521.001.001.00
##0000004.8521.001.001.00

Color blindness preview

Protanopia (red-blind)
#4E7CCA
Deuteranopia (green-blind)
#4C77C5
Tritanopia (blue-blind)
#628091
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #786ec7;
/* rgb */ color: rgb(120, 110, 199);
/* oklch */ color: oklch(58.8% 0.133 286.7);
Tailwind
colors: {
  custom: {
    50: '#a297d8',
    500: '#786ec7',
    950: '#000000',
  },
}
SCSS
$custom: #786ec7;
$custom-light: #a297d8;
$custom-dark: #000000;
JSON
{
  "hex": "#786ec7",
  "rgb": {
    "r": 120,
    "g": 110,
    "b": 199
  },
  "hsl": {
    "h": 246.742,
    "s": 44.279,
    "l": 60.588
  },
  "oklch": {
    "l": 0.5877,
    "c": 0.13321,
    "h": 286.7
  },
  "luminance": 0.19268
}

Semantic roles & 50–950 ramp

primary
#786EC7
secondary
#D6D9B7
accent
#B72EA8
background
#FAF9FD
surface
#F4F2FA
border
#CECCD3
text
#0F0D14
muted
#7F7E83

Preview Lab

Preview with #786EC7

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

Preview Lab → · Contrast checker → · Palette generator →

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