CSS named color
Violet #EE82EE
Violet is a light magenta with the hex code #EE82EE, which converts to rgb(238, 130, 238). Open #EE82EE in the converter to tweak it.
Violet color values
| HEX | #EE82EE |
|---|---|
| HEX (shorthand) | — |
| RGB | rgb(238, 130, 238) |
| RGBA | rgba(238, 130, 238, 1) |
| 8-digit HEX | #EE82EEFF |
| HSL | hsl(300, 76%, 72%) |
| HSV / HSB | 300°, 45%, 93% |
| CMYK | 0%, 45%, 0%, 7% |
| RGB 0–1 | 0.933, 0.51, 0.933 |
| Decimal | 15631086 |
| CSS keyword | violet |
How #EE82EE converts to RGB
Split the hex code into three pairs and read each pair as a base-16 number: EE → 238, 82 → 130, EE → 238. That gives rgb(238, 130, 238). The step-by-step guide explains the math.
Shades of Violet
Mixed toward black in 10% steps. Click a swatch to copy its hex.
Tints of Violet
Mixed toward white in 10% steps.
Color harmonies
Hue rotations of Violet on the HSL color wheel, keeping saturation and lightness fixed. The color harmony guide explains when each scheme works.
Complementary
Analogous
Split-complementary
Triadic
Tetradic (square)
Contrast and accessibility
| Text | Background | Ratio | WCAG 2.x |
|---|---|---|---|
| White | Violet | 2.31:1 | Fail |
| Black | Violet | 9.06:1 | AAA |
Use black text on a violet background. Test any other pair in the contrast checker; thresholds are explained in the WCAG contrast guide.
Use Violet in CSS
.element {
color: violet; /* keyword */
background-color: #EE82EE; /* hex */
border-color: rgb(238 130 238 / 50%); /* 50% transparent */
}
Need it semi-transparent? Append an alpha byte: #EE82EE80 is Violet at 50% opacity. See RGBA & transparency.
Similar named colors
FAQ
What is the HEX code for Violet?
The CSS named color violet is #EE82EE in hexadecimal. In CSS you can write color: violet; or color: #EE82EE; — both produce the same pixel.
What is Violet in RGB?
Violet is rgb(238, 130, 238): red 238, green 130, blue 238 on the 0–255 scale. As normalized 0–1 floats that is (0.933, 0.51, 0.933).
Is white or black text more readable on Violet?
Black text is more readable. White on #EE82EE has a contrast ratio of 2.31:1 (Fail), black on #EE82EE has 9.06:1 (AAA). WCAG AA needs 4.5:1 for normal text.