#AF34B8

Closest named color: Purply (#983FB2). oklch(56% 0.216 325), rgb(175, 52, 184).

Aa

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

About this color

#AF34B8 is a medium-dark, vivid purple. In OKLCH its lightness is 56%, its chroma 0.216 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.046 away. White text reads best on it, at 5.24:1.

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

Values

HEX#AF34B8
RGBrgb(175, 52, 184)
HSLhsl(296, 56%, 46%)
OKLCHoklch(56% 0.216 325)

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 #AF34B8 5.24:1 AA Lc -80.3 Fine for body text
Black text on #AF34B8 4.00:1 AA large text Lc 29.2 Dividers and decoration only
#AF34B8 text on white 5.24:1 AA Lc 74.9 Content text, not long reading
#AF34B8 text on black 4.00:1 AA large text Lc -26.8 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

    #F4E4F4

    oklch(93.6% 0.027 325.8)

  3. Step 200

    200

    #ECCDED

    oklch(88.4% 0.055 325.1)

  4. Step 300

    300

    #E1ABE3

    oklch(80.9% 0.097 325.3)

  5. Step 400

    400

    #D07BD5

    oklch(70.6% 0.156 325.1)

  6. Step 500

    500

    #C255CA

    oklch(63.1% 0.198 324.9)

  7. Step 600

    600 (this color)

    #AF34B8

    oklch(56% 0.216 325)

  8. Step 700

    700

    #95239D

    oklch(49.1% 0.201 325.1)

  9. Step 800

    800

    #792080

    oklch(42.7% 0.167 324.8)

  10. Step 900

    900

    #622266

    oklch(37.7% 0.129 325.3)

  11. Step 950

    950

    #3A153C

    oklch(27.1% 0.083 325.5)

Export this scale for Tailwind in the Tailwind colors tool

#AF34B8 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)#0B63BC0.228
Deuteranopia (no green cones)#4F71B50.191
Tritanopia (no blue cones)#B34A730.125
Achromatopsia (no color)#6C6C6C0.218

Harmonies

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

Complementary

The opposite hue (180°).

  • #AF34B8

    #AF34B8

    oklch(56% 0.216 325)

  • #008D24

    #008D24

    oklch(55.9% 0.176 145)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #AF34B8

    #AF34B8

    oklch(56% 0.216 325)

  • #824CE3

    #824CE3

    oklch(56.1% 0.216 294.8)

  • #CC1B7B

    #CC1B7B

    oklch(56.1% 0.217 355)

Open the analogous palette in the generator

Split complementary

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

  • #AF34B8

    #AF34B8

    oklch(56% 0.216 325)

  • #737C00

    #737C00

    oklch(56% 0.127 114.7)

  • #008871

    #008871

    oklch(56% 0.105 175.2)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #AF34B8

    #AF34B8

    oklch(56% 0.216 325)

  • #936E00

    #936E00

    oklch(56% 0.115 85.2)

  • #00848F

    #00848F

    oklch(56% 0.096 205.1)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #AF34B8

    #AF34B8

    oklch(56% 0.216 325)

  • #B05A00

    #B05A00

    oklch(56% 0.138 55.2)

  • #008D24

    #008D24

    oklch(55.9% 0.176 145)

  • #007EB0

    #007EB0

    oklch(56% 0.119 235.2)

Open the square palette in the generator

Palettes with this color

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

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

Similar named colors

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

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