Violet color #EE82EE
rgb(238, 130, 238) · oklch(76.2% 0.186 327.2)
Violet (#EE82EE) is a light, strong, cool magenta. It mixes 93% red, 51% green and 93% blue, with a perceived lightness of 76.2% in OKLCH. Black text reads best on it (9.06:1 vs 2.31:1). The closest other CSS color is Orchid (#DA70D6). For people with protanopia it shifts the most, toward #79A1F2.
Violet color codes
| HEX | |
|---|---|
| RGB | |
| HSL | |
| HSV / HSB | |
| OKLCH | |
| CMYK | |
| CSS keyword |
Click a value to copy it. Convert any other color with the color converter.
Shades, tints and tones of violet
Shades mix violet with black, tints mix it with white, and tones mix it with gray. Mixing happens in OKLab, so the steps look evenly spaced.
Tints (lighter)
Shades (darker)
Tones (muted)
Violet as a UI color scale (50–950)
An 11-step scale for design systems, with violet placed at step 300. Copy it as a Tailwind v4 theme below.
Colors that go with violet
Harmonies are computed on the OKLCH hue wheel, keeping violet’s lightness and saturation where the sRGB gamut allows. Open any row in the palette generator to adjust it.
Complementary
EditThe base color and the hue directly opposite it. Maximum contrast; use one as the accent.
Split complementary
EditThe base plus the two hues beside its complement (±30°). Contrast with less tension than complementary.
Tetradic (rectangle)
EditTwo complementary pairs (rectangle: 0°, 60°, 180°, 240°). Rich; needs one dominant color.
Is violet accessible? Contrast with white and black
2.31:1
AA fail AA large fail AAA fail
9.06:1
AA pass AA large pass AAA pass
- As a background, violet works best with black text.
- For body text on white, use the darker variant (the closest color that passes AA, 4.5:1).
How violet looks with color blindness
Simulated with the Machado et al. (2009) model. Around 1 in 12 men and 1 in 200 women have some form of color vision deficiency.
#79a1f2 Red-blind. Reds look dark and brownish; red and green are easily confused.
#97afeb Green-blind, the most common strong form. Red, green, orange and brown look similar.
#f48dad Blue-blind and rare. Blue and green are confused, as are yellow and pink.
#aaaaaa Total color blindness, very rare. Only lightness differences are visible.
Colors similar to violet
The closest CSS named colors by perceptual distance (ΔE OK; under 2 is hard to tell apart).
Use violet in CSS and Tailwind
CSS custom properties
:root {
--violet: #ee82ee;
--violet-rgb: 238 130 238;
}
.text-violet { color: var(--violet); }
.bg-violet { background-color: var(--violet); }
Tailwind v4 theme
@theme {
--color-violet-50: #f7f6f7;
--color-violet-100: #f0ebf0;
--color-violet-200: #e8d3e7;
--color-violet-300: #ee82ee;
--color-violet-400: #e369e4;
--color-violet-500: #c745c9;
--color-violet-600: #a538a7;
--color-violet-700: #823183;
--color-violet-800: #632b63;
--color-violet-900: #4a254a;
--color-violet-950: #2b172b;
}
Make a gradient from violet: open the gradient generator.
Painting in Procreate or designing in Photoshop? See our palette packs: every color with HEX codes is free to browse, and the swatch files are a quick download.