#D040BD

Closest named color: Purpley Pink (#C83CB9). oklch(62.1% 0.223 333.7), rgb(208, 64, 189).

Aa

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

About this color

#D040BD is a medium-light, vivid purple. In OKLCH its lightness is 62%, its chroma 0.223 and its hue 334°. Its hue sits between the warm and cool halves of the wheel. The nearest named color is Purpley Pink (#C83CB9), ΔE 0.018 away. Black text reads best on it, at 5.15:1.

Hue familyPurples
Lightnessmedium-light (62%)
Chromavivid (0.223)
Temperaturein between
Nearest namePurpley Pink (#C83CB9)
Black text5.15:1
White text4.07:1

Values

HEX#D040BD
RGBrgb(208, 64, 189)
HSLhsl(308, 61%, 53%)
OKLCHoklch(62.1% 0.223 333.7)

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 #D040BD 4.07:1 AA large text Lc -72.4 Content text, not long reading
Black text on #D040BD 5.15:1 AA Lc 37.2 Non-text elements, placeholder text
#D040BD text on white 4.07:1 AA large text Lc 66.9 Content text, not long reading
#D040BD text on black 5.15:1 AA Lc -34.8 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

    #F3CBEA

    oklch(88.5% 0.06 334)

  4. Step 300

    300

    #ECA6DE

    oklch(80.9% 0.109 333.9)

  5. Step 400

    400

    #DF72CD

    oklch(70.7% 0.174 333.8)

  6. Step 500

    500 (this color)

    #D040BD

    oklch(62.1% 0.223 333.7)

  7. Step 600

    600

    #BE0FAC

    oklch(55.5% 0.242 333.7)

  8. Step 700

    700

    #A20093

    oklch(49.1% 0.22 333.5)

  9. Step 800

    800

    #850678

    oklch(42.7% 0.187 333.7)

  10. Step 900

    900

    #6B1661

    oklch(37.7% 0.146 333.4)

  11. Step 950

    950

    #3F1039

    oklch(27% 0.092 333.3)

Export this scale for Tailwind in the Tailwind colors tool

#D040BD 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)#3C70C10.240
Deuteranopia (no green cones)#6F85B90.206
Tritanopia (no blue cones)#D94D7A0.114
Achromatopsia (no color)#7E7E7E0.225

Harmonies

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

Complementary

The opposite hue (180°).

  • #D040BD

    #D040BD

    oklch(62.1% 0.223 333.7)

  • #00A158

    #00A158

    oklch(62.2% 0.157 153.8)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #D040BD

    #D040BD

    oklch(62.1% 0.223 333.7)

  • #A557F1

    #A557F1

    oklch(62.2% 0.223 303.8)

  • #E92F78

    #E92F78

    oklch(62.1% 0.223 3.5)

Open the analogous palette in the generator

Split complementary

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

  • #D040BD

    #D040BD

    oklch(62.1% 0.223 333.7)

  • #749500

    #749500

    oklch(62.2% 0.154 123.9)

  • #009C8E

    #009C8E

    oklch(62.2% 0.11 183.8)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #D040BD

    #D040BD

    oklch(62.1% 0.223 333.7)

  • #A08400

    #A08400

    oklch(62.1% 0.127 93.9)

  • #0097AE

    #0097AE

    oklch(62.2% 0.109 213.4)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #D040BD

    #D040BD

    oklch(62.1% 0.223 333.7)

  • #C07100

    #C07100

    oklch(62.2% 0.141 64)

  • #00A158

    #00A158

    oklch(62.2% 0.157 153.8)

  • #008EDB

    #008EDB

    oklch(62.3% 0.153 243.7)

Open the square palette in the generator

Palettes with this color

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

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

Similar named colors

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

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