Note that those colors differ from the normal Windows Console colors (which you can get from the "Properties" of a console window).
In Windows XP, QBASIC in full screen gives you the CGA colors, and in a window gives you the Windows colors. Note that color 6 changes between brown and yellow, based on whether it is full screen.
Here is QB64 code:
DIM i AS LONG
FOR i = 0 TO 15
PRINT HEX$(_PALETTECOLOR(i, 0))
|Response Title||Author and Date|
|Re: your numbers are slightly off...||Vince on Dec 10|
|For color intensity values 0 to 63 multiply by 4 for 0 to 255||on Dec 10|