Python change element color

Hi everyone,
I am trying to color code certain elements with python in the active view, but unfortunately was not able as Revit 2019 properties are a little bit different comparing to previous versions. Ido not know what to put for XXXXXXXXXXXXXXXX in code below.
Any help is greatly appreciated.

override = OverrideGraphicSettings()
override.SetSurfaceForegroundPatternId(XXXXXXXXXXXXXXXX)
override.SetSurfaceForegroundPatternColor(Color(127,255,0))
override.SetSurfaceBackgroundPatternColor(Color(127,255,0))
#override.SetCutFillPatternId(Pat[14].Id)
activeviewid=doc.ActiveView.Id

idoutput=
for i in cols:
colid=i.Id
idoutput.append(colid)
doc.ActiveView.SetElementOverrides(colid,override)
TransactionManager.Instance.TransactionTaskDone()

The method specifies a FillPatternId as its argument, however the documentation also notes that this is an obsolete property and to instead use the ForegroundPatternId property.

Thanks for the response.
I tried that too. Unfortunately that does not work either.