#CCA8FE

Closest named color: Lilac (#CEA2FD). oklch(79.5% 0.125 302.9), rgb(204, 168, 254).

Aa

Black text reads best on this color (10.59:1).

About this color

#CCA8FE is a light, moderately saturated purple. In OKLCH its lightness is 79%, its chroma 0.125 and its hue 303°. Its hue sits between the warm and cool halves of the wheel. The nearest named color is Lilac (#CEA2FD), ΔE 0.014 away. Black text reads best on it, at 10.59:1.

Hue familyPurples
Lightnesslight (79%)
Chromamoderately saturated (0.125)
Temperaturein between
Nearest nameLilac (#CEA2FD)
Black text10.59:1
White text1.98:1

Values

HEX#CCA8FE
RGBrgb(204, 168, 254)
HSLhsl(265, 98%, 83%)
OKLCHoklch(79.5% 0.125 302.9)

Contrast

WCAG 2 contrast ratios are the conformance target: AA needs 4.5:1 for body text and 3:1 for large text, AAA needs 7:1. APCA Lc values are supplementary guidance from the WCAG 3 drafts.

PairWCAG 2ResultAPCAAPCA guidance
White text on #CCA8FE 1.98:1 Fails Lc -42.6 Non-text elements, placeholder text
Black text on #CCA8FE 10.59:1 AAA Lc 65.7 Content text, not long reading
#CCA8FE text on white 1.98:1 Fails Lc 38.2 Non-text elements, placeholder text
#CCA8FE text on black 10.59:1 AAA Lc -64.2 Content text, not long reading

Tints and shades

A 50–950 scale built in OKLCH: the hue is held, lightness follows a Tailwind v4-like curve, and every step is kept inside the sRGB gamut. This color sits at step 300.

  1. Step 50

    50

    #F7F3FF

    oklch(97.1% 0.016 301.2)

  2. Step 100

    100

    #EEE5FE

    oklch(93.6% 0.035 302.1)

  3. Step 200

    200

    #E2CFFF

    oklch(88.5% 0.068 303.1)

  4. Step 300

    300 (this color)

    #CCA8FE

    oklch(79.5% 0.125 302.9)

  5. Step 400

    400

    #B97EFF

    oklch(70.7% 0.188 303)

  6. Step 500

    500

    #A953FF

    oklch(63.1% 0.243 302.9)

  7. Step 600

    600

    #971DF4

    oklch(55.6% 0.277 302.8)

  8. Step 700

    700

    #8101D4

    oklch(49.1% 0.257 302.9)

  9. Step 800

    800

    #6911AB

    oklch(42.7% 0.213 303.1)

  10. Step 900

    900

    #551C88

    oklch(37.8% 0.166 302.9)

  11. Step 950

    950

    #31134F

    oklch(26.9% 0.105 302.8)

Export this scale for Tailwind in the Tailwind colors tool

#CCA8FE with color blindness

Simulated with the Machado et al. (2009) model. ΔE is how far the color moves: below about 0.02 you would not notice a change.

VisionSeen asShift (ΔE)
Protanopia (no red cones)#95B7FF0.079
Deuteranopia (no green cones)#9CB8FC0.074
Tritanopia (no blue cones)#C4B5C80.095
Achromatopsia (no color)#B8B8B80.125

Harmonies

Hue rotations in OKLCH that keep this color's lightness and chroma.

Complementary

The opposite hue (180°).

  • #CCA8FE

    #CCA8FE

    oklch(79.5% 0.125 302.9)

  • #ADC96B

    #ADC96B

    oklch(79.4% 0.125 122.9)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #CCA8FE

    #CCA8FE

    oklch(79.5% 0.125 302.9)

  • #A6B8FF

    #A6B8FF

    oklch(79.5% 0.103 272.9)

  • #EC9DDE

    #EC9DDE

    oklch(79.4% 0.125 333.2)

Open the analogous palette in the generator

Split complementary

The two hues beside the complement (150° and 210°).

  • #CCA8FE

    #CCA8FE

    oklch(79.5% 0.125 302.9)

  • #D8BA55

    #D8BA55

    oklch(79.5% 0.125 92.8)

  • #79D395

    #79D395

    oklch(79.4% 0.124 152.7)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #CCA8FE

    #CCA8FE

    oklch(79.5% 0.125 302.9)

  • #F4A962

    #F4A962

    oklch(79.3% 0.124 62.8)

  • #44D6C3

    #44D6C3

    oklch(79.5% 0.125 182.6)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #CCA8FE

    #CCA8FE

    oklch(79.5% 0.125 302.9)

  • #FF9F8A

    #FF9F8A

    oklch(79.5% 0.119 33.1)

  • #ADC96B

    #ADC96B

    oklch(79.4% 0.125 122.9)

  • #3ED0EB

    #3ED0EB

    oklch(79.3% 0.124 213)

Open the square palette in the generator

Palettes with this color

Curated palettes that contain a color within ΔE 0.04 (OKLab) of #CCA8FE, closest first.

Similar named colors

The eight closest entries in our named color list, with their ΔE distance.

Use #CCA8FE in your product

Turn it into light and dark UI roles checked for contrast, then export to Tailwind v4, shadcn/ui, CSS or design tokens.