Lilac Color #C8A2C8
Lilac color codes
#C8A2C8rgb(200, 162, 200)hsl(300, 25.7%, 71%)hsv(300, 19%, 78.4%)oklch(0.759 0.068 326.2)--lilac: #C8A2C8;Black text is the readable choice on Lilac: 9.45:1.
About the name lilac
Represents the average color of lilac flowers; first recorded as an English color name in 1775. (Wikipedia)
Lilac is not a CSS color name, so use its HEX or RGB code in CSS. The name has no single standard value; the value shown here is the most widely cited one.
The Wikipedia color box cites toolstud.io for C8A2C8; Wikipedia's List of colors G-M gives the same value.
| Pale lilac (= ISCC-NBS pale lavender) | #DCD0FF |
Lilac shades and tints
Click a swatch to copy it. The middle swatch is the base color; steps are even in OKLCH lightness.
Colors that go with lilac
Text contrast on lilac
Lilac color palettes
From our palette collections
Lilac gradients
background: linear-gradient(135deg, #EBDAEB 0%, #C8A2C8 100%);background: linear-gradient(90deg, #C8A2C8 0%, #C8A2B5 100%);background: linear-gradient(135deg, #C8A2C8 0%, #A2C8A2 100%);Lilac in CSS
:root {
--lilac: #C8A2C8;
--lilac-rgb: 200, 162, 200;
}
.button {
background: var(--lilac);
color: #000000; /* 9.45:1 */
}Tailwind: bg-[#C8A2C8] · text-[#C8A2C8]
Colors similar to lilac
Frequently asked questions
What is the hex code for lilac?
Lilac is #C8A2C8. In RGB it is rgb(200, 162, 200) and in HSL hsl(300, 25.7%, 71%). The name has no single standard value; other common values are listed above.
What colors go with lilac?
On the color wheel, lilac (#C8A2C8) pairs with its complement #A2C8A2, its analogous colors #B5A2C8 and #C8A2B5, and the triadic colors #C8C8A2 and #A2C8C8. Lighter tints and darker shades of lilac itself also make an easy monochromatic scheme.
What text color works on lilac?
Black text is the readable choice on Lilac: 9.45:1. Lilac text on white is 2.22:1 (fails WCAG AA for normal text) and on black 9.45:1 (passes).
What is the RGB value of lilac?
Lilac (#C8A2C8) is red 200, green 162 and blue 200: rgb(200, 162, 200).
Sources
- Wikipedia, Lilac (color) (revision 1386010016); text adapted under CC BY-SA 4.0
- Cross-checked: Wikipedia 'List of colors: G–M' (rev 1382249612), entry 'Lilac'
- RGB, HSL, OKLCH, shades, harmonies and contrast are computed with SwatchNest's tested color library. Updated 2026-11-24