#AB42B5

Closest named color: Purply (#983FB2). oklch(56.7% 0.194 324.1), rgb(171, 66, 181).

Aa

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

About this color

#AB42B5 is a medium-dark, vivid purple. In OKLCH its lightness is 57%, its chroma 0.194 and its hue 324°. Its hue sits between the warm and cool halves of the wheel. The nearest named color is Purply (#983FB2), ΔE 0.038 away. White text reads best on it, at 5.02:1.

Hue familyPurples
Lightnessmedium-dark (57%)
Chromavivid (0.194)
Temperaturein between
Nearest namePurply (#983FB2)
Black text4.17:1
White text5.02:1

Values

HEX#AB42B5
RGBrgb(171, 66, 181)
HSLhsl(295, 47%, 48%)
OKLCHoklch(56.7% 0.194 324.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 #AB42B5 5.02:1 AA Lc -79.4 Fine for body text
Black text on #AB42B5 4.17:1 AA large text Lc 30.1 Non-text elements, placeholder text
#AB42B5 text on white 5.02:1 AA Lc 74.0 Content text, not long reading
#AB42B5 text on black 4.17:1 AA large text Lc -27.7 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

    #FAF3FA

    oklch(97.2% 0.012 325.7)

  2. Step 100

    100

    #F3E4F4

    oklch(93.5% 0.027 323.9)

  3. Step 200

    200

    #EACFEC

    oklch(88.6% 0.049 323.8)

  4. Step 300

    300

    #DDAEE1

    oklch(80.9% 0.087 323.8)

  5. Step 400

    400

    #CB80D1

    oklch(70.6% 0.14 324.3)

  6. Step 500

    500

    #BC5DC5

    oklch(63.1% 0.178 324.1)

  7. Step 600

    600 (this color)

    #AB42B5

    oklch(56.7% 0.194 324.1)

  8. Step 700

    700

    #8F2F99

    oklch(49% 0.181 323.8)

  9. Step 800

    800

    #75297C

    oklch(42.8% 0.15 324.3)

  10. Step 900

    900

    #5E2764

    oklch(37.7% 0.117 323.6)

  11. Step 950

    950

    #37183A

    oklch(27% 0.072 324)

Export this scale for Tailwind in the Tailwind colors tool

#AB42B5 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)#2C67B80.197
Deuteranopia (no green cones)#5573B20.169
Tritanopia (no blue cones)#AE53760.114
Achromatopsia (no color)#6F6F6F0.196

Harmonies

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

Complementary

The opposite hue (180°).

  • #AB42B5

    #AB42B5

    oklch(56.7% 0.194 324.1)

  • #00901D

    #00901D

    oklch(56.7% 0.183 144.1)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #AB42B5

    #AB42B5

    oklch(56.7% 0.194 324.1)

  • #8056DB

    #8056DB

    oklch(56.7% 0.194 293.8)

  • #C6327E

    #C6327E

    oklch(56.6% 0.195 354)

Open the analogous palette in the generator

Split complementary

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

  • #AB42B5

    #AB42B5

    oklch(56.7% 0.194 324.1)

  • #767E00

    #767E00

    oklch(56.7% 0.128 114.1)

  • #008A72

    #008A72

    oklch(56.5% 0.107 174.7)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #AB42B5

    #AB42B5

    oklch(56.7% 0.194 324.1)

  • #966F00

    #966F00

    oklch(56.6% 0.116 84.1)

  • #008691

    #008691

    oklch(56.6% 0.097 204.9)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #AB42B5

    #AB42B5

    oklch(56.7% 0.194 324.1)

  • #B45A00

    #B45A00

    oklch(56.6% 0.142 53.9)

  • #00901D

    #00901D

    oklch(56.7% 0.183 144.1)

  • #0080B1

    #0080B1

    oklch(56.6% 0.119 234.3)

Open the square palette in the generator

Palettes with this color

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

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

Similar named colors

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

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