Consider the code
\documentclass{article}
\usepackage{color,soul}
\begin{document}
\Huge
\setulcolor{red}
\setul{}{2.5pt}
\textcolor{blue}{\ul{\textbf{some text}}}
\end{document}
with output
This seems to be a simple, efficient way to underline in color with the flexibility of specifying the depth and thickness of the underlining.
Unfortunately, recall having encountered some undesirable conflicting effect within a document when using the soul package in the past; although I do not remember exactly what it was.
QUESTION: Is there a simple, alternative approach to the above code that does not make use of the soul package, whereby I can underline in color, as well as specify the depth and thickness of the underlining, and able to be compiled with pdflatex?

\underlinethe tricky parts of soul, ulem, lua-ul etc are allowing linebreaking, but it's not clear if you need that. – David Carlisle Dec 02 '21 at 08:02\underline, while at the same time change the color of that line, adjust the thickness, and alter its depth?? It is for these three reasons that I usedsoulin the MWE but requested an alternative approach because of complications with the package. – DDS Dec 02 '21 at 14:05\ruleit really isn't complicated to put a rule under an unbroken text\fboxhas\fboxsepand\fboxrulewhich does exactly what you want except on all 4 sides so doing the same but just on one side really has no issues at all, but you can not have\fboxmid-paragraph in text that breaks over th eline.... – David Carlisle Dec 02 '21 at 14:43