Go to Settings > Accessibility > Display, and scroll down to "Pointer". You can select the outline and fill colour separately. (At least on Ventura; I don't know which macOS version first introduced this option.)
As an aside, the Accessibility settings in both macOS and iOS are generally worth looking through, whether or not you consider yourself disabled. There's a lot of general quality-of-life settings and some neat features hidden there!
As an aside, the Accessibility settings in both macOS and iOS are generally worth looking through, whether or not you consider yourself disabled. There's a lot of general quality-of-life settings and some neat features hidden there!