Color codes
- HEX
- #ffff00
- RGB
- rgb(255, 255, 0)
- HSL
- hsl(60 100% 50%)
- CMYK
- cmyk(0% 0% 100% 0%)
- OKLCH
- oklch(96.8% 0.211 110)
CSS named color
rgb(255, 255, 0)
1.07:1 on white
Fails WCAG AA
19.56:1 on black
AAA for normal and large text
yellow is written as #ffff00 in hex, rgb(255, 255, 0) in RGB and hsl(60 100% 50%) in HSL. Its lightness sits at 50%, which is why it reads fails wcag aa against white.
Need the color from a screenshot instead? Use theimage color picker, or convert a value with the color code converter.