#D540C0

Closest named color: Pinky Purple (#C94CBE). oklch(63% 0.228 334.2), rgb(213, 64, 192).

Aa

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

About this color

#D540C0 is a medium-light, vivid purple. In OKLCH its lightness is 63%, its chroma 0.228 and its hue 334°. Its hue sits between the warm and cool halves of the wheel. The nearest named color is Pinky Purple (#C94CBE), ΔE 0.027 away. Black text reads best on it, at 5.32:1.

Hue familyPurples
Lightnessmedium-light (63%)
Chromavivid (0.228)
Temperaturein between
Nearest namePinky Purple (#C94CBE)
Black text5.32:1
White text3.94:1

Values

HEX#D540C0
RGBrgb(213, 64, 192)
HSLhsl(308, 64%, 54%)
OKLCHoklch(63% 0.228 334.2)

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 #D540C0 3.94:1 AA large text Lc -71.2 Content text, not long reading
Black text on #D540C0 5.32:1 AA Lc 38.4 Non-text elements, placeholder text
#D540C0 text on white 3.94:1 AA large text Lc 65.7 Content text, not long reading
#D540C0 text on black 5.32:1 AA Lc -36.0 Non-text elements, placeholder text

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

  1. Step 50

    50

    #FCF2FA

    oklch(97.1% 0.015 332.2)

  2. Step 100

    100

    #F8E2F3

    oklch(93.5% 0.033 333.6)

  3. Step 200

    200

    #F4CAEA

    oklch(88.5% 0.063 334.5)

  4. Step 300

    300

    #EDA5DE

    oklch(80.9% 0.112 334.3)

  5. Step 400

    400

    #E170CD

    oklch(70.7% 0.178 334.4)

  6. Step 500

    500 (this color)

    #D540C0

    oklch(63% 0.228 334.2)

  7. Step 600

    600

    #C001AC

    oklch(55.5% 0.247 334.2)

  8. Step 700

    700

    #A30092

    oklch(49.2% 0.22 334.2)

  9. Step 800

    800

    #860078

    oklch(42.6% 0.19 334.1)

  10. Step 900

    900

    #6C1461

    oklch(37.7% 0.148 333.9)

  11. Step 950

    950

    #400F39

    oklch(27.1% 0.094 334.1)

Export this scale for Tailwind in the Tailwind colors tool

#D540C0 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)#3D72C40.247
Deuteranopia (no green cones)#7288BC0.211
Tritanopia (no blue cones)#DF4D7B0.117
Achromatopsia (no color)#8080800.230

Harmonies

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

Complementary

The opposite hue (180°).

  • #D540C0

    #D540C0

    oklch(63% 0.228 334.2)

  • #00A45B

    #00A45B

    oklch(63.1% 0.158 154.2)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #D540C0

    #D540C0

    oklch(63% 0.228 334.2)

  • #A958F6

    #A958F6

    oklch(63.1% 0.228 304.1)

  • #EF2E79

    #EF2E79

    oklch(63.1% 0.228 4.1)

Open the analogous palette in the generator

Split complementary

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

  • #D540C0

    #D540C0

    oklch(63% 0.228 334.2)

  • #759800

    #759800

    oklch(63% 0.157 124.4)

  • #009F91

    #009F91

    oklch(63.1% 0.112 184)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #D540C0

    #D540C0

    oklch(63% 0.228 334.2)

  • #A38700

    #A38700

    oklch(63.1% 0.129 94.2)

  • #009AB2

    #009AB2

    oklch(63.1% 0.111 213.9)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #D540C0

    #D540C0

    oklch(63% 0.228 334.2)

  • #C37300

    #C37300

    oklch(63% 0.142 64.1)

  • #00A45B

    #00A45B

    oklch(63.1% 0.158 154.2)

  • #0090E0

    #0090E0

    oklch(63% 0.157 244.4)

Open the square palette in the generator

Palettes with this color

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

No curated palette has a color within ΔE 0.04 of #D540C0.

Similar named colors

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

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