Current XEP-0392 colors and contrasts

ColorContrast ratio
Background
Foreground hue
Foreground (no 5.3 adaption)
Foreground (with 5.3 adaption)

Demo (no 5.3):
D
This is a test message on a client using XEP-0392 without §5.3.
Demo user - 13:22

Demo (with 5.3):
D
This is a test message on a client using XEP-0392 with §5.3.
Demo user - 13:22

WCAG compliance required ratio:
Relevant SpecificationMinimum contrast ratio
AvatarWCAG 2.1 §1.4.11 Non-Text Contrast (Level AA)3:1
User nameWCAG 2.1 §1.4.3 Minumum Text Contrast (Level AA)4.5:1
User nameWCAG 2.1 §1.4.6 Enhanced Text Contrast (Level AAA)7:1

Suggested alternative

Alternative suggestion is to pick a lightness value (instead of the background-independent 50 suggested before), such that:
ColorContrast ratio
Foreground (alt avatar)
Foreground (alt text)
Demo (alt):
D
This is a test message on a client using XEP-0392 with alternative lightness calculation
Demo user - 13:22