#AF54D7

Closest named color: Medium Orchid (#BA55D3). oklch(61.3% 0.203 314.1), rgb(175, 84, 215).

Aa

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

About this color

#AF54D7 is a medium-dark, vivid purple. In OKLCH its lightness is 61%, its chroma 0.203 and its hue 314°. 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.07:1.

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

Values

HEX#AF54D7
RGBrgb(175, 84, 215)
HSLhsl(282, 62%, 59%)
OKLCHoklch(61.3% 0.203 314.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 #AF54D7 4.14:1 AA large text Lc -73.4 Content text, not long reading
Black text on #AF54D7 5.07:1 AA Lc 36.2 Non-text elements, placeholder text
#AF54D7 text on white 4.14:1 AA large text Lc 67.9 Content text, not long reading
#AF54D7 text on black 5.07:1 AA Lc -33.8 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

    #E7CFF3

    oklch(88.5% 0.055 314.5)

  4. Step 300

    300

    #D8AEEE

    oklch(81% 0.099 313.8)

  5. Step 400

    400

    #C47FE5

    oklch(70.6% 0.16 314.1)

  6. Step 500

    500 (this color)

    #AF54D7

    oklch(61.3% 0.203 314.1)

  7. Step 600

    600

    #A039CB

    oklch(55.6% 0.221 313.9)

  8. Step 700

    700

    #8929AF

    oklch(49.1% 0.205 314.1)

  9. Step 800

    800

    #6F258E

    oklch(42.7% 0.17 313.8)

  10. Step 900

    900

    #5A2571

    oklch(37.7% 0.132 314)

  11. Step 950

    950

    #351742

    oklch(27% 0.083 314.5)

Export this scale for Tailwind in the Tailwind colors tool

#AF54D7 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)#2678DB0.187
Deuteranopia (no green cones)#4F7FD40.164
Tritanopia (no blue cones)#AC6C8E0.135
Achromatopsia (no color)#7D7D7D0.204

Harmonies

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

Complementary

The opposite hue (180°).

  • #AF54D7

    #AF54D7

    oklch(61.3% 0.203 314.1)

  • #539900

    #539900

    oklch(61.2% 0.176 134.1)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #AF54D7

    #AF54D7

    oklch(61.3% 0.203 314.1)

  • #7B6AF7

    #7B6AF7

    oklch(61.4% 0.203 284.2)

  • #D242A1

    #D242A1

    oklch(61.3% 0.204 344.3)

Open the analogous palette in the generator

Split complementary

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

  • #AF54D7

    #AF54D7

    oklch(61.3% 0.203 314.1)

  • #918700

    #918700

    oklch(61.3% 0.13 104.3)

  • #009C6F

    #009C6F

    oklch(61.3% 0.13 164.2)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #AF54D7

    #AF54D7

    oklch(61.3% 0.203 314.1)

  • #B27600

    #B27600

    oklch(61.3% 0.13 73.8)

  • #009797

    #009797

    oklch(61.2% 0.105 194.8)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #AF54D7

    #AF54D7

    oklch(61.3% 0.203 314.1)

  • #D75600

    #D75600

    oklch(61.3% 0.179 44)

  • #539900

    #539900

    oklch(61.2% 0.176 134.1)

  • #0092B7

    #0092B7

    oklch(61.3% 0.115 224)

Open the square palette in the generator

Palettes with this color

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

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

Similar named colors

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

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