What is hex #CD98FF color?

 
The hex code #CD98FF is closest to the named color Bright Lilac (#D891EF).
In professional design frameworks, this hue is considered a balanced and versatile hue. It is ideal for creating smooth color harmony, digital artwork, or minimalist web components.

From a technical standpoint, this color is composed of 80% red, 60% green and 100% blue, resulting in rgb(205, 152, 255) and hsl(271, 100%, 80%).
For print media and manufacturing layout, the CMYK equivalent is (20%, 40%, 0%, 0%).
In the HSV/HSB scale, #CD98FF features a hue of 271°, 40% saturation, and 100% brightness.

Hex #CD98FF Color Codes & Conversions

Closest Named Color
Bright Lilac (#D891EF)
Hex Code #CD98FF
Hex8 (RGBA Hex) #CD98FFFF
RGB (CSS) rgb(205, 152, 255)
RGBA (CSS) rgba(205, 152, 255, 1)
HSL (CSS) hsl(271, 100%, 80%)
HSLA (CSS) hsla(271, 100%, 80%, 1)
HSV / HSB (271°, 40%, 100%)
CMYK Values (20%, 40%, 0%, 0%)
OKLCH (Modern CSS) oklch(76.8% 0.152 306.8)
CIE-LAB (D65) 71.32, 38.88, -43.82
CIE XYZ 54.45, 42.66, 99.95
Decimal / Binary 13474047
11001101 10011000 11111111

Closest Standards & Equivalents

Closest Web Safe
#CC99FF
Inverse Color
#326700
Complementary Color
#CAFF98
Closest Pantone®
Pantone 529 C
Closest RAL
RAL 3015 [Light pink]

#CD98FF Grayscale Equivalents

Average
#CCCCCC
Lightness (Desaturation)
#CCCCCC
Weighted (BT601)
#B4B4B4
Luma (BT709)
#ABABAB

WCAG 2.1 Color Contrast & Accessibility

Check how #CD98FF complies with web accessibility standards (WCAG AA & AAA) for typography. Need to test against another custom color? Use our interactive contrast checker.

White Text on #CD98FF

Sample preview of readable typography on top of #CD98FF.

Contrast Ratio: 2.2:1
AA Fail AAA Fail

Black Text on #CD98FF

Sample preview of readable typography on top of #CD98FF.

Contrast Ratio: 9.53:1
AA Pass AAA Pass

HTML / CSS Live Previews & Snippets for #CD98FF

Preview #CD98FF in real UI elements and copy ready-to-use CSS rules.

Background Preview
background-color: #CD98FF;
Typography Color Preview
color: #CD98FF;
Border & Shadow Preview
border: 2px solid #CD98FF;
CSS Custom Properties & Gradient
:root {
  --color-primary: #CD98FF;
  --color-primary-rgb: 205, 152, 255;
  --color-complementary: #CAFF98;
}
.btn-accent {
  background-color: #CD98FF;
  color: #000000;
}

Hex #CD98FF Color Palettes

Complementary Palette

The complementary color of #CD98FF is #CAFF98. Opposite on the color wheel, placing these two colors next to each other creates the strongest visual contrast.

Analogous Palette

The analogous color scheme of #CD98FF pairs with #9998FF and #FF98FD, positioned 30° apart on the color wheel for smooth, cohesive visual harmony.

Split-Complementary Palette

The split-complementary scheme of #CD98FF pairs with #98FF99 and #FDFF98, delivering strong contrast while remaining easier to balance than a direct complement.

Triadic Palette

The triadic color scheme of #CD98FF uses #98FFCD and #FFCD98, spaced 120° apart for balanced, high-energy contrast.

Tetradic Palette

The tetradic color scheme of #CD98FF combines #FFCD98, #CAFF98 and #98CAFF around the color wheel for rich multi-accent UI systems.

Square Palette

The square color scheme of #CD98FF pairs with #FF9998, #CAFF98 and #98FDFF spaced evenly at 90° intervals.

Tints, Tones & Shades of Hex #CD98FF

Tints

Tints are created by mixing #CD98FF with white, producing lighter variations.

Tones

Tones are created by mixing #CD98FF with gray, softening saturation.

Shades

Shades result from mixing #CD98FF with black, creating deeper variations.

Hex #CD98FF in Programming & CSS Frameworks

Copy the exact syntax for #CD98FF in CSS, Tailwind, Java, Python, .NET, Swift, or Kotlin:

HTML / CSS #CD98FF
Tailwind CSS bg-[#CD98FF] text-[#CD98FF]
Java (AWT) new Color(205,152,255);
Python Color("#CD98FF")
.NET (C#) Color.FromArgb(255, 205,152,255);
Swift / iOS UIColor(red: 0.8, green: 0.6, blue: 1, alpha: 1)
Kotlin / Android Color.rgb(205, 152, 255)