CSS Named Color Reference

Violet Color Code

Violet·#EE82EE

Purple FamilyCoolMid toneHigh saturationoklch(76.2% 0.186 327)
HEX
#EE82EEPrimary token
RGB
rgb(238, 130, 238)Screen values
HSL
hsl(300 76% 72%)Hue and lightness
CMYK
0, 45, 0, 7Print handoff
LAB
70, 56, -37Perceptual reference
OKLCH
oklch(76.2% 0.186 327)Modern perceptual

Violet is a mid-tone, high-saturation CSS named color at #EE82EE. If you searched for violet hex code, EE82EE, or violet RGB, this page gives the exact color value, conversion formats, contrast checks, nearby colors, and links into the lookup and converter workflows.

Best text colorDark text
Body text contrast7.40:1
Best UsePremium accents, creative tools, cultural moods, and experimental UI moments

Tonal Scale

100#FCE9FC
300#F7C6F7
500#F199F1
600#EE82EE
800#AB5EAB

Contrast Checks

White text on this color

Buttons, badges, and filled actions.

2.32:1Needs more separation

Dark text on this color

Large headings and selective UI.

7.40:1AAA-level contrast

This color on light surface

Links, borders, and icons on light UI.

2.20:1Needs more separation
Best text colorDark textContrast 7.40:1

Professional Reference

OKLCHoklch(76.2% 0.186 327)
Relative Luminance0.4032
Source TypeCSS Named Color
Classification
Purple FamilyCoolMid toneHigh saturation
Source Context
Source Type
CSS Named Color
System
CSS
Closest Matches
OrchidMaterial Purple A100Tailwind Fuchsia 400
Color Notes
  • Violet is kept as an exact CSS named color for #EE82EE.
  • Queries for violet color code, EE82EE, or violet RGB usually need the value first, then contrast and implementation context.

Accessibility Matrix

White text on this color

White text placed on the current color.

2.32:1Needs more separation

Dark text on this color

Dark text or headings on the current color.

7.40:1AAA

This color on light surface

Use this color for links, strokes, or icons on light UI.

2.20:1Needs more separation

This color on dark surface

Use this color inside dark shells for strokes, tags, or icons.

7.40:1AAA
Best text colorDark textContrast 7.40:1 · AAA

Where It Works

  • Use it for premium cues, creative workflows, badges, highlights, and experimental UI.
  • Deep purples usually support white text better than low-contrast dark text.
  • Pair with white, lavender tints, indigo neighbors, and cool neutrals.

Reference Notes

Last Updated
2026-09-03
Source Library
CSS Standard Colors
Methodology
Verified source values + site guidance
Color Notes

Violet is sourced from the published CSS Standard Colors library and retained here as a searchable reference swatch for product and interface reference work.

Hue Family

Expressive violets for premium and cultural moods.

Source Collections
CSS Named Colors

Related Colors

Palette Starting Points

Implementation Snippets

CSS Variables
:root {
  --color-violet: #EE82EE;
  --color-violet-rgb: 238 130 238;
}
Utility Class
class="bg-[#EE82EE] text-white"
class="hover:bg-[#AB5EAB] ring-1 ring-[#EE82EE]"
JSON Token
{
  "violet": "#EE82EE",
  "violetRgb": [238, 130, 238],
  "violetHsl": [300, 76, 72]
}