Do you what it stands for?
It is an abbreviation for “oll correct,” a popular slang misspelling of “all correct” at the time.
According to the History Channel, during the late 1830s, it was a favorite practice among younger, educated circles to misspell words intentionally, then abbreviate them and use them as slang when talking to one another (sound familiar?). Included in that list were “KY” for “No use” (“know yuse”), “KG” for “No go” (“Know go”), and “OW” for all right (“oll wright”).
Of all the abbreviations used during that time, OK was propelled into the limelight when it was printed in the Boston Morning Post as part of a joke. Its popularity exploded when it was picked up by contemporary politicians. When the incumbent president Martin Van Buren was up for reelection, his Democratic supporters organized a band of thugs to influence voters. This group was formally called the “O.K. Club,” which referred both to Van Buren’s nickname “Old Kinderhook” (based on his hometown of Kinderhook, New York), and to the term recently made popular in the papers.
At the same time, the opposing Whig Party made use of “OK” to denigrate Van Buren’s political mentor Andrew Jackson. According to the Whigs, Jackson invented the abbreviation “OK” to cover up his own misspelling of “all correct.”