Skip to content
Hex Color Picker

Violet Color

Violet is a light, bright pinkish purple. Its hex code is #EE82EE, which is rgb(238, 130, 238) in RGB, hsl(300, 76%, 72%) in HSL and cmyk(0%, 45%, 0%, 7%) in CMYK. It is a standard named color in CSS, so you can write it as violet in a stylesheet.

#EE82EEexactly violet

This is the CSS color violet #EE82EE

Use 3 or 6 digits, for example #1E90FF or 19F

For example rgb(30, 144, 255) or 30 144 255

For example hsl(210, 100%, 56%)

For example cmyk(88%, 44%, 0%, 0%)

Recent colors

Colors you pick appear here. They stay on this device.

By the Hex Color Picker Team. Updated

Violet color codes

  • Hex: #EE82EE
  • RGB: rgb(238, 130, 238)
  • HSL: hsl(300, 76%, 72%)
  • CMYK: cmyk(0%, 45%, 0%, 7%) (standard formula, not a print profile)
  • CSS name: violet

About the color violet

CSS violet has red and blue equal at about 93% and green near half. It is a playful, bright color, closer to pink-purple than the violet of a rainbow.

Where violet works

  • Creative and playful accents.
  • Light highlights and illustrations.
  • Tints in gradients that run from purple to pink.

Colors that go with violet

These named colors pair well with violet. Click one to see its page where it exists.

The complementary color of violet, directly opposite it on the color wheel, is #82EE82, closest to lightgreen. The analogous neighbors are #B882EE and #EE82B8, and the triadic partners are #EEEE82 and #82EEEE. The color palette generator builds a full scheme from any of them.

Named colors nearest to violet are orchid, plum, and hotpink.

Shades and tints of violet

Keeping the hue and saturation of violet and stepping the lightness from light to dark gives this scale. Use the lighter values for backgrounds and the darker ones for text and borders.

  • #FCE9FC
  • #F5B6F5
  • #EE84EE
  • #E751E7
  • #E01FE0
  • #AE18AE
  • #7B117B
  • #490A49
  • #160316

Contrast and accessibility

White text on violet has a contrast ratio of 2.3:1, and black text has 9.1:1. The WCAG AA guideline asks for at least 4.5:1 for body text and 3:1 for large text. Black text passes on violet, and white text does not.

White text on violet is below the guideline. Use dark text.

Common questions

What is the hex code for violet?

The hex code for violet is #EE82EE. In RGB it is rgb(238, 130, 238) and in HSL it is hsl(300, 76%, 72%).

What is the difference between violet and purple?

Purple is dark and subdued, and violet is light and vivid. They share the same hue, 300 degrees, and differ in lightness and saturation.

Is white text readable on violet?

Not for body text. White on violet has a contrast ratio of 2.3:1, below the 4.5:1 WCAG AA guideline. Black text has a ratio of 9.1:1, which passes.

More named colors

More color tools