Add to Chrome

Lilac color: hex codes, shades and palettes

Palettes built around lilac. Click any swatch to copy its hex code.

Lilac is #C8A2C8, light muted purple. Below are its shades with hex codes, the values in every common format, and lilac color palettes to copy.

Lilac hex, RGB, HSL and OKLCH

#C8A2C8
HEX
#C8A2C8
RGB
rgb(200, 162, 200)
HSL
hsl(300, 26%, 71%)
OKLCH
oklch(75.9% 0.068 326.2)
On white
2.22:1
On black
9.46:1

Shades of lilac

9 steps from one base color, generated in OKLCH so each step is an equal perceived step rather than an equal numeric one. Click a swatch to copy it.

Lilac color values

#C8A2C8rgb(200, 162, 200)
Color spaces of #c8a2c8
RGB200162200
HSL300°26%71%
HSV300°19%78%
CMYK0.000.190.000.22
XYZ47.163942.291260.3109
Yxy42.29120.31490.2824
CIE-Lab71.071220.5397-14.1284
Hunter Lab65.031715.6507-9.4638
OKLCH75.9%0.068326.2°

#C8A2C8 is 200 red, 162 green and 200 blue. No single channel dominates it. The nearest of the 216 web safe colors is #CC99CC.

CIE-Lab, XYZ and Yxy are measured against D65, the white point sRGB itself is defined against. Hunter Lab uses the original illuminant C constants, which is what paint and plastics specifications quote, so the two Lab rows are not directly comparable. CMYK is the plain arithmetic conversion: real ink values depend on the press, the paper and the profile.

Base numbers
BaseRedGreenBlue
Binary110010001010001011001000
Octal310242310
Decimal200162200
HexC8A2C8

#c8a2c8 mixed with black

Ten even steps of the classic shade ramp, worked out in RGB, which is how the term has always been defined and how other references list it. The OKLCH scale further down this page answers a different question: it steps by equal perceived amounts, so its values are not the same.

  • #C8A2C8
  • #B491B4
  • #A081A0
  • #8C718C
  • #786178
  • #645164
  • #504050
  • #3C303C
  • #272027
  • #131013
  • #000000

#c8a2c8 mixed with white

The tint ramp, by the same rule in the other direction.

  • #C8A2C8
  • #CDABCD
  • #D3B4D3
  • #D8BDD8
  • #DEC7DE
  • #E3D0E3
  • #E9D9E9
  • #EEE3EE
  • #F4ECF4
  • #F9F5F9
  • #FFFFFF

Channel shares

  • Red35.6%
  • Green28.8%
  • Blue35.6%

Color schemes

Turned in OKLCH rather than HSL, so every member keeps the lightness and chroma of the original instead of one of them arriving washed out.

Complementary

  • #C8A2C8
  • #95BD97

Triadic

  • #C8A2C8
  • #C4AE7F
  • #7BBDC6

Analogous

  • #C8A2C8
  • #D59FB2
  • #B4A8D8

Monochromatic

  • #5A3A5B
  • #7D5B7E
  • #A27DA2
  • #C8A2C8
  • #EFC8EF
  • #FFF5FF
  • #FFF5FF

#c8a2c8 on black and on white

The quick brown fox jumps over the lazy dog. 9.46:1

The quick brown fox jumps over the lazy dog. 2.22:1

Body text needs 4.5:1 to meet AA and large text needs 3:1, so a ratio tells you which of the two backgrounds this color can be read on, and at what size.

CSS for #c8a2c8

color: #c8a2c8;
background-color: #c8a2c8;
border: 3px solid #c8a2c8;
box-shadow: 1px 1px 3px 2px #c8a2c8;
text-shadow: 4px 4px 2px rgba(200, 162, 200, 0.8);

/* Perceptually even, and what a modern stylesheet wants */
color: oklch(75.9% 0.068 326.2);

The OKLCH form is the same color stated so that lightening or darkening it moves by an amount the eye agrees with. Every current browser understands it.

Contrast and readability

Lilac on white measures 2.22:1 and on black 9.46:1. WCAG AA asks for 4.5:1 on normal text and 3:1 on large text and UI components, so the higher of those two decides which background it belongs on. In the scale above, 500 is the first to clear 4.5:1 on white, at 5.43:1.

The contrast checker reports every level for a given pair and suggests the nearest passing shade on the same hue. The color picker builds this same scale from any color you paste in.

Related colors: purple, lavender, violet, plum, indigo, eggplant. See every shade on the colors index.

Get Palette Vault from the Microsoft Store