#AB42CA

Closest named color: Dark Orchid (#9932CC). oklch(57.9% 0.213 317.6), rgb(171, 66, 202).

Aa

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

About this color

#AB42CA is a medium-dark, vivid purple. In OKLCH its lightness is 58%, its chroma 0.213 and its hue 318°. Its hue sits between the warm and cool halves of the wheel. The nearest named color is Dark Orchid (#9932CC), ΔE 0.047 away. White text reads best on it, at 4.81:1.

Hue familyPurples
Lightnessmedium-dark (58%)
Chromavivid (0.213)
Temperaturein between
Nearest nameDark Orchid (#9932CC)
Black text4.36:1
White text4.81:1

Values

HEX#AB42CA
RGBrgb(171, 66, 202)
HSLhsl(286, 56%, 53%)
OKLCHoklch(57.9% 0.213 317.6)

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 #AB42CA 4.81:1 AA Lc -78.0 Fine for body text
Black text on #AB42CA 4.36:1 AA large text Lc 31.5 Non-text elements, placeholder text
#AB42CA text on white 4.81:1 AA Lc 72.5 Content text, not long reading
#AB42CA text on black 4.36:1 AA large text Lc -29.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

    #F9F3FB

    oklch(97.1% 0.012 317.7)

  2. Step 100

    100

    #F2E4F6

    oklch(93.5% 0.028 318.7)

  3. Step 200

    200

    #E8CFF1

    oklch(88.6% 0.053 317.1)

  4. Step 300

    300

    #DAADE9

    oklch(80.8% 0.096 317.6)

  5. Step 400

    400

    #C77FDF

    oklch(70.6% 0.154 317.3)

  6. Step 500

    500

    #B85AD5

    oklch(63.1% 0.196 317.6)

  7. Step 600

    600 (this color)

    #AB42CA

    oklch(57.9% 0.213 317.6)

  8. Step 700

    700

    #8C2AA8

    oklch(49.1% 0.199 317.5)

  9. Step 800

    800

    #722588

    oklch(42.7% 0.165 317.7)

  10. Step 900

    900

    #5C256D

    oklch(37.7% 0.128 317.4)

  11. Step 950

    950

    #361740

    oklch(27% 0.081 317.2)

Export this scale for Tailwind in the Tailwind colors tool

#AB42CA 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)#006BCE0.210
Deuteranopia (no green cones)#4675C70.180
Tritanopia (no blue cones)#AA5C810.136
Achromatopsia (no color)#7272720.215

Harmonies

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

Complementary

The opposite hue (180°).

  • #AB42CA

    #AB42CA

    oklch(57.9% 0.213 317.6)

  • #3C9000

    #3C9000

    oklch(57.8% 0.177 137.6)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #AB42CA

    #AB42CA

    oklch(57.9% 0.213 317.6)

  • #7959EE

    #7959EE

    oklch(57.9% 0.213 287.7)

  • #CC2D91

    #CC2D91

    oklch(58% 0.213 347.5)

Open the analogous palette in the generator

Split complementary

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

  • #AB42CA

    #AB42CA

    oklch(57.9% 0.213 317.6)

  • #827E00

    #827E00

    oklch(57.8% 0.124 107.5)

  • #00906C

    #00906C

    oklch(58% 0.118 167.5)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #AB42CA

    #AB42CA

    oklch(57.9% 0.213 317.6)

  • #A16F00

    #A16F00

    oklch(57.9% 0.121 77.5)

  • #008B8F

    #008B8F

    oklch(57.8% 0.098 198.4)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #AB42CA

    #AB42CA

    oklch(57.9% 0.213 317.6)

  • #C25500

    #C25500

    oklch(57.9% 0.159 47.5)

  • #3C9000

    #3C9000

    oklch(57.8% 0.177 137.6)

  • #0086AE

    #0086AE

    oklch(57.9% 0.113 227.9)

Open the square palette in the generator

Palettes with this color

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

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

Similar named colors

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

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