Lilac Color — HEX, RGB, HSL & CMYK Codes

#cea2fd
Format Value
HEX #cea2fd
RGB rgb(206, 162, 253)
HSL hsl(269, 95.8%, 81.4%)
CMYK cmyk(18.6%, 36%, 0%, 0.8%)
HSV hsv(269, 36%, 99.2%)

lilac color harmonies

Tints & shades of lilac

Tints (lighter)

#d2aafd #d7b3fd #dbbbfe #e0c4fe #e4ccfe #e9d5fe #edddfe #f2e6fe #f6eeff #fbf7ff

Shades (darker)

#bb93e6 #a985cf #9676b8 #8367a1 #70588a #5e4a73 #4b3b5c #382c45 #251d2e #130f17

Contrast & accessibility

The quick brown fox

On white · 2.06:1 · Fail

The quick brown fox

On black · 10.21:1 · AAA

Recommended text color: #000000

Use lilac in code

CSS color: #cea2fd;
SCSS $color: #cea2fd;
Tailwind bg-[#cea2fd]
Swift UIColor(red: 0.808, green: 0.635, blue: 0.992, alpha: 1)
Android Color.parseColor("#cea2fd")
Flutter Color(0xFFCEA2FD)

Colors similar to lilac

Browse all Blue colors →

What is the HEX code for lilac?

The CSS color lilac in HEX format is #cea2fd. Use this value directly in CSS, SVG, and most design tools.

How do I use lilac in CSS?

To apply lilac in CSS:

  • Text color: color: #cea2fd;
  • Background: background-color: #cea2fd;
  • Border: border-color: #cea2fd;

What are all the color format values for lilac?

FormatValue
HEX#cea2fd
RGBrgb(206, 162, 253)
HSLhsl(269, 95.8%, 81.4%)
CMYKcmyk(18.6%, 36%, 0%, 0.8%)

How do I convert lilac to HEX?

Select lilac from the color name list in our color converter. The HEX value — #cea2fd — appears instantly alongside HEX, RGB, HSL and CMYK.

What color family does lilac belong to?

lilac belongs to the blue color family. It is a light, vivid color with HSL values: hue 269°, saturation 95.8%, lightness 81.4%.

How do I create lighter and darker shades of lilac?

Lighter variant (lightness 95%): #f2e6fe. Darker variant (lightness 66.4%): #a757fb. These values are computed by adjusting HSL lightness ±15% while keeping the same hue and saturation.

What is HEX used for?

HEX color codes are used in CSS, HTML and design tools. They encode red, green and blue as two hexadecimal digits each (00–FF), forming a compact 6-character code like #ff0000.