#AF4EC2

Closest named color: Medium Orchid (#BA55D3). oklch(59.3% 0.191 320.8), rgb(175, 78, 194).

Aa

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

About this color

#AF4EC2 is a medium-dark, vivid purple. In OKLCH its lightness is 59%, its chroma 0.191 and its hue 321°. Its hue sits between the warm and cool halves of the wheel. The nearest named color is Medium Orchid (#BA55D3), ΔE 0.035 away. Black text reads best on it, at 4.69:1.

Hue familyPurples
Lightnessmedium-dark (59%)
Chromavivid (0.191)
Temperaturein between
Nearest nameMedium Orchid (#BA55D3)
Black text4.69:1
White text4.47:1

Values

HEX#AF4EC2
RGBrgb(175, 78, 194)
HSLhsl(290, 49%, 53%)
OKLCHoklch(59.3% 0.191 320.8)

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 #AF4EC2 4.47:1 AA large text Lc -75.9 Fine for body text
Black text on #AF4EC2 4.69:1 AA Lc 33.6 Non-text elements, placeholder text
#AF4EC2 text on white 4.47:1 AA large text Lc 70.4 Content text, not long reading
#AF4EC2 text on black 4.69:1 AA Lc -31.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 600.

  1. Step 50

    50

    #F9F3FA

    oklch(97.1% 0.011 321.3)

  2. Step 100

    100

    #F2E5F4

    oklch(93.7% 0.024 321.7)

  3. Step 200

    200

    #E8CFED

    oklch(88.4% 0.049 320.6)

  4. Step 300

    300

    #DAAFE3

    oklch(80.9% 0.086 320.5)

  5. Step 400

    400

    #C782D5

    oklch(70.7% 0.139 320.7)

  6. Step 500

    500

    #B85FC9

    oklch(63.1% 0.177 321)

  7. Step 600

    600 (this color)

    #AF4EC2

    oklch(59.3% 0.191 320.8)

  8. Step 700

    700

    #8B339C

    oklch(49.1% 0.177 320.8)

  9. Step 800

    800

    #712B7F

    oklch(42.6% 0.148 320.6)

  10. Step 900

    900

    #5C2866

    oklch(37.7% 0.116 320.9)

  11. Step 950

    950

    #36193C

    oklch(27.1% 0.072 320.5)

Export this scale for Tailwind in the Tailwind colors tool

#AF4EC2 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)#3470C60.186
Deuteranopia (no green cones)#597BBF0.162
Tritanopia (no blue cones)#B060810.118
Achromatopsia (no color)#7777770.193

Harmonies

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

Complementary

The opposite hue (180°).

  • #AF4EC2

    #AF4EC2

    oklch(59.3% 0.191 320.8)

  • #279808

    #279808

    oklch(59.4% 0.192 140.8)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #AF4EC2

    #AF4EC2

    oklch(59.3% 0.191 320.8)

  • #8261E5

    #8261E5

    oklch(59.3% 0.192 290.9)

  • #CC3F8C

    #CC3F8C

    oklch(59.3% 0.191 350.9)

Open the analogous palette in the generator

Split complementary

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

  • #AF4EC2

    #AF4EC2

    oklch(59.3% 0.191 320.8)

  • #838400

    #838400

    oklch(59.3% 0.13 110.3)

  • #009475

    #009475

    oklch(59.3% 0.116 171.1)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #AF4EC2

    #AF4EC2

    oklch(59.3% 0.191 320.8)

  • #A37500

    #A37500

    oklch(59.3% 0.123 81.1)

  • #009097

    #009097

    oklch(59.4% 0.101 200.9)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #AF4EC2

    #AF4EC2

    oklch(59.3% 0.191 320.8)

  • #C45D00

    #C45D00

    oklch(59.4% 0.155 51)

  • #279808

    #279808

    oklch(59.4% 0.192 140.8)

  • #008AB8

    #008AB8

    oklch(59.4% 0.119 230.8)

Open the square palette in the generator

Palettes with this color

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

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

Similar named colors

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

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