#AF40B6

Closest named color: Purply (#983FB2). oklch(57% 0.2 325.3), rgb(175, 64, 182).

Aa

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

About this color

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

Hue familyPurples
Lightnessmedium-dark (57%)
Chromavivid (0.200)
Temperaturein between
Nearest namePurply (#983FB2)
Black text4.23:1
White text4.96:1

Values

HEX#AF40B6
RGBrgb(175, 64, 182)
HSLhsl(296, 48%, 48%)
OKLCHoklch(57% 0.2 325.3)

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 #AF40B6 4.96:1 AA Lc -78.9 Fine for body text
Black text on #AF40B6 4.23:1 AA large text Lc 30.6 Non-text elements, placeholder text
#AF40B6 text on white 4.96:1 AA Lc 73.5 Content text, not long reading
#AF40B6 text on black 4.23:1 AA large text Lc -28.2 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

    #FAF3FA

    oklch(97.2% 0.012 325.7)

  2. Step 100

    100

    #F3E4F4

    oklch(93.5% 0.027 323.9)

  3. Step 200

    200

    #EBCEEC

    oklch(88.5% 0.051 325)

  4. Step 300

    300

    #DFADE1

    oklch(81% 0.09 325.1)

  5. Step 400

    400

    #CD7FD1

    oklch(70.7% 0.143 325.2)

  6. Step 500

    500

    #BF5AC5

    oklch(63.1% 0.184 325.3)

  7. Step 600

    600 (this color)

    #AF40B6

    oklch(57% 0.2 325.3)

  8. Step 700

    700

    #922C98

    oklch(49.1% 0.185 325.6)

  9. Step 800

    800

    #77267C

    oklch(42.8% 0.155 325.4)

  10. Step 900

    900

    #602563

    oklch(37.6% 0.12 325.7)

  11. Step 950

    950

    #38173A

    oklch(26.9% 0.075 325.2)

Export this scale for Tailwind in the Tailwind colors tool

#AF40B6 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)#2A67B90.205
Deuteranopia (no green cones)#5775B30.176
Tritanopia (no blue cones)#B351760.115
Achromatopsia (no color)#7070700.202

Harmonies

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

Complementary

The opposite hue (180°).

  • #AF40B6

    #AF40B6

    oklch(57% 0.2 325.3)

  • #009128

    #009128

    oklch(57.1% 0.178 145.3)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #AF40B6

    #AF40B6

    oklch(57% 0.2 325.3)

  • #8454DE

    #8454DE

    oklch(57% 0.201 295.3)

  • #CA2F7D

    #CA2F7D

    oklch(57% 0.201 355.1)

Open the analogous palette in the generator

Split complementary

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

  • #AF40B6

    #AF40B6

    oklch(57% 0.2 325.3)

  • #758000

    #758000

    oklch(57.1% 0.13 115.6)

  • #008C74

    #008C74

    oklch(57.1% 0.108 174.9)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #AF40B6

    #AF40B6

    oklch(57% 0.2 325.3)

  • #977100

    #977100

    oklch(57.1% 0.117 85.1)

  • #008793

    #008793

    oklch(56.9% 0.097 205.8)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #AF40B6

    #AF40B6

    oklch(57% 0.2 325.3)

  • #B45C00

    #B45C00

    oklch(56.9% 0.141 55.1)

  • #009128

    #009128

    oklch(57.1% 0.178 145.3)

  • #0081B5

    #0081B5

    oklch(57% 0.122 235.7)

Open the square palette in the generator

Palettes with this color

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

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

Similar named colors

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

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