Violet (CSS)
Violet (CSS) is a light, saturated purple color with the hex code #EE82EE (hue 300°, saturation 76%, lightness 72%). It is also the CSS named color violet.
- HEX
#EE82EE - RGB
rgb(238 130 238) - HSL
hsl(300 76% 72%) - OKLCH
oklch(76.2% 0.186 327)
| Name | HEX | RGB | HSL | CMYK | OKLCH | |
|---|---|---|---|---|---|---|
| Violet (CSS) | #EE82EE | 238, 130, 238 | 300°, 76%, 72% | 0, 45, 0, 7 | 76.2% 0.186 327 |
Contrast with white text 2.32:1, with black text 9.06:1 — use black text on Violet (CSS).
violet is one of the 148 named colors in CSS, with exactly this value, so color: violet works in any browser without a hex code.
Huebook · Maintained by Iris Marlow (pen name) · automated checks · Data: color-name-list (MIT) for names; CSS Color Module Level 4 (W3C) for CSS named colors · Updated · How the checks work
Adjust Violet (CSS)
Move the sliders to make Violet (CSS) lighter, darker, more or less vivid, or shift its hue. The nearest named colors update as you go.
- HEX
#EE82EE - RGB
rgb(238 130 238) - HSL
hsl(300 76% 72%)
Variations of Violet (CSS)
Text on Violet (CSS)
WCAG 2 asks for 4.5:1 for body text and 3:1 for large text (AA), and 7:1 and 4.5:1 for the stricter AAA level.
Violet (CSS) with color blindness
How Violet (CSS) appears with a complete loss of red (protanopia), green (deuteranopia) or blue (tritanopia) cones, simulated with the Machado, Oliveira and Fernandes (2009) model. Red-green color blindness affects about 1 in 12 men and 1 in 200 women, so do not rely on color alone to carry meaning.
Tints and shades
Colors that go with Violet (CSS)
Six color schemes built on Violet (CSS) with classic harmony rules. The complementary scheme pairs it with Ulva Lactuca Green (#90EE90), the color opposite it on the color wheel.
- Violet (CSS) Complementary Color Scheme#EE82EE#FED0FC#90EE90#2CE335#DDFFDD
- Violet (CSS) Analogous Color Scheme#8B88F8#BF8FE5#EE82EE#F485AC#F08080
- Violet (CSS) Triadic Color Scheme#EE82EE#EEEE88#88EEEE#FFDBF7#EBE734
- Violet (CSS) Split-complementary Color Scheme#EE82EE#BBEE88#80F9AD#FF33EE#DDF3C2
- Violet (CSS) Tetradic Color Scheme#EE82EE#EAB781#90EE90#88BBEE#FFDBF7
- Violet (CSS) Monochromatic Color Scheme#AC1DB8#FF33EE#EE82EE#FCCCF5#FCEBFA
Nearest CSS named colors
- Orchid (CSS) (
orchid): Orchid (CSS) (#DA70D6) is darker than Violet (CSS) (relative luminance 0.313 vs 0.403) and less saturated, with the same hue. - Plum (CSS) (
plum): Plum (CSS) (#DDA0DD) is lighter than Violet (CSS) (relative luminance 0.457 vs 0.403) and less saturated, with the same hue. - Hot Pink (CSS) (
hotpink): Hot Pink (CSS) (#FF69B4) is darker than Violet (CSS) (relative luminance 0.347 vs 0.403) and more saturated, with its hue 30° away. - Pale Violet Red (
palevioletred): Pale Violet Red (#DB7093) is darker than Violet (CSS) (relative luminance 0.288 vs 0.403) and less saturated, with its hue 40° away.
Similar light pink colors
- Always Rosey#E79DB3
- Atomic Pink#FB7EFD
- Avant-Garde Pink#FF77EE
- Barbiecore#E15ACB
- Blush d’Amour#DE5D83
- Blushing Sky#D9B1D6
- Bubblegum#FF85FF
- Bubblegum Beam#F887C7
- Bubblegum Kisses#F092D6
- Candy Floss#E8A7E2
- Candy Pink#FF63E9
- Classy Mauve#BB99AA
- Death of a Star#E760D2
- Devilish Diva#CE7790
- Diva Mecha#EE99EE
- Diva Pink#FA427E
- Dream Setting#FF77BB
- Dripping Wisteria#BB99BB
Questions
What is the hex code for Violet (CSS)?
#EE82EE — RGB 238, 130, 238, HSL 300°, 76%, 72%.
Is Violet (CSS) a warm or cool color?
Cool — its hue sits at 300° on the color wheel.