Hex Color #FFFF00 - Yellow
Color Codes
HEX
#FFFF00
RGB
rgb(255, 255, 0)
HSL
hsl(60, 100%, 50%)
CMYK
cmyk(0%, 0%, 100%, 0%)
HSV
hsv(60, 100%, 100%)
Color Name
Yellow
Color Variations
Color Harmonies
Accessibility
WCAG Contrast Ratios
Text on White Background
Sample Text
Contrast Ratio: 1.07:1
Fail - WCAG AA (Normal Text)
Fail - WCAG AAA (Normal Text)
Text on Black Background
Sample Text
Contrast Ratio: 19.56:1
Pass - WCAG AA (Normal Text)
Pass - WCAG AAA (Normal Text)
Recommended Text Color
For best readability on this background color, use black text.
Similar Colors
Color in Use
Card with colored border
Background with 20% opacity
CSS Code
.element {
background-color: #FFFF00;
color: #FFFF00;
border-color: #FFFF00;
}
Tailwind CSS (with arbitrary values)
bg-[#FFFF00]
text-[#FFFF00]
border-[#FFFF00]
// Example usage:
<div className="bg-[#FFFF00]">