#AF34C7

Closest named color: Dark Orchid (#9932CC). oklch(56.9% 0.229 320.5), rgb(175, 52, 199).

Aa

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

About this color

#AF34C7 is a medium-dark, vivid purple. In OKLCH its lightness is 57%, its chroma 0.229 and its hue 320°. Its hue sits between the warm and cool halves of the wheel. The nearest named color is Dark Orchid (#9932CC), ΔE 0.045 away. White text reads best on it, at 5.07:1.

Hue familyPurples
Lightnessmedium-dark (57%)
Chromavivid (0.229)
Temperaturein between
Nearest nameDark Orchid (#9932CC)
Black text4.13:1
White text5.07:1

Values

HEX#AF34C7
RGBrgb(175, 52, 199)
HSLhsl(290, 59%, 49%)
OKLCHoklch(56.9% 0.229 320.5)

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 #AF34C7 5.07:1 AA Lc -79.3 Fine for body text
Black text on #AF34C7 4.13:1 AA large text Lc 30.2 Non-text elements, placeholder text
#AF34C7 text on white 5.07:1 AA Lc 73.9 Content text, not long reading
#AF34C7 text on black 4.13:1 AA large text Lc -27.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

    #FAF3FB

    oklch(97.2% 0.013 321.9)

  2. Step 100

    100

    #F3E4F6

    oklch(93.6% 0.029 320.6)

  3. Step 200

    200

    #EBCDF1

    oklch(88.4% 0.058 320.6)

  4. Step 300

    300

    #DFABEA

    oklch(80.9% 0.103 320.4)

  5. Step 400

    400

    #CD7BDF

    oklch(70.7% 0.164 320.2)

  6. Step 500

    500

    #BF53D5

    oklch(63.1% 0.209 320.5)

  7. Step 600

    600 (this color)

    #AF34C7

    oklch(56.9% 0.229 320.5)

  8. Step 700

    700

    #921EA8

    oklch(49% 0.213 320.4)

  9. Step 800

    800

    #771D88

    oklch(42.7% 0.176 320.6)

  10. Step 900

    900

    #60206D

    oklch(37.7% 0.138 320.4)

  11. Step 950

    950

    #381540

    oklch(27% 0.086 319.8)

Export this scale for Tailwind in the Tailwind colors tool

#AF34C7 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)#0066CB0.226
Deuteranopia (no green cones)#4373C40.200
Tritanopia (no blue cones)#B0517B0.140
Achromatopsia (no color)#6E6E6E0.231

Harmonies

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

Complementary

The opposite hue (180°).

  • #AF34C7

    #AF34C7

    oklch(56.9% 0.229 320.5)

  • #258F00

    #258F00

    oklch(56.8% 0.185 140.5)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #AF34C7

    #AF34C7

    oklch(56.9% 0.229 320.5)

  • #7D4EF0

    #7D4EF0

    oklch(56.9% 0.229 290.6)

  • #D01488

    #D01488

    oklch(57% 0.229 350.8)

Open the analogous palette in the generator

Split complementary

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

  • #AF34C7

    #AF34C7

    oklch(56.9% 0.229 320.5)

  • #7C7D00

    #7C7D00

    oklch(57% 0.125 110.3)

  • #008C6E

    #008C6E

    oklch(57% 0.112 170.7)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #AF34C7

    #AF34C7

    oklch(56.9% 0.229 320.5)

  • #9B6E00

    #9B6E00

    oklch(57% 0.118 80.2)

  • #00888E

    #00888E

    oklch(57% 0.097 200.3)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #AF34C7

    #AF34C7

    oklch(56.9% 0.229 320.5)

  • #BA5700

    #BA5700

    oklch(57% 0.15 50.5)

  • #258F00

    #258F00

    oklch(56.8% 0.185 140.5)

  • #0082AD

    #0082AD

    oklch(56.8% 0.114 230.5)

Open the square palette in the generator

Palettes with this color

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

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

Similar named colors

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

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