#786CA7#786CA7

#786CA7 is a mid, moderate violet. Relative luminance 0.175; OKLCH L 56.6% C 0.090 H 292.6°. Best body text is #FFFFFF at 4.67:1 contrast (WCAG AA passes).

Color values

HEX#786CA7
RGBrgb(120, 108, 167)
HSLhsl(252, 25%, 54%)
HSVhsv(252, 35%, 65%)
CMYKcmyk(28.1%, 35.3%, 0%, 34.5%)
CIE-LABlab(48.89, 18.08, -30.00)
CIE-LCHlch(48.89, 35.03, 301.09°)
OKLaboklab(56.65% 0.0348 -0.0834)
OKLCHoklch(56.65% 0.09 292.6)
XYZxyz(20.0816, 17.5079, 38.8731)
Luminance0.1751 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#786CA7 #9BA76C
analogous
#6C7EA7 #786CA7 #966CA7
triadic
#786CA7 #A7786C #6CA778
tetradic
#786CA7 #A76C7E #9BA76C #6CA796
square
#786CA7 #A76C7E #9BA76C #6CA796
split-complementary
#786CA7 #A7966C #7EA76C
monochromatic
#41395F #5B5086 #786CA7 #9B92BE #BEB9D5

Accessibility & contrast

On white

4.67
#786CA7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.50
#786CA7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #786CA7
4.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##786CA7#FFFFFF#000000##FFFFFF
##786CA71.004.674.504.67
#FFFFFF4.671.0021.001.00
#0000004.5021.001.0021.00
##FFFFFF4.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5C75A9
Deuteranopia (green-blind)
#5D73A5
Tritanopia (blue-blind)
#6E7682
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #786ca7;
/* rgb */ color: rgb(120, 108, 167);
/* oklch */ color: oklch(56.6% 0.090 292.6);
Tailwind
colors: {
  custom: {
    50: '#a096c1',
    500: '#786ca7',
    950: '#000000',
  },
}
SCSS
$custom: #786ca7;
$custom-light: #a096c1;
$custom-dark: #000000;
JSON
{
  "hex": "#786ca7",
  "rgb": {
    "r": 120,
    "g": 108,
    "b": 167
  },
  "hsl": {
    "h": 252.203,
    "s": 25.106,
    "l": 53.922
  },
  "oklch": {
    "l": 0.56647,
    "c": 0.09039,
    "h": 292.6
  },
  "luminance": 0.17508
}

Semantic roles & 50–950 ramp

primary
#786CA7
secondary
#BFC4AB
accent
#C266AF
background
#F9F9FB
surface
#F2F2F7
border
#CCCCD0
text
#0F0D12
muted
#7E7E81

Preview Lab

Preview with #786CA7

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

Preview Lab → · Contrast checker → · Palette generator →

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