Welcome to Orime!
The Math of Divination
Your Purple Star chart isn't interpreted — it's calculated.
Every palace, every star position, every life-domain reading follows from a deterministic algorithm applied to your birth date, time, and gender. Here's how it works.
The structure
Zi Wei Dou Shu (紫微斗數) — Purple Star Astrology — organizes 108 named stars into a fixed grid of 12 life-domain palaces.
The 12 palaces map to the main domains of a life: Life, Siblings, Spouse, Children, Wealth, Health, Travel, Friends, Career, Property, Karma, and Parents.
Which star lands in which palace is determined entirely by your birth data: year, month, day, and hour in the Chinese lunisolar calendar, plus gender. No interpretation, no intuition — pure calculation.
Finding the Life Palace
The Life Palace (命宮) is the foundation. Every other palace is defined relative to it in a fixed clockwise sequence.
To find it, you need two numbers from your birth data: the birth month (1–12) in the Chinese calendar, and the birth hour branch (1–12) — the Earthly Branch corresponding to your two-hour birth window.
The result is a number from 0 to 11, which maps to one of 12 fixed positions in the palace grid.
Once the Life Palace is placed, all 11 remaining palaces fall into their positions automatically — they always appear in the same fixed order around the grid.
Placing the emperor star
Zi Wei (紫微), the Purple Star, is the most important star in the system. Where it lands determines the character of the entire chart.
Its palace is determined by two inputs: your lunar birth day (1–30), and your Five Element Number (五行局) — a value of 2, 3, 4, 5, or 6 derived from the year's Heavenly Stem and Earthly Branch pair.
// Five Element Numbers by year stem-branch combination
// 水二局 (Water 2), 木三局 (Wood 3), 金四局 (Metal 4)
// 土五局 (Earth 5), 火六局 (Fire 6)
function getZiWeiPalace(lunarDay, fiveElementNumber) {
// Look up the Zi Wei position table for this element number
// Each row is a birth day (1–30), value is palace index (0–11)
return ZI_WEI_TABLE[fiveElementNumber][lunarDay - 1];
}The Five Element Number sets the cycle length for the lookup table. A cycle of 2 means Zi Wei moves through the 12 palaces faster as birth days increase; a cycle of 6 means it moves more slowly.
Once Zi Wei is placed, all other major stars — Tian Ji, Tai Yang, Wu Qu, Tian Tong, and the remaining 103 — follow at fixed offsets from Zi Wei's position. The whole chart unfolds from that one anchor.
How many distinct charts exist
On paper, the input variables multiply out to a large number of combinations:
But many of these produce identical palace and star configurations. When you collapse redundant outcomes, the number of meaningfully distinct chart types is approximately 1,728 — which is 12³.
Compare that to Western astrology, where birth time is often omitted entirely. Zi Wei requires the birth hour — without it, the Life Palace can't be calculated and the whole chart is undefined.
That's not a limitation. It's the system being precise about what it needs.
Birth date + time + gender
Convert to Chinese lunisolar calendar
Find birth month & hour branch (1–12)
Life Palace = (month + hour branch) mod 12
Anchor palace grid to Life Palace
Assign Zi Wei star by birth day + Five Element Number
Place remaining 107 stars by fixed offsets from Zi Wei
In this guide