lilac color code
The hex code for lilac is #C8A2C8, which is rgb(200, 162, 200) in RGB and cmyk(0%, 19%, 0%, 22%) in CMYK. It's a light, muted pink. There is no official standard for lilac; #C8A2C8 is the value most colour references use.
Build a full palette from it: open in the palette generator.
Move the sliders to find a lighter, darker or softer lilac; the codes update as you go.
Lilac colour codes
| HEX | #C8A2C8 |
|---|---|
| RGB | rgb(200, 162, 200) |
| HSL | hsl(300, 26%, 71%) |
| HSV / HSB | hsv(300, 19%, 78%) |
| CMYK | cmyk(0%, 19%, 0%, 22%) |
| Decimal | 13148872 |
About lilac
Lilac sits at a hue of 300° on the colour wheel, with 26% saturation and 71% lightness. That makes it a colour that sits between warm and cool: greens and purples like this can be styled warm or cool depending on what you put next to them.
A pale purple named after the lilac flower.
For text, black reads better on lilac. Lilac as text on a white background has a contrast ratio of 2.22:1, which fails the WCAG AA rule for body text (4.5:1) and fails the 3:1 rule for large text. On black it is 9.45:1, which passes AA for body text.
Tints and shades of lilac
Tints mix lilac with white and shades mix it with black, in 10% steps. They're the easiest way to get lighter backgrounds and darker hover or text colours that still match.
Colours that go with lilac
Complementary — opposite on the colour wheel: maximum contrast
Analogous — neighbours 30° either side: calm and natural
Triadic — three hues 120° apart: lively but balanced
Split complementary — the two neighbours of the complement: contrast with less tension
Tetradic — four hues 90° apart: rich, use one as the main colour
Lilac text contrast
| Combination | Ratio | AA normal (4.5:1) | AA large (3:1) | AAA (7:1) |
|---|---|---|---|---|
| lilac on white | 2.22:1 | fail | fail | fail |
| lilac on black | 9.45:1 | pass | pass | pass |
Check lilac against any other colour in the contrast checker.
How lilac looks with colour blindness
Simulated with the Machado et al. (2009) model for the complete loss of one type of cone cell. Colour vision deficiency affects roughly 1 in 12 men and 1 in 200 women, most often as red-green colour blindness.
Use lilac in code
.lilac {
color: #c8a2c8;
background-color: #c8a2c8;
border-color: rgb(200, 162, 200);
}Frequently asked questions
What is the hex code for lilac?
#C8A2C8 is the most widely used value for lilac. There's no official standard, so paint, fabric and brand swatches called lilac can differ slightly; use the hex code to match it exactly on screen.
What is lilac in RGB, HSL and CMYK?
RGB: rgb(200, 162, 200). HSL: hsl(300, 26%, 71%). CMYK: cmyk(0%, 19%, 0%, 22%). CMYK is a simple conversion for reference; for professional printing, ask your printer for a matching ink or Pantone swatch.
What colours go with lilac?
Its complementary colour is #A2C8A2 (close to dark sea green), which gives the strongest contrast. For a calmer look, use the analogous colours #B5A2C8 and #C8A2B5, or the triadic pair #C8C8A2 and #A2C8C8. Tints and shades of lilac itself always work together.
Is lilac a warm or cool colour?
Lilac has a hue of 300°, which makes it neither clearly warm nor cool.
Should I use black or white text on lilac?
Black. Black text on lilac has a contrast ratio of 9.45:1 and white text has 2.22:1. WCAG asks for at least 4.5:1 for normal text and 3:1 for large text.
Is lilac a CSS colour name?
No. Lilac isn't one of the named colours built into CSS, so write it as a hex code: color: #c8a2c8;