Home / Colors / Lilac hex code

Lilac hex code

A pale pinkish purple like lilac blossoms.

#C8A2C8 Lilac
HEX#C8A2C8
RGBrgb(200, 162, 200)
HSLhsl(300, 26%, 71%)
HSVhsv(300, 19%, 78%)
CMYKcmyk(0%, 19%, 0%, 22%)
Advertisement

About lilac

A pale pinkish purple like lilac blossoms. Its hex code is #C8A2C8, which is rgb(200, 162, 200): 200 red, 162 green and 200 blue on a scale of 0 to 255.

Lilac sits between warm and cool, so it can lean either way depending on what it's paired with.

Lilac tints and shades

Lighter tints (mixed with white) and darker shades (mixed with black) of lilac. Click any of them to copy its hex code.

Colors that go with lilac

Complementary

The opposite color on the color wheel, for strong contrast.

Analogous

Neighbors on the color wheel, for a calm, matching look.

Triadic

Three colors evenly spaced around the wheel, for a balanced, lively palette.

Split complementary

The two colors either side of the complement: contrast without clashing.

Text on lilac

White text

2.22:1 · Fails for text

Black text

9.45:1 · Passes AAA for all text

For readable text, WCAG asks for a contrast ratio of at least 4.5:1 (3:1 for large text). Black text is the better choice on lilac. Test other combinations with the contrast checker.

Using lilac in CSS

.element {
  color: #C8A2C8;
  background-color: rgb(200 162 200);
  border-color: hsl(300 26% 71%);
}
Advertisement

Frequently asked questions

What is the hex code for lilac?

Lilac is #C8A2C8. In RGB it's rgb(200, 162, 200), and in HSL it's hsl(300, 26%, 71%).

What colors go with lilac?

Its complementary color is #A2C8A2, which gives strong contrast. For a softer look, use analogous colors #B5A2C8 and #C8A2B5. Lilac also pairs well with charcoal or black.

Is lilac warm or cool?

Lilac sits between warm and cool, so it can lean either way depending on what it's paired with.

Should I use white or black text on lilac?

Use black text. Its contrast ratio on lilac is 9.45:1, versus 2.22:1 for white.

Similar colors

See all popular colors · All HTML color names · Open lilac in the color picker

Advertisement