violet

#EE82EE · CSS color name

violet is the CSS color name for #ee82ee: RGB(238, 130, 238), HSL(300°, 76%, 72%), CMYK(0%, 45%, 0%, 7%). Contrast is 2.32:1 on white and 9.06:1 on black. See shades, harmonies and color-blindness simulation.

Open in Picker Generate Scheme

Color Codes

HEX#ee82ee
CSS color nameviolet
RGBrgb(238 130 238)
RGB (legacy)rgb(238, 130, 238)
RGB %rgb(93% 51% 93%)
HSLhsl(300 76% 72%)
HSV / HSBhsv(300, 45%, 93%)
HWBhwb(300 51% 7%)
CMYKcmyk(0%, 45%, 0%, 7%)
CIELAB (D50)lab(69.62 53.29 -36.54)
LCHlch(69.62 64.62 325.57)
OKLaboklab(0.7619 0.1565 -0.1008)
OKLCHoklch(0.7619 0.1861 327.21)
Decimal15631086

Properties

Color TonePurple, Crimson, Magenta
Closest named colorviolet ΔE 0
Closest web-safe color#ff99ff
Hue300°
Saturation (HSL / HSV)76% / 45%
Lightness (HSL)72%
Brightness or Value (HSV)93%
Luminance (Rec.601 / Rec.709)68% / 63%
Relative luminance (WCAG)0.4032
Red / Green / Blue238 / 130 / 238

WCAG 2.2 Contrast Ratio

On White (#ffffff)
2.32:1
AA Normal (4.5:1) · FailAA Large (3:1) · FailAAA Normal (7:1) · Fail
On Black (#000000)
9.06:1
AA Normal (4.5:1) · PassAA Large (3:1) · PassAAA Normal (7:1) · Pass
Aa Bb 123

APCA Contrast Lc (reference) — As text on white / black: Lc 45.3 / -56.8 · As background with white / black text: Lc -50.2 / 58.7

Lightness Scale (OKLCH 50–950)

Eleven steps that change only perceived lightness while keeping hue and chroma — ready to use as design-system color tokens.

Tints (mixed with white)

Shades (mixed with black)

Color Harmonies

Color Vision Deficiency Simulation

Estimated appearance of this color for people with color vision deficiencies (Machado 2009).

Similar Named Colors

Use in CSS

:root {
  --color-violet: #ee82ee;
  --color-violet-oklch: oklch(76.19% 0.1861 327.21);
}
.text { color: var(--color-violet); }
.background { background-color: var(--color-violet); }
.border { border: 1px solid rgb(238 130 238 / 50%); }
/* Tailwind CSS */
<div class="bg-[#ee82ee] text-[#ee82ee] border-[#ee82ee]">