#A5217B

Closest named color: Red Violet (#9E0168). oklch(49.7% 0.187 344.5), rgb(165, 33, 123).

Aa

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

About this color

#A5217B is a medium-dark, vivid purple. In OKLCH its lightness is 50%, its chroma 0.187 and its hue 344°. Its hue sits on the warm side of the wheel. The nearest named color is Red Violet (#9E0168), ΔE 0.039 away. White text reads best on it, at 6.76:1.

Hue familyPurples
Lightnessmedium-dark (50%)
Chromavivid (0.187)
Temperaturewarm
Nearest nameRed Violet (#9E0168)
Black text3.10:1
White text6.76:1

Values

HEX#A5217B
RGBrgb(165, 33, 123)
HSLhsl(319, 67%, 39%)
OKLCHoklch(49.7% 0.187 344.5)

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 #A5217B 6.76:1 AA Lc -87.0 Fine for body text
Black text on #A5217B 3.10:1 AA large text Lc 22.1 Dividers and decoration only
#A5217B text on white 6.76:1 AA Lc 81.9 Fine for body text
#A5217B text on black 3.10:1 AA large text Lc -20.0 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 700.

  1. Step 50

    50

    #FCF2F7

    oklch(97% 0.013 345.5)

  2. Step 100

    100

    #F8E3EE

    oklch(93.6% 0.027 344.6)

  3. Step 200

    200

    #F3CCE1

    oklch(88.5% 0.052 344.6)

  4. Step 300

    300

    #EBA9CF

    oklch(80.8% 0.091 343.9)

  5. Step 400

    400

    #DE79B6

    oklch(70.7% 0.144 344.3)

  6. Step 500

    500

    #D251A4

    oklch(63% 0.185 344.2)

  7. Step 600

    600

    #BD2E8F

    oklch(55.5% 0.202 344.2)

  8. Step 700

    700 (this color)

    #A5217B

    oklch(49.7% 0.187 344.5)

  9. Step 800

    800

    #841D63

    oklch(42.6% 0.155 344.1)

  10. Step 900

    900

    #6B2050

    oklch(37.8% 0.12 345)

  11. Step 950

    950

    #3F142F

    oklch(27% 0.076 344.8)

Export this scale for Tailwind in the Tailwind colors tool

#A5217B 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)#334D7D0.209
Deuteranopia (no green cones)#5C63780.181
Tritanopia (no blue cones)#B01F4C0.080
Achromatopsia (no color)#5B5B5B0.189

Harmonies

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

Complementary

The opposite hue (180°).

  • #A5217B

    #A5217B

    oklch(49.7% 0.187 344.5)

  • #007553

    #007553

    oklch(49.8% 0.105 164.6)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #A5217B

    #A5217B

    oklch(49.7% 0.187 344.5)

  • #8834AA

    #8834AA

    oklch(49.7% 0.187 314.5)

  • #B41640

    #B41640

    oklch(49.8% 0.188 14.4)

Open the analogous palette in the generator

Split complementary

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

  • #A5217B

    #A5217B

    oklch(49.7% 0.187 344.5)

  • #3B7300

    #3B7300

    oklch(49.7% 0.144 134.6)

  • #007171

    #007171

    oklch(49.7% 0.085 194.8)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #A5217B

    #A5217B

    oklch(49.7% 0.187 344.5)

  • #6C6500

    #6C6500

    oklch(49.7% 0.105 104.9)

  • #006D8A

    #006D8A

    oklch(49.7% 0.094 224.5)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #A5217B

    #A5217B

    oklch(49.7% 0.187 344.5)

  • #855800

    #855800

    oklch(49.7% 0.105 74.7)

  • #007553

    #007553

    oklch(49.8% 0.105 164.6)

  • #0061BA

    #0061BA

    oklch(49.7% 0.16 254.3)

Open the square palette in the generator

Palettes with this color

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

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

Similar named colors

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

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