Violet — #EE82EE

The hex code for violet is #EE82EE — rgb(238, 130, 238), hsl(300, 76%, 72%). Use it in CSS as color: #EE82EE;.

Violet is a light, bright purple — softer than purple, brighter than lavender. It is the color of violets and spring flowers.

Violet color codes — click to copy

HEX#EE82EE
RGBrgb(238, 130, 238)
HSLhsl(300, 76%, 72%)
HSVhsv(300, 45%, 93%)
CMYKcmyk(0%, 45%, 0%, 7%)

Shades, tints & tones of violet

Click any swatch to copy it.

Shades — mix with black
Tints — mix with white
Tones — mix with gray

Violet harmonies

Click a swatch to copy it.

Complementary
Analogous
Triadic
Split Complementary
Tetradic
Square
Monochromatic

Colors that go with violet

ColorHex
White#FFFFFF
Navy#000080
Green#008000
Gold#FFD700

Where violet is used

Use violet for playful, creative, and feminine brands. It feels lighter and friendlier than deep purple, and pairs well with white, navy, and mint green.

What violet is often associated with: Creativity, playfulness, gentleness, and spring.

Contrast — can you read text on violet?

White text on violet scores 2.32:1

Normal text: AA Fail   AAA Fail

Large text (18pt+, or 14pt bold+): AA Fail   AAA Fail

Black text scores 9.06:1

Normal text: AA Pass   AAA Pass

Large text (18pt+, or 14pt bold+): AA Pass   AAA Pass

Check any pair in the contrast checker →

How violet looks with color blindness

Simulated with the Machado matrices. Click a swatch to copy the simulated color.

Protanopia

#BFBED4

Deuteranopia

#C6CECE

Tritanopia

#E9BFBB

This is a simulation for design checks, not a vision test. See the color blind simulator for any palette.

Frequently asked questions

What is the hex code for violet?

The hex code for violet is #EE82EE.

What is the RGB of violet?

The RGB of violet is rgb(238, 130, 238).

What colors go with violet?

Colors that go well with violet include white (#FFFFFF), navy (#000080), green (#008000). See the pairings table on this page for the full list.

Is violet a good color for a website?

Violet works well as an accent or background — black text on it scores 9.06:1, which passes WCAG AA. Check any pair in the contrast checker before you ship it.

What does the color violet mean?

Creativity, playfulness, gentleness, and spring.

Related tools

Color Picker · Color Names · Palette Generator · Complementary Colors · Contrast Checker