Colors & AccessibilityLesson 94Free preview
Color Name Finder
This lesson is part of Web Developer Tools · All levels
Summary
The color name finder matches the value of a color such as HEX or RGB with the color name closest. CSS provides about 140 built-in color names that can be used directly on color properties. Since the name is approximate, use the HEX or RGB value when precision is required.
Key points
- CSS has about 140 standard color names.
- Color names are an easy-to-read alternative, not high-precision values
- The name finder selects the nearest color based on the distance in the color space
- Names such as rebeccapurple have a specific HEX value, which is #663399
- For brands or rigorous designs, keep the HEX or RGB values as the primary source
Full lesson
Code examples and quizzes
Full lessons, code examples, and quizzes are available to subscribers. 5 questions.