#AA40D2

Closest named color: Dark Orchid (#9932CC). oklch(58.1% 0.223 315.1), rgb(170, 64, 210).

Aa

White text reads best on this color (4.80:1).

About this color

#AA40D2 is a medium-dark, vivid purple. In OKLCH its lightness is 58%, its chroma 0.223 and its hue 315°. Its hue sits between the warm and cool halves of the wheel. The nearest named color is Dark Orchid (#9932CC), ΔE 0.042 away. White text reads best on it, at 4.80:1.

Hue familyPurples
Lightnessmedium-dark (58%)
Chromavivid (0.223)
Temperaturein between
Nearest nameDark Orchid (#9932CC)
Black text4.37:1
White text4.80:1

Values

HEX#AA40D2
RGBrgb(170, 64, 210)
HSLhsl(284, 62%, 54%)
OKLCHoklch(58.1% 0.223 315.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 #AA40D2 4.80:1 AA Lc -77.9 Fine for body text
Black text on #AA40D2 4.37:1 AA large text Lc 31.7 Non-text elements, placeholder text
#AA40D2 text on white 4.80:1 AA Lc 72.4 Content text, not long reading
#AA40D2 text on black 4.37:1 AA large text Lc -29.3 Dividers and decoration only

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

  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

    #E7CFF3

    oklch(88.5% 0.055 314.5)

  4. Step 300

    300

    #D9ADED

    oklch(80.8% 0.1 315.1)

  5. Step 400

    400

    #C67FE4

    oklch(70.8% 0.159 315.2)

  6. Step 500

    500

    #B758DC

    oklch(63.1% 0.206 315.4)

  7. Step 600

    600 (this color)

    #AA40D2

    oklch(58.1% 0.223 315.1)

  8. Step 700

    700

    #8B27AE

    oklch(49.1% 0.207 315.4)

  9. Step 800

    800

    #71238D

    oklch(42.7% 0.172 315.4)

  10. Step 900

    900

    #5B2471

    oklch(37.7% 0.134 314.8)

  11. Step 950

    950

    #361642

    oklch(27% 0.085 315.8)

Export this scale for Tailwind in the Tailwind colors tool

#AA40D2 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)#006CD60.208
Deuteranopia (no green cones)#3C75CF0.187
Tritanopia (no blue cones)#A75E850.145
Achromatopsia (no color)#7272720.225

Harmonies

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

Complementary

The opposite hue (180°).

  • #AA40D2

    #AA40D2

    oklch(58.1% 0.223 315.1)

  • #498F00

    #498F00

    oklch(58.1% 0.17 135)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #AA40D2

    #AA40D2

    oklch(58.1% 0.223 315.1)

  • #7459F5

    #7459F5

    oklch(58% 0.222 285)

  • #CD2798

    #CD2798

    oklch(58% 0.223 344.9)

Open the analogous palette in the generator

Split complementary

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

  • #AA40D2

    #AA40D2

    oklch(58.1% 0.223 315.1)

  • #867E00

    #867E00

    oklch(58.2% 0.124 105.2)

  • #009168

    #009168

    oklch(58.2% 0.123 164.8)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #AA40D2

    #AA40D2

    oklch(58.1% 0.223 315.1)

  • #A46E00

    #A46E00

    oklch(58% 0.122 75)

  • #008C8D

    #008C8D

    oklch(58% 0.099 195.7)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #AA40D2

    #AA40D2

    oklch(58.1% 0.223 315.1)

  • #C65100

    #C65100

    oklch(58% 0.166 44.9)

  • #498F00

    #498F00

    oklch(58.1% 0.17 135)

  • #0087AB

    #0087AB

    oklch(58% 0.11 225.1)

Open the square palette in the generator

Palettes with this color

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

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

Similar named colors

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

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