#AF1FC7

Closest named color: Vibrant Purple (#AD03DE). oklch(55.5% 0.247 321.1), rgb(175, 31, 199).

Aa

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

About this color

#AF1FC7 is a medium-dark, vivid purple. In OKLCH its lightness is 55%, its chroma 0.247 and its hue 321°. Its hue sits between the warm and cool halves of the wheel. The nearest named color is Vibrant Purple (#AD03DE), ΔE 0.039 away. White text reads best on it, at 5.46:1.

Hue familyPurples
Lightnessmedium-dark (55%)
Chromavivid (0.247)
Temperaturein between
Nearest nameVibrant Purple (#AD03DE)
Black text3.84:1
White text5.46:1

Values

HEX#AF1FC7
RGBrgb(175, 31, 199)
HSLhsl(291, 73%, 45%)
OKLCHoklch(55.5% 0.247 321.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 #AF1FC7 5.46:1 AA Lc -81.0 Fine for body text
Black text on #AF1FC7 3.84:1 AA large text Lc 28.5 Dividers and decoration only
#AF1FC7 text on white 5.46:1 AA Lc 75.6 Fine for body text
#AF1FC7 text on black 3.84:1 AA large text Lc -26.1 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

    #FAF2FC

    oklch(97% 0.016 319.4)

  2. Step 100

    100

    #F4E3F7

    oklch(93.5% 0.032 321.1)

  3. Step 200

    200

    #ECCCF2

    oklch(88.4% 0.062 320.9)

  4. Step 300

    300

    #E2A9EC

    oklch(81% 0.111 321.4)

  5. Step 400

    400

    #D176E3

    oklch(70.6% 0.179 320.8)

  6. Step 500

    500

    #C44BDA

    oklch(63.1% 0.227 321.1)

  7. Step 600

    600 (this color)

    #AF1FC7

    oklch(55.5% 0.247 321.1)

  8. Step 700

    700

    #960AAC

    oklch(49% 0.229 321)

  9. Step 800

    800

    #7A128C

    oklch(42.7% 0.19 320.8)

  10. Step 900

    900

    #631B70

    oklch(37.8% 0.148 321)

  11. Step 950

    950

    #3A1241

    oklch(27% 0.093 321.4)

Export this scale for Tailwind in the Tailwind colors tool

#AF1FC7 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)#0060CB0.238
Deuteranopia (no green cones)#386EC40.219
Tritanopia (no blue cones)#B047770.148
Achromatopsia (no color)#6969690.249

Harmonies

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

Complementary

The opposite hue (180°).

  • #AF1FC7

    #AF1FC7

    oklch(55.5% 0.247 321.1)

  • #1D8B00

    #1D8B00

    oklch(55.5% 0.183 141.1)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #AF1FC7

    #AF1FC7

    oklch(55.5% 0.247 321.1)

  • #7C41F4

    #7C41F4

    oklch(55.5% 0.247 291.2)

  • #CB0083

    #CB0083

    oklch(55.4% 0.23 350.9)

Open the analogous palette in the generator

Split complementary

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

  • #AF1FC7

    #AF1FC7

    oklch(55.5% 0.247 321.1)

  • #777900

    #777900

    oklch(55.6% 0.122 110.9)

  • #00876B

    #00876B

    oklch(55.5% 0.108 171.4)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #AF1FC7

    #AF1FC7

    oklch(55.5% 0.247 321.1)

  • #956B00

    #956B00

    oklch(55.6% 0.115 81.4)

  • #00838A

    #00838A

    oklch(55.5% 0.094 201.4)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #AF1FC7

    #AF1FC7

    oklch(55.5% 0.247 321.1)

  • #B35400

    #B35400

    oklch(55.5% 0.145 50.8)

  • #1D8B00

    #1D8B00

    oklch(55.5% 0.183 141.1)

  • #007EA8

    #007EA8

    oklch(55.6% 0.112 230.6)

Open the square palette in the generator

Palettes with this color

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

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

Similar named colors

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

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