#AF38AA

Closest named color: Purply (#983FB2). oklch(55.6% 0.2 329.6), rgb(175, 56, 170).

Aa

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

About this color

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

Hue familyPurples
Lightnessmedium-dark (56%)
Chromavivid (0.200)
Temperaturein between
Nearest namePurply (#983FB2)
Black text3.96:1
White text5.29:1

Values

HEX#AF38AA
RGBrgb(175, 56, 170)
HSLhsl(303, 52%, 45%)
OKLCHoklch(55.6% 0.2 329.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 #AF38AA 5.29:1 AA Lc -80.7 Fine for body text
Black text on #AF38AA 3.96:1 AA large text Lc 28.8 Dividers and decoration only
#AF38AA text on white 5.29:1 AA Lc 75.3 Fine for body text
#AF38AA text on black 3.96:1 AA large text Lc -26.4 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

    #F4E4F2

    oklch(93.6% 0.025 329.7)

  3. Step 200

    200

    #EDCEE9

    oklch(88.5% 0.05 330.2)

  4. Step 300

    300

    #E2ACDD

    oklch(80.9% 0.09 329.5)

  5. Step 400

    400

    #D27DCC

    oklch(70.7% 0.145 329.5)

  6. Step 500

    500

    #C458BE

    oklch(63.1% 0.184 329.7)

  7. Step 600

    600 (this color)

    #AF38AA

    oklch(55.6% 0.2 329.6)

  8. Step 700

    700

    #962992

    oklch(49.1% 0.186 329.5)

  9. Step 800

    800

    #7A2476

    oklch(42.6% 0.154 329.8)

  10. Step 900

    900

    #632460

    oklch(37.8% 0.121 329.6)

  11. Step 950

    950

    #3A1638

    oklch(27% 0.076 329.6)

Export this scale for Tailwind in the Tailwind colors tool

#AF38AA 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)#2B61AD0.212
Deuteranopia (no green cones)#5971A70.181
Tritanopia (no blue cones)#B5476D0.109
Achromatopsia (no color)#6B6B6B0.202

Harmonies

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

Complementary

The opposite hue (180°).

  • #AF38AA

    #AF38AA

    oklch(55.6% 0.2 329.6)

  • #008B3D

    #008B3D

    oklch(55.6% 0.154 149.7)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #AF38AA

    #AF38AA

    oklch(55.6% 0.2 329.6)

  • #874CD5

    #874CD5

    oklch(55.5% 0.201 299.6)

  • #C7276F

    #C7276F

    oklch(55.5% 0.2 359.6)

Open the analogous palette in the generator

Split complementary

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

  • #AF38AA

    #AF38AA

    oklch(55.6% 0.2 329.6)

  • #6A7D00

    #6A7D00

    oklch(55.5% 0.131 119.7)

  • #008675

    #008675

    oklch(55.5% 0.101 179.7)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #AF38AA

    #AF38AA

    oklch(55.6% 0.2 329.6)

  • #8D6F00

    #8D6F00

    oklch(55.5% 0.113 89.9)

  • #008292

    #008292

    oklch(55.6% 0.096 209.8)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #AF38AA

    #AF38AA

    oklch(55.6% 0.2 329.6)

  • #A95D00

    #A95D00

    oklch(55.5% 0.13 59.8)

  • #008B3D

    #008B3D

    oklch(55.6% 0.154 149.7)

  • #007BB5

    #007BB5

    oklch(55.6% 0.127 239.8)

Open the square palette in the generator

Palettes with this color

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

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

Similar named colors

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

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