Skip to content
PantoneTools
pink
CSS Named Colors

Violet

violet · #EE82EE

HEX

#EE82EE

RGB

rgb(238, 130, 238)

CMYK

cmyk(0%, 45%, 0%, 7%)

HSL

hsl(300, 76%, 72%)

LAB

lab(69.7, 56.4, -36.8)

What is Violet?

Violet is the violet reference in the CSS Named Colors. Its sRGB value is #EE82EE (rgb 238, 130, 238). It sits in the pink family. The 147 named colors defined by the W3C CSS Color Module Level 4 specification — usable directly in CSS as keywords like 'crimson' or 'rebeccapurple'. See disclaimer for accuracy and trademark notes.

Accessibility

WCAG 2.1 contrast checks for Violet as a background.

Black text on this color

Sample text · 9.06 : 1
AA Normal
AA Large
AAA Normal
AAA Large

White text on this color

Sample text · 2.32 : 1
AA Normal
AA Large
AAA Normal
AAA Large

Shades, tints & tonal scale of Violet

An 11-step tonal scale derived from Violet (#EE82EE). Click any swatch to copy its HEX. Use these as a starting point for design tokens, hover states, and disabled states in a design system.

Copied #FEF5FE

50

#FEF5FE

#FEF5FE

Copied #FCEBFC

100

#FCEBFC

#FCEBFC

Copied #FAD7FA

200

#FAD7FA

#FAD7FA

Copied #F7C1F7

300

#F7C1F7

#F7C1F7

Copied #F2A1F2

400

#F2A1F2

#F2A1F2

Copied #EE82EE

500

#EE82EE

#EE82EE

Copied #CA6FCA

600

#CA6FCA

#CA6FCA

Copied #9B559B

700

#9B559B

#9B559B

Copied #6B3B6B

800

#6B3B6B

#6B3B6B

Copied #3C213C

900

#3C213C

#3C213C

Copied #1D101D

950

#1D101D

#1D101D

Lighter tints (mixed with white)

Copied #F19EF1

15%

#F19EF1

Copied #F3B4F3

30%

#F3B4F3

Copied #F6C7F6

45%

#F6C7F6

Copied #F8D8F8

60%

#F8D8F8

Copied #FBE8FB

75%

#FBE8FB

Darker shades (mixed with black)

Copied #DD79DD

15%

#DD79DD

Copied #CB6ECB

30%

#CB6ECB

Copied #B662B6

45%

#B662B6

Copied #9E549E

60%

#9E549E

Copied #7F437F

75%

#7F437F

Color harmonies for Violet

Classic color-theory harmonies derived from rotating the hue of Violet. Use these to build accent palettes, brand systems, and accessible UI color pairings.

Complementary

180° opposite — strongest contrast

Copied #EE82EE

#EE82EE

#EE82EE

Copied #81EE81

#81EE81

#81EE81

Triadic

Three colors 120° apart

Copied #EE82EE

#EE82EE

#EE82EE

Copied #EEEE81

#EEEE81

#EEEE81

Copied #81EEEE

#81EEEE

#81EEEE

Analogous

Two neighbors ±30° on the wheel

Copied #B881EE

#B881EE

#B881EE

Copied #EE82EE

#EE82EE

#EE82EE

Copied #EE81B8

#EE81B8

#EE81B8

Split-complementary

Base + two colors flanking its complement

Copied #EE82EE

#EE82EE

#EE82EE

Copied #B8EE81

#B8EE81

#B8EE81

Copied #81EEB8

#81EEB8

#81EEB8

Tetradic

Two complementary pairs

Copied #EE82EE

#EE82EE

#EE82EE

Copied #EE8181

#EE8181

#EE8181

Copied #81EE81

#81EE81

#81EE81

Copied #81EEEE

#81EEEE

#81EEEE

Square

Four colors evenly spaced 90° apart

Copied #EE82EE

#EE82EE

#EE82EE

Copied #EEB881

#EEB881

#EEB881

Copied #81EE81

#81EE81

#81EE81

Copied #81B8EE

#81B8EE

#81B8EE

Violet in every color space

Full conversion of Violet across the color spaces designers and developers actually use — including OKLCH (the perceptually-uniform space that powers Tailwind v4 and CSS Color Module Level 4) and HWB.

HEX

#EE82EE

RGB

rgb(238, 130, 238)

CMYK

cmyk(0%, 45%, 0%, 7%)

HSL

hsl(300, 76%, 72%)

HSV

hsv(300, 45%, 93%)

HWB

hwb(300 51% 7%)

CIE Lab

lab(69.7 56.4 -36.8)

OKLCH

oklch(76.2% 0.186 327.2)

XYZ (D65)

xyz(58.67, 40.32, 85.56)

Copy-ready code for Violet

Drop-in snippets for CSS, Tailwind, Sass, iOS Swift, and Android XML. Click the copy button on any snippet to put it on your clipboard.

CSS

color: #EE82EE;
background-color: #EE82EE;

CSS variable

:root {
  --color-violet: #EE82EE;
}

Tailwind config

// tailwind.config.js
colors: {
  'violet': '#EE82EE',
}

Sass

$color-violet: #EE82EE;

Swift UIColor

UIColor(red: 0.933, green: 0.510, blue: 0.933, alpha: 1.0)

Android XML

<color name="violet">#EE82EE</color>

Closest match in every color system

The nearest Violet equivalent in every other color system on this site, ranked by ΔE2000 perceptual distance. Useful when translating between design-system, web-standard, and industrial color references.

Closest in CSS Named Colors

Top 6 ΔE2000-closest entries within the same collection.

Top 6 ΔE2000-closest Pantone references. Cross-system matching is approximate — see disclaimer.

Top 6 ΔE2000-closest RAL Classic references for industrial coating cross-reference.

Copied #8F999F

RAL 7001

#8F999F

Silver grey

Copied #7E8B92

RAL 7000

#7E8B92

Squirrel grey

Copied #DE4C8A

RAL 4003

#DE4C8A

Heather violet

Copied #EA899A

RAL 3015

#EA899A

Light pink

Copied #9EA0A1

RAL 7004

#9EA0A1

Signal grey

Copied #A18594

RAL 4009

#A18594

Pastel violet

FAQ about Violet

What is the HEX code for Violet?

Violet (violet) has the HEX code #EE82EE. In RGB it is rgb(238, 130, 238), and in CMYK it is cmyk(0%, 45%, 0%, 7%).

What is the OKLCH value of Violet?

Violet converts to oklch(0.762 0.186 327.2). OKLCH is the perceptually uniform color space used by Tailwind v4 and CSS Color Module Level 4.

Is Violet accessible for body text?

Used as a background, Violet has a contrast ratio of 9.06:1 with black text and 2.32:1 with white text. WCAG 2.1 AA requires 4.5:1 for normal text. The current recommendation is to use black text and verify in real UI context.

What is the closest Pantone to Violet?

The closest Pantone reference to Violet by ΔE2000 perceptual distance is Pantone 251 C (#DD9CDF). Cross-system Pantone matching is approximate; for color-critical print work, verify with a physical Pantone guide.

What is the closest RAL color to Violet?

The closest RAL Classic reference to Violet by ΔE2000 distance is RAL 7001 (Silver grey, #8F999F). RAL is a German industrial coating standard commonly used for paint, powder coat, and architectural specification.

What is the complementary color of Violet?

The complementary color (180° opposite on the HSL color wheel) of Violet is #81EE81. Use it for high-contrast accents, error states, or call-to-action pairings.

Data provenance & source

CSS Named Colors (CSS Color Module Level 4)

The 147 named colors defined by the W3C CSS Color Module Level 4 specification. Origin: VGA (16) + X11 (rest) + 'rebeccapurple'. Use as a reference for web color names that all browsers natively support. Names like 'crimson' or 'rebeccapurple' work as CSS values without any framework.

Source type
derived
Confidence
high
License
W3C permissive document license
Last reviewed
2026-05-24

Workflow tags

css
web-standard
named-keyword
pink

CSS named colors are sRGB digital values defined for browsers. For print, convert to a process-appropriate color and proof against substrate.

CSS Named Colors · Violet — #EE82EE | PantoneTools