\documentclass{article}
\usepackage{fontspec}
\usepackage{xcolor}
\usepackage{xepersian}

\def\MyColor{black}
\def\MyDarkness{80}
\newcommand{\MyLightColor}[1]{{\color{\MyColor!\MyDarkness}#1}}

\begin{document}

\lr{\noindent
This is a test, \\
\MyLightColor{This is a test A,} \\
\def\MyColor{black}
\def\MyDarkness{60}
\MyLightColor{This is a test B,} \\
\def\MyColor{black}
\def\MyDarkness{40}
\MyLightColor{This is a test C,} \\
\def\MyColor{black}
\def\MyDarkness{20}
\MyLightColor{This is a test D,} \\
}

\lr{\noindent
\def\MyColor{blue} \\
\def\MyDarkness{80} \\
\MyLightColor{This is a test A,} \\
\def\MyColor{blue}
\def\MyDarkness{60}
\MyLightColor{This is a test B,} \\
\def\MyColor{blue}
\def\MyDarkness{40}
\MyLightColor{This is a test C,} \\
\def\MyColor{blue}
\def\MyDarkness{20}
\MyLightColor{This is a test D,} \\
}

\def\MyColor{black}
\def\MyDarkness{50}
این یک آزمایش است.%
\LTRfootnote{\MyLightColor{This is a test.}}
این یک آزمایش است.%
\footnote{\MyLightColor{
این یک آزمایش است.
}}

\def\MyColor{blue}
\def\MyDarkness{95}
{\color{\MyColor}
این یک آزمایش است.%
\LTRfootnote{\MyLightColor{This is a test.}}
این یک آزمایش است.%
\footnote{\MyLightColor{
این یک آزمایش است.
}}

\def\MyColor{blue}
\def\MyDarkness{50}
{\color{\MyColor!\MyDarkness}
این یک آزمایش است.%
\LTRfootnote{\MyLightColor{This is a test.}}
این یک آزمایش است.%
\footnote{\MyLightColor{
این یک آزمایش است.
}}

\end{document}
