But ultimately, what you're going to run into is a color gamut problem. RGB and CMYK are just fundamentally different and RGB can produce colors and appearances that CMYK simply cannot. Also consider that when you view a file in illustrator in "CMYK" color mode, you're viewing an RGB interpretation of a CMYK image.
Sadly, David's suggestion (ensure File > Document Color Mode = RGB) doesn't fix the problem for me. I have a yellow colored object in my file. I'm aiming for RGB=(238, 200, 22), but even with File > Document Color Mode = RGB, when I Export as JPEG using Color Mode RGB and Embed ICC Profile: sRGB IEC61966-2.1, the pixels in my .jpg file are (232, 194, 22) instead.Adobe Illustrator files are created in two basic color formats – RGB and CMYK. RGB is used for publishing content on the web and CMYK for printing. If you are sending your document to a printer, make sure it is in CMYK format. You can set the new document to CMYK and change Illustrator’s default color scheme in the process. This article ishl2EJ4.