Hex Color #ECB228 - Custom Color
Color Codes
HEX
#ECB228
RGB
rgb(236, 178, 40)
HSL
hsl(42, 84%, 54%)
CMYK
cmyk(0%, 25%, 83%, 7%)
HSV
hsv(42, 83%, 93%)
Color Name
Custom Color
Color Variations
Color Harmonies
Accessibility
WCAG Contrast Ratios
Text on White Background
Sample Text
Contrast Ratio: 1.92:1
Fail - WCAG AA (Normal Text)
Fail - WCAG AAA (Normal Text)
Text on Black Background
Sample Text
Contrast Ratio: 10.97:1
Pass - WCAG AA (Normal Text)
Pass - WCAG AAA (Normal Text)
Recommended Text Color
For best readability on this background color, use white text.
Similar Colors
Color in Use
Card with colored border
Background with 20% opacity
CSS Code
.element {
background-color: #ECB228;
color: #ECB228;
border-color: #ECB228;
}
Tailwind CSS (with arbitrary values)
bg-[#ECB228]
text-[#ECB228]
border-[#ECB228]
// Example usage:
<div className="bg-[#ECB228]">