#CD87EC

Closest named color: Liliac (#C48EFD). oklch(73.2% 0.158 314.8), rgb(205, 135, 236).

Aa

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

About this color

#CD87EC is a medium-light, vivid purple. In OKLCH its lightness is 73%, its chroma 0.158 and its hue 315°. Its hue sits between the warm and cool halves of the wheel. The nearest named color is Liliac (#C48EFD), ΔE 0.029 away. Black text reads best on it, at 8.27:1.

Hue familyPurples
Lightnessmedium-light (73%)
Chromavivid (0.158)
Temperaturein between
Nearest nameLiliac (#C48EFD)
Black text8.27:1
White text2.53:1

Values

HEX#CD87EC
RGBrgb(205, 135, 236)
HSLhsl(282, 73%, 73%)
OKLCHoklch(73.2% 0.158 314.8)

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 #CD87EC 2.53:1 Fails Lc -54.6 Large or bold text, headings
Black text on #CD87EC 8.27:1 AAA Lc 54.5 Large or bold text, headings
#CD87EC text on white 2.53:1 Fails Lc 49.5 Large or bold text, headings
#CD87EC text on black 8.27:1 AAA Lc -52.4 Large or bold text, headings

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 400.

  1. Step 50

    50

    #F9F3FC

    oklch(97.1% 0.013 314.8)

  2. Step 100

    100

    #F1E5F7

    oklch(93.7% 0.027 314.7)

  3. Step 200

    200

    #E7CFF3

    oklch(88.5% 0.055 314.5)

  4. Step 300

    300

    #D9AEED

    oklch(81% 0.098 314.9)

  5. Step 400

    400 (this color)

    #CD87EC

    oklch(73.2% 0.158 314.8)

  6. Step 500

    500

    #B65ADB

    oklch(63.2% 0.201 315.1)

  7. Step 600

    600

    #A139C9

    oklch(55.6% 0.22 314.8)

  8. Step 700

    700

    #8A29AE

    oklch(49.1% 0.205 314.8)

  9. Step 800

    800

    #70258D

    oklch(42.8% 0.169 314.7)

  10. Step 900

    900

    #5B2570

    oklch(37.8% 0.131 315.2)

  11. Step 950

    950

    #351742

    oklch(27% 0.083 314.5)

Export this scale for Tailwind in the Tailwind colors tool

#CD87EC 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)#749EF00.132
Deuteranopia (no green cones)#87A4E90.119
Tritanopia (no blue cones)#CB95AE0.107
Achromatopsia (no color)#A2A2A20.159

Harmonies

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

Complementary

The opposite hue (180°).

  • #CD87EC

    #CD87EC

    oklch(73.2% 0.158 314.8)

  • #7BBE50

    #7BBE50

    oklch(73.3% 0.159 134.9)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #CD87EC

    #CD87EC

    oklch(73.2% 0.158 314.8)

  • #9F9AFF

    #9F9AFF

    oklch(73.2% 0.144 284.5)

  • #EC7CBF

    #EC7CBF

    oklch(73.2% 0.158 344.9)

Open the analogous palette in the generator

Split complementary

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

  • #CD87EC

    #CD87EC

    oklch(73.2% 0.158 314.8)

  • #B8AC00

    #B8AC00

    oklch(73.1% 0.155 104.6)

  • #00C68F

    #00C68F

    oklch(73.2% 0.155 164.6)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #CD87EC

    #CD87EC

    oklch(73.2% 0.158 314.8)

  • #E09700

    #E09700

    oklch(73.1% 0.154 74.6)

  • #00C0C0

    #00C0C0

    oklch(73.1% 0.125 194.8)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #CD87EC

    #CD87EC

    oklch(73.2% 0.158 314.8)

  • #F8844C

    #F8844C

    oklch(73.3% 0.158 45)

  • #7BBE50

    #7BBE50

    oklch(73.3% 0.159 134.9)

  • #00B9E9

    #00B9E9

    oklch(73.1% 0.139 225)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

Use #CD87EC 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.