ColorsMine

#5B21B6 on black

Tailwind violet-800 — roughly Plum — measured against black to WCAG 2.2 and APCA.

2.34:1

contrast ratio · APCA Lc 15

The quick brown fox
…and the same at 13 px
✕ Body text (AA, 4.5:1) ✕ Body text (AAA, 7:1) ✕ Large text (AA, 3:1) ✕ Borders and icons (1.4.11, 3:1)

The nearest colour that passes

Keeping the hue and moving only the lightness, #A282F1 is the closest shade to #5B21B6 that clears 4.5:1 on black — at 7.00:1.

#5B21B6
2.34:1 — fails
#A282F1
7.00:1 — passes

Under colour blindness

Contrast is a lightness relationship, so a ratio survives colour blindness — but the pair can still lose the distinction it was carrying. This is the same two colours as seen with each dichromacy.

VisionForegroundBackgroundRatio
Normal #5B21B6 #000000 2.34:1
Protanopia
red-blind, ~1% of men
#4948A1 #000000 2.72:1
Deuteranopia
green-blind, ~6% of men
#4B4F9C #000000 2.90:1
Tritanopia
blue-blind, rare
#598E8A #000000 5.66:1

What the thresholds mean

Related

Same colour on white The full violet scale

Fixing one pair is not the job

ColorsMine checks every pairing a palette implies, in light and dark, and names the single change that moves the grade most.

Open ColorsMine