Huebook

Violet (CSS)

Violet (CSS) is a light, saturated purple color with the hex code #EE82EE (hue 300°, saturation 76%, lightness 72%). It is also the CSS named color violet.

#EE82EE
NameHEXRGBHSLCMYKOKLCH
Violet (CSS)#EE82EE238, 130, 238300°, 76%, 72%0, 45, 0, 776.2% 0.186 327

Contrast with white text 2.32:1, with black text 9.06:1 — use black text on Violet (CSS).

violet is one of the 148 named colors in CSS, with exactly this value, so color: violet works in any browser without a hex code.

Huebook · Maintained by Iris Marlow (pen name) · automated checks · Data: color-name-list (MIT) for names; CSS Color Module Level 4 (W3C) for CSS named colors · Updated · How the checks work

Adjust Violet (CSS)

Move the sliders to make Violet (CSS) lighter, darker, more or less vivid, or shift its hue. The nearest named colors update as you go.

Violet (CSS)
  • HEX#EE82EE
  • RGBrgb(238 130 238)
  • HSLhsl(300 76% 72%)

Variations of Violet (CSS)

Text on Violet (CSS)

White textThe quick brown fox2.32:1 · AA fail · AAA fail
Black textThe quick brown fox9.06:1 · AA pass · AAA pass

WCAG 2 asks for 4.5:1 for body text and 3:1 for large text (AA), and 7:1 and 4.5:1 for the stricter AAA level.

Violet (CSS) with color blindness

Normal #EE82EE
Protanopia #79A1F2
Deuteranopia #97AFEB
Tritanopia #F48DAD

How Violet (CSS) appears with a complete loss of red (protanopia), green (deuteranopia) or blue (tritanopia) cones, simulated with the Machado, Oliveira and Fernandes (2009) model. Red-green color blindness affects about 1 in 12 men and 1 in 200 women, so do not rely on color alone to carry meaning.

Tints and shades

#F9D2F9
#F08FF0
#E74BE7
#CA1BCA
#871287
#430943

Colors that go with Violet (CSS)

Six color schemes built on Violet (CSS) with classic harmony rules. The complementary scheme pairs it with Ulva Lactuca Green (#90EE90), the color opposite it on the color wheel.

Nearest CSS named colors

Similar light pink colors

Questions

What is the hex code for Violet (CSS)?

#EE82EE — RGB 238, 130, 238, HSL 300°, 76%, 72%.

Is Violet (CSS) a warm or cool color?

Cool — its hue sits at 300° on the color wheel.