#AF34C4

Closest named color: Dark Orchid (#9932CC). oklch(56.7% 0.226 321.4), rgb(175, 52, 196).

Aa

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

About this color

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

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

Values

HEX#AF34C4
RGBrgb(175, 52, 196)
HSLhsl(291, 58%, 49%)
OKLCHoklch(56.7% 0.226 321.4)

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 #AF34C4 5.10:1 AA Lc -79.5 Fine for body text
Black text on #AF34C4 4.11:1 AA large text Lc 30.0 Dividers and decoration only
#AF34C4 text on white 5.10:1 AA Lc 74.1 Content text, not long reading
#AF34C4 text on black 4.11:1 AA large text Lc -27.6 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

    #EBCDF0

    oklch(88.4% 0.057 321.4)

  4. Step 300

    300

    #DFABE8

    oklch(80.9% 0.101 321.4)

  5. Step 400

    400

    #CE7BDD

    oklch(70.7% 0.163 321.3)

  6. Step 500

    500

    #C053D3

    oklch(63.1% 0.208 321.5)

  7. Step 600

    600 (this color)

    #AF34C4

    oklch(56.7% 0.226 321.4)

  8. Step 700

    700

    #931FA6

    oklch(49.1% 0.211 321.4)

  9. Step 800

    800

    #771E86

    oklch(42.6% 0.174 321.4)

  10. Step 900

    900

    #60216C

    oklch(37.7% 0.135 320.9)

  11. Step 950

    950

    #39153F

    oklch(27.1% 0.085 321.7)

Export this scale for Tailwind in the Tailwind colors tool

#AF34C4 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)#0065C80.227
Deuteranopia (no green cones)#4672C10.197
Tritanopia (no blue cones)#B1507A0.137
Achromatopsia (no color)#6E6E6E0.228

Harmonies

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

Complementary

The opposite hue (180°).

  • #AF34C4

    #AF34C4

    oklch(56.7% 0.226 321.4)

  • #1A8F00

    #1A8F00

    oklch(56.6% 0.188 141.4)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #AF34C4

    #AF34C4

    oklch(56.7% 0.226 321.4)

  • #7E4EED

    #7E4EED

    oklch(56.7% 0.225 291.4)

  • #CF1686

    #CF1686

    oklch(56.8% 0.226 351.3)

Open the analogous palette in the generator

Split complementary

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

  • #AF34C4

    #AF34C4

    oklch(56.7% 0.226 321.4)

  • #7A7D00

    #7A7D00

    oklch(56.8% 0.125 111.5)

  • #008B6E

    #008B6E

    oklch(56.7% 0.111 171.3)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #AF34C4

    #AF34C4

    oklch(56.7% 0.226 321.4)

  • #996E00

    #996E00

    oklch(56.7% 0.117 81.4)

  • #00878E

    #00878E

    oklch(56.7% 0.096 201.2)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #AF34C4

    #AF34C4

    oklch(56.7% 0.226 321.4)

  • #B85700

    #B85700

    oklch(56.7% 0.148 51)

  • #1A8F00

    #1A8F00

    oklch(56.6% 0.188 141.4)

  • #0081AE

    #0081AE

    oklch(56.6% 0.115 231.8)

Open the square palette in the generator

Palettes with this color

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

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

Similar named colors

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

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