Violet #EE82EE
Violet is one of the named colours in CSS, written violet. Black text reaches 9.06:1 on it, enough for body text.
Try on walls Preview on a website
Colour codes
| CSS keyword | violet |
|---|---|
| HEX | #EE82EE |
| RGB | rgb(238 130 238) |
| HSL | hsl(300 76% 72%) |
| OKLCH | oklch(76.2% 0.186 327.2) |
| White text | 2.32:1 · body text AA Fail |
| Black text | 9.06:1 · body text AA Pass |
Colours that go with Violet
The closest colour in Sanzo Wada's A Dictionary of Color Combinations is Eosine Pink (#F37F94), the nearest, though visibly different. These are the colours Wada paired it with, ranked by their contrast with Violet itself.
| Colour | HEX | Contrast with Violet | Body text AA |
|---|---|---|---|
| Black | #111314 | 8.04:1 | Pass |
| Dusky Madder Violet | #4E1D4C | 5.65:1 | Pass |
| Red Violet | #59256A | 4.78:1 | Pass |
| Deep Lyons Blue | #1C4286 | 4.17:1 | Fail |
| Hay's Russet | #793327 | 3.91:1 | Fail |
| Blackish Olive | #42533E | 3.57:1 | Fail |
| Dark Slate Purple | #704357 | 3.45:1 | Fail |
| Brick Red | #A84222 | 2.61:1 | Fail |
| Diamine Green | #1A7444 | 2.50:1 | Fail |
| Dark Soft Violet | #66629C | 2.39:1 | Fail |
| Burnt Sienna | #AE5224 | 2.25:1 | Fail |
| Pale Lemon Yellow | #FFEFAE | 2.01:1 | Fail |
| Aconite Violet | #A36AA5 | 1.76:1 | Fail |
| Seashell Pink | #FDD4BD | 1.69:1 | Fail |
| Light Mauve | #9A72AA | 1.69:1 | Fail |
| Raw Sienna | #BB7125 | 1.65:1 | Fail |
| Pale King's Blue | #A7D4E4 | 1.45:1 | Fail |
| Yellow Green | #AFD472 | 1.38:1 | Fail |
| Khaki | #BC892B | 1.34:1 | Fail |
| Orange Yellow | #FCB315 | 1.28:1 | Fail |
| Calamine BLue | #78CDD0 | 1.26:1 | Fail |
| Neutral Gray | #B6BFC1 | 1.24:1 | Fail |
| Citrine | #B09F36 | 1.15:1 | Fail |
| Grayish Lavender - A | #B5B1D8 | 1.13:1 | Fail |
| Pyrite Yellow | #CAB356 | 1.11:1 | Fail |
| Ecru | #C2AE93 | 1.08:1 | Fail |
| Citron Yellow | #B2B73E | 1.07:1 | Fail |
| Grayish Lavender - B | #C0A9B3 | 1.06:1 | Fail |
Palettes with Eosine Pink
- Combination #34 Eosine Pink · Neutral Gray
- Combination #59 Eosine Pink · Citrine
- Combination #90 Eosine Pink · Aconite Violet
- Combination #108 Eosine Pink · Brick Red
- Combination #134 Eosine Pink · Light Mauve · Red Violet
- Combination #153 Eosine Pink · Orange Yellow · Citron Yellow
- Combination #197 Eosine Pink · Dark Soft Violet · Neutral Gray
- Combination #242 Eosine Pink · Burnt Sienna · Diamine Green · Black
- Combination #248 Eosine Pink · Khaki · Grayish Lavender - A · Dark Slate Purple
- Combination #276 Eosine Pink · Seashell Pink · Yellow Green · Black
- Combination #287 Eosine Pink · Pyrite Yellow · Pale King's Blue · Calamine BLue
- Combination #314 Eosine Pink · Hay's Russet · Deep Lyons Blue · Dusky Madder Violet
Shades and tints of Violet
Nine lightness steps in OKLCH that keep the hue of Violet. Chroma is reduced only where sRGB cannot show it.
- 100#FFEFFE
- 200#FFD5FE
- 300#FFACFE
- 400#ED81ED
- 500#CB62CC
- 600#A73FA8
- 700#871B89
- 800#620064
- 900#3C003D
:root {
--violet-100: #FFEFFE;
--violet-200: #FFD5FE;
--violet-300: #FFACFE;
--violet-400: #ED81ED;
--violet-500: #CB62CC;
--violet-600: #A73FA8;
--violet-700: #871B89;
--violet-800: #620064;
--violet-900: #3C003D;
}
Text that keeps Violet on screen
Text #3C003D on #EE82EE reaches 7.20:1, which passes WCAG AA for body text. Check it on a dashboard