#AF58B2

Closest named color: Amethyst (#9B5FC0). oklch(59.8% 0.161 326.1), rgb(175, 88, 178).

Aa

Black text reads best on this color (4.86:1).

About this color

#AF58B2 is a medium-dark, vivid purple. In OKLCH its lightness is 60%, its chroma 0.161 and its hue 326°. Its hue sits between the warm and cool halves of the wheel. The nearest named color is Amethyst (#9B5FC0), ΔE 0.042 away. Black text reads best on it, at 4.86:1.

Hue familyPurples
Lightnessmedium-dark (60%)
Chromavivid (0.161)
Temperaturein between
Nearest nameAmethyst (#9B5FC0)
Black text4.86:1
White text4.31:1

Values

HEX#AF58B2
RGBrgb(175, 88, 178)
HSLhsl(298, 37%, 52%)
OKLCHoklch(59.8% 0.161 326.1)

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 #AF58B2 4.31:1 AA large text Lc -75.0 Content text, not long reading
Black text on #AF58B2 4.86:1 AA Lc 34.6 Non-text elements, placeholder text
#AF58B2 text on white 4.31:1 AA large text Lc 69.5 Content text, not long reading
#AF58B2 text on black 4.86:1 AA Lc -32.2 Non-text elements, placeholder text

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 500.

  1. Step 50

    50

    #F9F3F9

    oklch(97% 0.01 325.7)

  2. Step 100

    100

    #F2E5F2

    oklch(93.6% 0.022 325.8)

  3. Step 200

    200

    #E9D0E9

    oklch(88.6% 0.043 325.9)

  4. Step 300

    300

    #DCAFDC

    oklch(80.8% 0.079 326.3)

  5. Step 400

    400

    #C984CA

    oklch(70.7% 0.125 326.3)

  6. Step 500

    500 (this color)

    #AF58B2

    oklch(59.8% 0.161 326.1)

  7. Step 600

    600

    #A546A9

    oklch(55.6% 0.175 326)

  8. Step 700

    700

    #8D3791

    oklch(49.2% 0.162 325.9)

  9. Step 800

    800

    #732E75

    oklch(42.7% 0.135 326.5)

  10. Step 900

    900

    #5D2A5F

    oklch(37.7% 0.105 326)

  11. Step 950

    950

    #371938

    oklch(27% 0.068 326.1)

Export this scale for Tailwind in the Tailwind colors tool

#AF58B2 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)#4E73B50.157
Deuteranopia (no green cones)#697DAF0.138
Tritanopia (no blue cones)#B3627D0.092
Achromatopsia (no color)#7A7A7A0.162

Harmonies

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

Complementary

The opposite hue (180°).

  • #AF58B2

    #AF58B2

    oklch(59.8% 0.161 326.1)

  • #2B983E

    #2B983E

    oklch(59.9% 0.161 146)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #AF58B2

    #AF58B2

    oklch(59.8% 0.161 326.1)

  • #8A67D3

    #8A67D3

    oklch(59.8% 0.16 296.2)

  • #C64F83

    #C64F83

    oklch(59.8% 0.16 355.8)

Open the analogous palette in the generator

Split complementary

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

  • #AF58B2

    #AF58B2

    oklch(59.8% 0.161 326.1)

  • #7C8900

    #7C8900

    oklch(59.9% 0.137 116.2)

  • #00957D

    #00957D

    oklch(59.8% 0.112 175.9)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #AF58B2

    #AF58B2

    oklch(59.8% 0.161 326.1)

  • #A07900

    #A07900

    oklch(59.8% 0.122 85.9)

  • #00909E

    #00909E

    oklch(59.7% 0.102 206.9)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #AF58B2

    #AF58B2

    oklch(59.8% 0.161 326.1)

  • #BF6400

    #BF6400

    oklch(59.8% 0.146 56.3)

  • #2B983E

    #2B983E

    oklch(59.9% 0.161 146)

  • #008AC2

    #008AC2

    oklch(59.9% 0.129 236.1)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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