#A172DF

Closest named color: Medium Purple (#9370DB). oklch(64.6% 0.162 302), rgb(161, 114, 223).

Aa

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

About this color

#A172DF is a medium-light, vivid purple. In OKLCH its lightness is 65%, its chroma 0.162 and its hue 302°. Its hue sits between the warm and cool halves of the wheel. The nearest named color is Medium Purple (#9370DB), ΔE 0.025 away. Black text reads best on it, at 5.98:1.

Hue familyPurples
Lightnessmedium-light (65%)
Chromavivid (0.162)
Temperaturein between
Nearest nameMedium Purple (#9370DB)
Black text5.98:1
White text3.50:1

Values

HEX#A172DF
RGBrgb(161, 114, 223)
HSLhsl(266, 63%, 66%)
OKLCHoklch(64.6% 0.162 302)

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 #A172DF 3.50:1 AA large text Lc -67.9 Content text, not long reading
Black text on #A172DF 5.98:1 AA Lc 41.7 Non-text elements, placeholder text
#A172DF text on white 3.50:1 AA large text Lc 62.4 Content text, not long reading
#A172DF text on black 5.98:1 AA Lc -39.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

    #F7F4FC

    oklch(97.2% 0.011 303.1)

  2. Step 100

    100

    #ECE7F7

    oklch(93.7% 0.022 300.2)

  3. Step 200

    200

    #DED3F2

    oklch(88.5% 0.044 301.7)

  4. Step 300

    300

    #CAB5EC

    oklch(80.9% 0.079 302.1)

  5. Step 400

    400

    #AF8CE2

    oklch(70.6% 0.127 302)

  6. Step 500

    500 (this color)

    #A172DF

    oklch(64.6% 0.162 302)

  7. Step 600

    600

    #8852C7

    oklch(55.5% 0.177 302.3)

  8. Step 700

    700

    #7342AC

    oklch(49% 0.164 302)

  9. Step 800

    800

    #5E378C

    oklch(42.7% 0.137 302.1)

  10. Step 900

    900

    #4D3170

    oklch(37.8% 0.106 302.1)

  11. Step 950

    950

    #2D1D41

    oklch(27% 0.067 302.7)

Export this scale for Tailwind in the Tailwind colors tool

#A172DF 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)#5088E30.114
Deuteranopia (no green cones)#5C88DC0.105
Tritanopia (no blue cones)#95869E0.124
Achromatopsia (no color)#8989890.163

Harmonies

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

Complementary

The opposite hue (180°).

  • #A172DF

    #A172DF

    oklch(64.6% 0.162 302)

  • #7F9C00

    #7F9C00

    oklch(64.7% 0.157 121.9)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #A172DF

    #A172DF

    oklch(64.6% 0.162 302)

  • #6D84F0

    #6D84F0

    oklch(64.7% 0.163 272.1)

  • #C564B9

    #C564B9

    oklch(64.6% 0.162 332.1)

Open the analogous palette in the generator

Split complementary

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

  • #A172DF

    #A172DF

    oklch(64.6% 0.162 302)

  • #AB8A00

    #AB8A00

    oklch(64.6% 0.132 91.8)

  • #1CA959

    #1CA959

    oklch(64.6% 0.163 151.9)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #A172DF

    #A172DF

    oklch(64.6% 0.162 302)

  • #CC7500

    #CC7500

    oklch(64.5% 0.149 61.9)

  • #00A493

    #00A493

    oklch(64.5% 0.115 182.1)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #A172DF

    #A172DF

    oklch(64.6% 0.162 302)

  • #DF614B

    #DF614B

    oklch(64.6% 0.162 31.8)

  • #7F9C00

    #7F9C00

    oklch(64.7% 0.157 121.9)

  • #009FB6

    #009FB6

    oklch(64.5% 0.113 212.6)

Open the square palette in the generator

Palettes with this color

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

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

Similar named colors

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

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