#D540BF

Closest named color: Pinky Purple (#C94CBE). oklch(63% 0.227 334.5), rgb(213, 64, 191).

Aa

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

About this color

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

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

Values

HEX#D540BF
RGBrgb(213, 64, 191)
HSLhsl(309, 64%, 54%)
OKLCHoklch(63% 0.227 334.5)

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 #D540BF 3.95:1 AA large text Lc -71.2 Content text, not long reading
Black text on #D540BF 5.31:1 AA Lc 38.3 Non-text elements, placeholder text
#D540BF text on white 3.95:1 AA large text Lc 65.7 Content text, not long reading
#D540BF text on black 5.31:1 AA Lc -35.9 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)

    #D540BF

    oklch(63% 0.227 334.5)

  7. Step 600

    600

    #C101AC

    oklch(55.7% 0.248 334.5)

  8. Step 700

    700

    #A30091

    oklch(49.1% 0.219 334.5)

  9. Step 800

    800

    #870077

    oklch(42.7% 0.19 334.9)

  10. Step 900

    900

    #6C1460

    oklch(37.6% 0.147 334.5)

  11. Step 950

    950

    #400F38

    oklch(27% 0.093 335.1)

Export this scale for Tailwind in the Tailwind colors tool

#D540BF 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)#3E72C30.246
Deuteranopia (no green cones)#7288BB0.211
Tritanopia (no blue cones)#DF4C7B0.114
Achromatopsia (no color)#8080800.229

Harmonies

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

Complementary

The opposite hue (180°).

  • #D540BF

    #D540BF

    oklch(63% 0.227 334.5)

  • #00A45C

    #00A45C

    oklch(63.1% 0.158 154.5)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #D540BF

    #D540BF

    oklch(63% 0.227 334.5)

  • #A957F5

    #A957F5

    oklch(62.9% 0.228 304.4)

  • #EF2E78

    #EF2E78

    oklch(63% 0.228 4.5)

Open the analogous palette in the generator

Split complementary

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

  • #D540BF

    #D540BF

    oklch(63% 0.227 334.5)

  • #749800

    #749800

    oklch(62.9% 0.158 124.7)

  • #009E91

    #009E91

    oklch(62.9% 0.111 184.6)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #D540BF

    #D540BF

    oklch(63% 0.227 334.5)

  • #A28700

    #A28700

    oklch(63% 0.129 94.8)

  • #0099B2

    #0099B2

    oklch(62.8% 0.111 214.7)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #D540BF

    #D540BF

    oklch(63% 0.227 334.5)

  • #C37300

    #C37300

    oklch(63% 0.142 64.1)

  • #00A45C

    #00A45C

    oklch(63.1% 0.158 154.5)

  • #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 #D540BF, closest first.

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

Similar named colors

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

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