Huebook

Violet

Violet is a dark, saturated violet color with the hex code #9A0EEA (hue 278°, saturation 89%, lightness 49%). CSS has a keyword with the same name, violet, but it is a different color (#EE82EE, see Violet (CSS)).

#9A0EEA
NameHEXRGBHSLCMYKOKLCH
Violet#9A0EEA154, 14, 234278°, 89%, 49%34, 94, 0, 854.6% 0.276 306

Contrast with white text 5.79:1, with black text 3.62:1 — use white text on Violet.

CSS also has a named color violet, but it is a different color: #EE82EE. In a stylesheet, use #9A0EEA for Violet, not the keyword.

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

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

Violet
  • HEX#9A0EEA
  • RGBrgb(154 14 234)
  • HSLhsl(278 89% 49%)

Variations of Violet

Text on Violet

White textThe quick brown fox5.79:1 · AA pass · AAA large text only
Black textThe quick brown fox3.62:1 · AA large text only · AAA fail

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 with color blindness

Normal #9A0EEA
Protanopia #0062EF
Deuteranopia #0066E6
Tritanopia #8B598A

How Violet 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

#ECCFFC
#CF87F8
#B23FF3
#8F0DD9
#5F0990
#300448

Colors that go with Violet

Six color schemes built on Violet with classic harmony rules. The complementary scheme pairs it with Becquerel (#4BEC13), the color opposite it on the color wheel.

Nearest CSS named colors

Gradients with Violet

Similar medium purple colors

Questions

What is the hex code for Violet?

#9A0EEA — RGB 154, 14, 234, HSL 278°, 89%, 49%.

Is Violet a warm or cool color?

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