#AF2A9F

Closest named color: Warm Purple (#952E8F). oklch(53.8% 0.208 333.6), rgb(175, 42, 159).

Aa

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

About this color

#AF2A9F is a medium-dark, vivid purple. In OKLCH its lightness is 54%, its chroma 0.208 and its hue 334°. Its hue sits between the warm and cool halves of the wheel. The nearest named color is Warm Purple (#952E8F), ΔE 0.056 away. White text reads best on it, at 5.74:1.

Hue familyPurples
Lightnessmedium-dark (54%)
Chromavivid (0.208)
Temperaturein between
Nearest nameWarm Purple (#952E8F)
Black text3.65:1
White text5.74:1

Values

HEX#AF2A9F
RGBrgb(175, 42, 159)
HSLhsl(307, 61%, 43%)
OKLCHoklch(53.8% 0.208 333.6)

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 #AF2A9F 5.74:1 AA Lc -82.8 Fine for body text
Black text on #AF2A9F 3.65:1 AA large text Lc 26.6 Dividers and decoration only
#AF2A9F text on white 5.74:1 AA Lc 77.4 Fine for body text
#AF2A9F text on black 3.65:1 AA large text Lc -24.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

    #FBF2F9

    oklch(97% 0.013 333)

  2. Step 100

    100

    #F6E4F2

    oklch(93.7% 0.027 333.3)

  3. Step 200

    200

    #EFCDE8

    oklch(88.5% 0.052 333.1)

  4. Step 300

    300

    #E6AADA

    oklch(80.9% 0.094 333.6)

  5. Step 400

    400

    #D77AC7

    oklch(70.6% 0.15 333.7)

  6. Step 500

    500

    #CA53B9

    oklch(63.1% 0.192 333.5)

  7. Step 600

    600 (this color)

    #AF2A9F

    oklch(53.8% 0.208 333.6)

  8. Step 700

    700

    #9C218D

    oklch(49.1% 0.194 333.8)

  9. Step 800

    800

    #7E1F73

    oklch(42.6% 0.16 333.2)

  10. Step 900

    900

    #66215D

    oklch(37.7% 0.125 333.3)

  11. Step 950

    950

    #3C1536

    oklch(27% 0.078 333.8)

Export this scale for Tailwind in the Tailwind colors tool

#AF2A9F 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)#255AA20.228
Deuteranopia (no green cones)#586D9C0.193
Tritanopia (no blue cones)#B738620.108
Achromatopsia (no color)#6666660.210

Harmonies

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

Complementary

The opposite hue (180°).

  • #AF2A9F

    #AF2A9F

    oklch(53.8% 0.208 333.6)

  • #008446

    #008446

    oklch(53.8% 0.137 153.4)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #AF2A9F

    #AF2A9F

    oklch(53.8% 0.208 333.6)

  • #8941CE

    #8941CE

    oklch(53.9% 0.208 303.5)

  • #C61461

    #C61461

    oklch(53.9% 0.208 3.7)

Open the analogous palette in the generator

Split complementary

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

  • #AF2A9F

    #AF2A9F

    oklch(53.8% 0.208 333.6)

  • #5F7A00

    #5F7A00

    oklch(53.8% 0.133 123.6)

  • #008074

    #008074

    oklch(53.9% 0.096 183.5)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #AF2A9F

    #AF2A9F

    oklch(53.8% 0.208 333.6)

  • #846C00

    #846C00

    oklch(53.9% 0.11 93.5)

  • #007C8F

    #007C8F

    oklch(53.9% 0.094 213.2)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #AF2A9F

    #AF2A9F

    oklch(53.8% 0.208 333.6)

  • #9E5C00

    #9E5C00

    oklch(53.8% 0.122 63.9)

  • #008446

    #008446

    oklch(53.8% 0.137 153.4)

  • #0074B4

    #0074B4

    oklch(53.8% 0.132 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 #AF2A9F, closest first.

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

Similar named colors

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

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