CSS HTML Validator
- The fast, all-in-one, HTML, CSS, Link, SEO, spelling, and accessibility checker
for Windows, & htmlval for Mac and Linux
⯈
Help: rgb() CSS function
Home ▾
www.htmlvalidator.com
Download ▾
Download FREE Trial
Download Paid Product
Download Additional Dictionaries
Buy Now ▾
Buy New License
Buy Upgrade
Buy Priority Maintenance & Support
Buy for Classroom Use
Products ▾
CSS HTML Validator Enterprise
CSS HTML Validator Pro
CSS HTML Validator Home
htmlval for Linux
htmlval for Mac
What's New?
Compare Editions
General Product Information
Product Demos
Product Screen Shots
Product Testimonials
Support ▾
Main Support Page
Online Support Forum
FAQ
Send License Key
Update Your Cookie Preferences
Update Your Email Address
Update Your Email Preferences
Priority Support and Maintenance
Contact Us
More ▾
Site Map
Latest News
Our Policies
Why Validate Your Pages?
About Us
🔎 Search Site
Download
•
Buy
•
Products
•
Support
•
More/Search
The rgb() Function
Related:
color()
hsl()
hsla()
hwb()
lab()
lch()
oklab()
oklch()
rgb()
rgba()
Specifies a color in the sRGB color space by specifying red, green, and blue values.
Syntax for rgb()
Syntax
CSS
rgb(R,G,B), where R (red), G (green), and B (blue) are <integer> values from 0-255 or <percentage> values from 0%-100%
Recommended Links
CanIUse.com: Search "rgb()" (compatibility information)
CanIEmail.com: Search "rgb()" (email client compatibility information)
CSS1: Color units
CSS4: rgb()
MDN: rgb()
Search Engine Links (for more information)
Bing "CSS rgb function"
Google "CSS rgb function"
Help us improve this page:
Suggest a link or note
•
Report a problem