Violet Color Code: Hex #EE82EE
The hex code for Violet is #EE82EE (the CSS keyword violet). Violet RGB code: rgb(238, 130, 238). The xkcd color survey gives #9A0EEA instead, which looks clearly different; both codes are below with their source.
#EE82EETop: the code browsers use#9A0EEABelow: compare edge to edgeViolet color codes: each Violet hex code in every format
Sources
Properties
- Hex codes
- 2 different ones in 3 color lists; they look clearly different
- Family
- purple
- Contrast
- 2.32:1 with white, 9.06:1 with black
- CSS keyword
- violet
- Character
- light, vivid
- Readable text on it
- black (AA)
The color name comes from Middle English and Old French violete, from Latin viola, the name of the violet flower, and is recorded in English from 1370.
A light, vivid purple with a warm cast. In code, violet gives exactly this web value. If you mean the color as people usually picture the name, the survey value #9A0EEA is closer: it is darker and more vivid.
Black text reads best on it; white text does not pass WCAG AA. Even pale tints keep its hue, which makes it easy to use for soft backgrounds. Next to Orchid, its closest named neighbour, it looks lighter, about as saturated and neither warmer nor cooler; beside Plum it looks darker, more vivid and warmer.
Colors that go with Violet
Complementary: the opposite of Violet
#EE82EEBlack text 9.06:1#4CD067Black text 10.53:1#F9BCF7Black text 13.56:1#2C803DWhite text 4.93:1
Analogous
#BC9DFFBlack text 9.41:1#EE82EEBlack text 9.06:1#FF83B3Black text 9.15:1#FBCFFABlack text 15.41:1
Triadic
#EE82EEBlack text 9.06:1#DCAA00Black text 9.79:1#00C8DCBlack text 10.30:1#FDE1FCBlack text 17.35:1
Monochrome
#422042White text 13.84:1#934E93White text 5.60:1#EE82EEBlack text 9.06:1#F6AAF4Black text 11.97:1#FBCFFABlack text 15.41:1
With neutrals
#EE82EEBlack text 9.06:1#FDE1FCBlack text 17.35:1#1F0B1FWhite text 18.65:1#A283A1Black text 6.30:1
Preview
Heading on Violet
Body text on this color, 9.06:1.
ButtonHeading in Violet
Text in this color on white, 2.32:1.
ButtonTints and shades
#FDE1FC#FBCFFA#F9BCF7#F6AAF4#F296F1#EE82EE#C068C0#934E93#693669#422042#1F0B1F
WhiteVioletBlack
Similar named colors
Where the name comes from
- Source: Wikipedia, “Violet (color)” (checked 3 Nov 2026)
- Listed in CSS Color 4, xkcd color survey, meodai color-name-list. About these lists.
Try it: