如何只生成深色html颜色代码用作字体颜色?

2le*_*ons 2 html

对于我的一个Web应用程序,我需要随机选择深色html颜色代码,我稍后将其用作字体颜色.因此,每次用户刷新页面时,字体的颜色都会发生变化.但它应该变成只有深色调.有什么办法吗?

我使用以下代码:

$color = sprintf("#%x%x%x", rand(0,255), rand(0,255), rand(0,255));
Run Code Online (Sandbox Code Playgroud)

dda*_*dda 5

而不是255,使用更低的限制,如92.