#AF56D9

Closest named color: Medium Orchid (#BA55D3). oklch(61.7% 0.202 313.4), rgb(175, 86, 217).

Aa

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

About this color

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

Hue familyPurples
Lightnessmedium-dark (62%)
Chromavivid (0.202)
Temperaturein between
Nearest nameMedium Orchid (#BA55D3)
Black text5.15:1
White text4.07:1

Values

HEX#AF56D9
RGBrgb(175, 86, 217)
HSLhsl(281, 63%, 59%)
OKLCHoklch(61.7% 0.202 313.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 #AF56D9 4.07:1 AA large text Lc -72.9 Content text, not long reading
Black text on #AF56D9 5.15:1 AA Lc 36.7 Non-text elements, placeholder text
#AF56D9 text on white 4.07:1 AA large text Lc 67.4 Content text, not long reading
#AF56D9 text on black 5.15:1 AA Lc -34.3 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

    #F9F3FC

    oklch(97.1% 0.013 314.8)

  2. Step 100

    100

    #F1E5F8

    oklch(93.7% 0.028 313.4)

  3. Step 200

    200

    #E6CFF3

    oklch(88.5% 0.055 313.4)

  4. Step 300

    300

    #D7AEEE

    oklch(80.9% 0.098 313.2)

  5. Step 400

    400

    #C380E6

    oklch(70.7% 0.159 313.2)

  6. Step 500

    500 (this color)

    #AF56D9

    oklch(61.7% 0.202 313.4)

  7. Step 600

    600

    #9F3ACB

    oklch(55.6% 0.22 313.4)

  8. Step 700

    700

    #882AB0

    oklch(49.1% 0.205 313.3)

  9. Step 800

    800

    #6E258E

    oklch(42.6% 0.169 313.3)

  10. Step 900

    900

    #5A2572

    oklch(37.8% 0.133 313.6)

  11. Step 950

    950

    #341743

    oklch(27% 0.084 312.5)

Export this scale for Tailwind in the Tailwind colors tool

#AF56D9 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)#2879DD0.184
Deuteranopia (no green cones)#5080D60.161
Tritanopia (no blue cones)#AB6E900.135
Achromatopsia (no color)#7E7E7E0.204

Harmonies

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

Complementary

The opposite hue (180°).

  • #AF56D9

    #AF56D9

    oklch(61.7% 0.202 313.4)

  • #579A00

    #579A00

    oklch(61.7% 0.175 133.4)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #AF56D9

    #AF56D9

    oklch(61.7% 0.202 313.4)

  • #7A6CF8

    #7A6CF8

    oklch(61.7% 0.202 283.3)

  • #D244A4

    #D244A4

    oklch(61.7% 0.203 343.3)

Open the analogous palette in the generator

Split complementary

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

  • #AF56D9

    #AF56D9

    oklch(61.7% 0.202 313.4)

  • #948800

    #948800

    oklch(61.8% 0.13 103.3)

  • #009D6E

    #009D6E

    oklch(61.6% 0.132 163.3)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #AF56D9

    #AF56D9

    oklch(61.7% 0.202 313.4)

  • #B47700

    #B47700

    oklch(61.8% 0.131 73.5)

  • #009997

    #009997

    oklch(61.8% 0.106 193.1)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #AF56D9

    #AF56D9

    oklch(61.7% 0.202 313.4)

  • #DA5600

    #DA5600

    oklch(61.8% 0.181 43.5)

  • #579A00

    #579A00

    oklch(61.7% 0.175 133.4)

  • #0093B8

    #0093B8

    oklch(61.6% 0.116 223.8)

Open the square palette in the generator

Palettes with this color

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

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

Similar named colors

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

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