#A271D8

Closest named color: Medium Purple (#9370DB). oklch(64.2% 0.155 304.3), rgb(162, 113, 216).

Aa

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

About this color

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

Hue familyPurples
Lightnessmedium-light (64%)
Chromavivid (0.155)
Temperaturein between
Nearest nameMedium Purple (#9370DB)
Black text5.88:1
White text3.56:1

Values

HEX#A271D8
RGBrgb(162, 113, 216)
HSLhsl(269, 57%, 65%)
OKLCHoklch(64.2% 0.155 304.3)

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 #A271D8 3.56:1 AA large text Lc -68.5 Content text, not long reading
Black text on #A271D8 5.88:1 AA Lc 41.0 Non-text elements, placeholder text
#A271D8 text on white 3.56:1 AA large text Lc 63.0 Content text, not long reading
#A271D8 text on black 5.88:1 AA Lc -38.7 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

    #F7F4FB

    oklch(97.1% 0.01 305.4)

  2. Step 100

    100

    #EDE6F6

    oklch(93.5% 0.023 305.6)

  3. Step 200

    200

    #DFD3F0

    oklch(88.5% 0.041 304.3)

  4. Step 300

    300

    #CBB5E9

    oklch(80.9% 0.076 304)

  5. Step 400

    400

    #B18DDE

    oklch(70.7% 0.121 303.9)

  6. Step 500

    500 (this color)

    #A271D8

    oklch(64.2% 0.155 304.3)

  7. Step 600

    600

    #8A53C2

    oklch(55.6% 0.17 304.3)

  8. Step 700

    700

    #7543A7

    oklch(49.1% 0.157 304.3)

  9. Step 800

    800

    #5F3887

    oklch(42.7% 0.129 304.2)

  10. Step 900

    900

    #4E316C

    oklch(37.7% 0.101 304.7)

  11. Step 950

    950

    #2E1D3F

    oklch(27% 0.064 305.6)

Export this scale for Tailwind in the Tailwind colors tool

#A271D8 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)#5486DC0.113
Deuteranopia (no green cones)#6188D50.104
Tritanopia (no blue cones)#99839A0.117
Achromatopsia (no color)#8888880.156

Harmonies

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

Complementary

The opposite hue (180°).

  • #A271D8

    #A271D8

    oklch(64.2% 0.155 304.3)

  • #799B10

    #799B10

    oklch(64.1% 0.155 124)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #A271D8

    #A271D8

    oklch(64.2% 0.155 304.3)

  • #7182EA

    #7182EA

    oklch(64.2% 0.156 274.2)

  • #C464B3

    #C464B3

    oklch(64.2% 0.156 334.3)

Open the analogous palette in the generator

Split complementary

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

  • #A271D8

    #A271D8

    oklch(64.2% 0.155 304.3)

  • #A78A00

    #A78A00

    oklch(64.1% 0.131 94)

  • #16A75F

    #16A75F

    oklch(64.1% 0.156 154.2)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #A271D8

    #A271D8

    oklch(64.2% 0.155 304.3)

  • #C87600

    #C87600

    oklch(64.1% 0.145 64)

  • #00A295

    #00A295

    oklch(64% 0.113 184.9)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #A271D8

    #A271D8

    oklch(64.2% 0.155 304.3)

  • #DA6348

    #DA6348

    oklch(64.1% 0.156 34.2)

  • #799B10

    #799B10

    oklch(64.1% 0.155 124)

  • #009DB7

    #009DB7

    oklch(64.1% 0.113 215)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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