violet violet #ee82ee
violet is #ee82ee in hexadecimal, rgb(238, 130, 238) in decimal and hsl(300, 76, 72) in HSL. This page lists its harmonies, lightness steps and contrast against black and white — all copyable.
HEX · RGB · HSL
| HEX | #ee82ee |
| RGB | rgb(238, 130, 238) |
| HSL | hsl(300, 76%, 72%) |
Harmonies
Complementary
#81ee81Analogous
#b881ee#ee81b8Triadic
#eeee81#81eeeeSplit complementary
#b8ee81#81eeb8Tints & shades
#e750e7#ea66ea#ee81ee#f29cf2#f5b3f5Accessibility
| vs #ffffff | 2.32:1 |
| vs #000000 | 9.06:1 |
| Suggested text color | #000000 · 9.06:1 · WCAG AAA |
Similar named colors
FAQ
What is the HEX code for violet?
violet is #ee82ee in hex, rgb(238, 130, 238) in decimal and hsl(300, 76%, 72%) in HSL. In CSS you can write either color: violet; or color: #ee82ee; — they are equivalent.
What colors go with violet?
The complementary #81ee81 gives the strongest contrast, the analogous pair #b881ee / #ee81b8 is the safest, and the triad #eeee81 / #81eeee adds more tension. All three are derived from the 300° hue of #ee82ee.
Does #ee82ee read better on white or black?
Its contrast is 2.32:1 against white and 9.06:1 against black. Use #000000 text on it — that gives 9.06:1, which meets WCAG AAA.
Is a named color different from a hex color?
No. CSS named colors are just syntactic sugar for standard six-digit hex values; browsers resolve them to identical results in every modern engine.