#AA40AA

Closest named color: Purply (#983FB2). oklch(55.7% 0.187 327.7), rgb(170, 64, 170).

Aa

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

About this color

#AA40AA is a medium-dark, vivid purple. In OKLCH its lightness is 56%, its chroma 0.187 and its hue 328°. Its hue sits between the warm and cool halves of the wheel. The nearest named color is Purply (#983FB2), ΔE 0.039 away. White text reads best on it, at 5.21:1.

Hue familyPurples
Lightnessmedium-dark (56%)
Chromavivid (0.187)
Temperaturein between
Nearest namePurply (#983FB2)
Black text4.02:1
White text5.21:1

Values

HEX#AA40AA
RGBrgb(170, 64, 170)
HSLhsl(300, 45%, 46%)
OKLCHoklch(55.7% 0.187 327.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 #AA40AA 5.21:1 AA Lc -80.5 Fine for body text
Black text on #AA40AA 4.02:1 AA large text Lc 29.0 Dividers and decoration only
#AA40AA text on white 5.21:1 AA Lc 75.1 Fine for body text
#AA40AA text on black 4.02:1 AA large text Lc -26.6 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

    #FAF3F9

    oklch(97.1% 0.011 330.1)

  2. Step 100

    100

    #F3E4F2

    oklch(93.5% 0.025 327.8)

  3. Step 200

    200

    #EBCFE9

    oklch(88.6% 0.046 328.2)

  4. Step 300

    300

    #DFAEDD

    oklch(81% 0.084 327.6)

  5. Step 400

    400

    #CD81CB

    oklch(70.7% 0.134 327.8)

  6. Step 500

    500

    #BF5DBE

    oklch(63.1% 0.173 327.8)

  7. Step 600

    600 (this color)

    #AA40AA

    oklch(55.7% 0.187 327.7)

  8. Step 700

    700

    #913092

    oklch(49% 0.175 327.4)

  9. Step 800

    800

    #762A76

    oklch(42.7% 0.143 327.7)

  10. Step 900

    900

    #60275F

    oklch(37.7% 0.113 328.2)

  11. Step 950

    950

    #381838

    oklch(27% 0.071 327.3)

Export this scale for Tailwind in the Tailwind colors tool

#AA40AA 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)#3364AD0.193
Deuteranopia (no green cones)#5971A70.166
Tritanopia (no blue cones)#AF4E6F0.106
Achromatopsia (no color)#6C6C6C0.189

Harmonies

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

Complementary

The opposite hue (180°).

  • #AA40AA

    #AA40AA

    oklch(55.7% 0.187 327.7)

  • #008C35

    #008C35

    oklch(55.8% 0.163 147.8)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #AA40AA

    #AA40AA

    oklch(55.7% 0.187 327.7)

  • #8352D1

    #8352D1

    oklch(55.7% 0.188 297.8)

  • #C23374

    #C23374

    oklch(55.7% 0.187 357.5)

Open the analogous palette in the generator

Split complementary

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

  • #AA40AA

    #AA40AA

    oklch(55.7% 0.187 327.7)

  • #6E7D00

    #6E7D00

    oklch(55.8% 0.13 117.8)

  • #008773

    #008773

    oklch(55.8% 0.103 177.4)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #AA40AA

    #AA40AA

    oklch(55.7% 0.187 327.7)

  • #906E00

    #906E00

    oklch(55.7% 0.114 87.1)

  • #008390

    #008390

    oklch(55.7% 0.096 207)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #AA40AA

    #AA40AA

    oklch(55.7% 0.187 327.7)

  • #AC5C00

    #AC5C00

    oklch(55.8% 0.134 58)

  • #008C35

    #008C35

    oklch(55.8% 0.163 147.8)

  • #007CB2

    #007CB2

    oklch(55.6% 0.123 237.7)

Open the square palette in the generator

Palettes with this color

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

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

Similar named colors

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

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