#CD87F2

Closest named color: Liliac (#C48EFD). oklch(73.5% 0.165 313.1), rgb(205, 135, 242).

Aa

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

About this color

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

Hue familyPurples
Lightnessmedium-light (73%)
Chromavivid (0.165)
Temperaturein between
Nearest nameLiliac (#C48EFD)
Black text8.34:1
White text2.51:1

Values

HEX#CD87F2
RGBrgb(205, 135, 242)
HSLhsl(279, 80%, 74%)
OKLCHoklch(73.5% 0.165 313.1)

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 #CD87F2 2.51:1 Fails Lc -54.2 Large or bold text, headings
Black text on #CD87F2 8.34:1 AAA Lc 54.9 Large or bold text, headings
#CD87F2 text on white 2.51:1 Fails Lc 49.1 Large or bold text, headings
#CD87F2 text on black 8.34:1 AAA Lc -52.8 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

    #F1E4F8

    oklch(93.5% 0.03 314)

  3. Step 200

    200

    #E7CFF5

    oklch(88.6% 0.057 313.1)

  4. Step 300

    300

    #D8ADF0

    oklch(80.9% 0.103 313.2)

  5. Step 400

    400 (this color)

    #CD87F2

    oklch(73.5% 0.165 313.1)

  6. Step 500

    500

    #B558E2

    oklch(63.2% 0.211 313)

  7. Step 600

    600

    #A035CF

    oklch(55.5% 0.229 313.1)

  8. Step 700

    700

    #8925B3

    oklch(49% 0.213 313.2)

  9. Step 800

    800

    #6F2291

    oklch(42.6% 0.176 313)

  10. Step 900

    900

    #5A2374

    oklch(37.6% 0.138 312.9)

  11. Step 950

    950

    #351644

    oklch(27% 0.087 313.1)

Export this scale for Tailwind in the Tailwind colors tool

#CD87F2 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)#719FF60.135
Deuteranopia (no green cones)#84A5EF0.122
Tritanopia (no blue cones)#CA97B10.114
Achromatopsia (no color)#A3A3A30.166

Harmonies

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

Complementary

The opposite hue (180°).

  • #CD87F2

    #CD87F2

    oklch(73.5% 0.165 313.1)

  • #7EBE48

    #7EBE48

    oklch(73.4% 0.164 133.1)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #CD87F2

    #CD87F2

    oklch(73.5% 0.165 313.1)

  • #9D9CFF

    #9D9CFF

    oklch(73.4% 0.142 282.8)

  • #EE7BC4

    #EE7BC4

    oklch(73.5% 0.164 343.1)

Open the analogous palette in the generator

Split complementary

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

  • #CD87F2

    #CD87F2

    oklch(73.5% 0.165 313.1)

  • #BBAC00

    #BBAC00

    oklch(73.4% 0.154 103.2)

  • #00C78C

    #00C78C

    oklch(73.4% 0.158 163.2)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #CD87F2

    #CD87F2

    oklch(73.5% 0.165 313.1)

  • #E39700

    #E39700

    oklch(73.4% 0.156 73.4)

  • #00C1BF

    #00C1BF

    oklch(73.4% 0.126 193.4)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #CD87F2

    #CD87F2

    oklch(73.5% 0.165 313.1)

  • #FC814C

    #FC814C

    oklch(73.4% 0.165 42.8)

  • #7EBE48

    #7EBE48

    oklch(73.4% 0.164 133.1)

  • #00BBE7

    #00BBE7

    oklch(73.5% 0.137 222.7)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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