Find Color Codes

Violet Color Codes

Violet is a mid-tone, saturated purple with the hex code #EE82EE, RGB values of 238, 130, 238 and an HSL value of hsl(300, 76%, 72%).

HEX#EE82EE
RGB238, 130, 238
HSLhsl(300, 76%, 72%)
HSV300°, 45%, 93%
CMYK0%, 45%, 0%, 7%
LAB69.70, 56.36, -36.81
CIELCHuv69.70, 84.74, 307.72°
Nearest Pantone
PMS 252 C ΔE 12.5 · approximate
Nearest CSS name
violet ΔE 0.0

Source CSS Color Module Level 4 keyword 'Violet'

Violet Color Hex Code

The Violet color hex code is #EE82EE. Those six digits are three pairs, EE for red, 82 for green and EE for blue, which is the same triplet a browser reads from the CSS value below.

#EE82EE

Violet Color RGB Code

The Violet RGB code is rgb(238, 130, 238). Red carries the most light at 238 of 255, which is what puts this color where it sits on the wheel.

rgb(238, 130, 238)

Violet Color HSV Code

The Violet HSV code is 300°, 45%, 93%. Read it as a hue of 300 degrees, 45% saturation and 93% value, which is the form most color pickers use because moving one number changes one thing.

300°, 45%, 93%

Violet Color CIELChuv Code

The Violet CIELCHuv code is 69.70, 84.74, 307.72°. Unlike hex or RGB this one is perceptual: lightness 70 means light to the eye rather than to the screen, and chroma 85 is how far it sits from grey.

69.70, 84.74, 307.72°

Tonal scale

What are Violet Color Palettes?

A shade mixes toward black, a tint toward white, a tone toward grey. Every step keeps the hue and is copy-ready.

Shades, toward black

Tints, toward white

Tones, toward grey

Open in the shades & tints generator →

Palettes

What are Violet Color Palette Codes?

Each of these is a hue rotation from #EE82EE. They are generated, not curated, so they are exact.

Complementary

Half a turn away is #82EE82, a light, saturated green. This is the widest separation the wheel offers, and the reason complementary pairs are the default for anything that must stand out. Both are saturated, so give the complement much less area than the base or the two will fight.

Analogous

Either side sit #B882EE and #EE82B8, 30 degrees out. Low tension by construction: useful when you need several related tones that still feel like one choice.

Triadic

#EEEE82 and #82EEEE complete an even 120 degree split. Three fully independent hues, so one has to lead: keep this base dominant and let the other two appear in small quantities.

Split-complementary

Instead of the direct complement, this takes the two hues either side of it: #B8EE82 and #82EEB8. Almost the same contrast, without the edge shimmer a true complementary pair produces at high saturation.

Tetradic

Two complementary pairs forming a rectangle: this base with #82EE82, and #EEB882 with #82B8EE. The richest of the five and the hardest to balance, so treat the darkest of the four as the lead and hold the other three well back.

See these on the color wheel →

Accessibility

Contrast checker: is Violet accessible?

Measured against white and against black, with a separate verdict for each element type. Small text, large text and UI components have different thresholds, so one pass or fail for the whole color would be wrong roughly a third of the time.

White background

2.32:1

2.32

contrast ratio on white background

ElementAAAAA
Small text needs 4.5:1 / 7:1 Fails Fails
Large text needs 3:1 / 4.5:1 Fails Fails
UI component needs 3:1 Fails n/a

Black background

9.06:1

9.06

contrast ratio on black background

ElementAAAAA
Small text needs 4.5:1 / 7:1 Passes Passes
Large text needs 3:1 / 4.5:1 Passes Passes
UI component needs 3:1 Passes n/a

At 2.32:1 against white, Violet is a fill color rather than a text color. Use it for surfaces, borders and large display type, and set the copy in ink. Text placed on it should be black, which gives 9.06:1.

Color vision

How Violet looks with color blindness

Around 300 million people see color differently from the way it is specified. Each card shows the actual color beside how it appears, and how common that form of vision is.

Protanopia

About 1% of men
actual

#C9C8DA

Violet changes substantially here. ΔE 60.7

No working red cones. Reds darken sharply and drift toward the same muddy olive as green.

Deuteranopia

About 1% of men
actual

#CED5D5

Violet changes substantially here. ΔE 70.5

No working green cones. With the milder deuteranomaly at nearer 6% of men, this is by far the most common form, and the one worth designing around.

Tritanopia

About 1 in 10,000
actual

#EAC9C4

Violet changes substantially here. ΔE 64.6

No working blue cones. Blues shift toward green and yellows toward pink. Rare, and unlike the others it is not sex-linked, so it affects men and women equally.

Achromatopsia

About 1 in 30,000
actual

#AAAAAA

Violet changes substantially here. ΔE 67.3

No color vision at all. Also a fair proxy for how the color survives a greyscale print or a failing screen.

To a deuteranope, the most common form, Violet reads as #CED5D5. That is a shift of ΔE 70.5, so it is a different color to roughly one man in sixteen. The widest shift is under deuteranopia, at ΔE 70.5. The rule this leads to needs no simulator: never let color be the only thing carrying a message. Add a label, an icon, or a clear difference in lightness, and the problem disappears for everyone.

Snippets

Using Violet in code

:root {
  --violet: #EE82EE;
}

.example {
  color: var(--violet);
}