This is what I use for sacrificial magic, a modification of the rules in the A5e version of Adventures in Zeitgeist:
Sacrificial Magic
Any character with the Rite Master feat can potentially cast any spell of an appropriate level with the ritual tag. Additionally, any character with Constitution 13+ and Intelligence 5+ can cut themselves, bleed a copious amount, and meditate on their blood for ten minutes in order to cast a small selection of ritual spells. When doing this, the character expends any number of Hit Dice. More powerful spells require a payment of more Hit Dice, but the spells do not require any other material components, holy symbols, or spell foci (except those with a stated cost).
For two Hit Dice, they can cast augury.
For four Hit Dice, they can cast divination.
For five Hit Dice, they can cast contact other plane.
If the character has access to further ritual magic, it can be cast through blood sacrifice as well, on a one Hit Die per level of spell basis. Blood sacrifice can allow a character to cast a ritual spell they would otherwise be too low level to cast (a primary draw for the technique).
It should be noted that the blood sacrifice doesn’t have to be the caster’s blood. For sacrifices up to four Hit Dice, any creature’s blood can be used, with the understanding that a sacrifice equal to the creatures Hit Dice will kill the creature. Spells of 5th level or higher require a blood sacrifice of a sapient being to proceed. Doing so to an unwilling creature is an inherently evil act.