#AB40D2

Closest named color: Dark Orchid (#9932CC). oklch(58.2% 0.223 315.5), rgb(171, 64, 210).

Aa

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

About this color

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

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

Values

HEX#AB40D2
RGBrgb(171, 64, 210)
HSLhsl(284, 62%, 54%)
OKLCHoklch(58.2% 0.223 315.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 #AB40D2 4.77:1 AA Lc -77.7 Fine for body text
Black text on #AB40D2 4.39:1 AA large text Lc 31.8 Non-text elements, placeholder text
#AB40D2 text on white 4.77:1 AA Lc 72.2 Content text, not long reading
#AB40D2 text on black 4.39:1 AA large text Lc -29.4 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

    #F9F3FC

    oklch(97.1% 0.013 314.8)

  2. Step 100

    100

    #F2E4F7

    oklch(93.6% 0.029 317.2)

  3. Step 200

    200

    #E8CFF3

    oklch(88.6% 0.055 315.6)

  4. Step 300

    300

    #DAADED

    oklch(80.9% 0.1 315.7)

  5. Step 400

    400

    #C67EE4

    oklch(70.6% 0.161 315.4)

  6. Step 500

    500

    #B758DC

    oklch(63.1% 0.206 315.4)

  7. Step 600

    600 (this color)

    #AB40D2

    oklch(58.2% 0.223 315.5)

  8. Step 700

    700

    #8B27AE

    oklch(49.1% 0.207 315.4)

  9. Step 800

    800

    #71238D

    oklch(42.7% 0.172 315.4)

  10. Step 900

    900

    #5C2471

    oklch(37.8% 0.134 315.5)

  11. Step 950

    950

    #361642

    oklch(27% 0.085 315.8)

Export this scale for Tailwind in the Tailwind colors tool

#AB40D2 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)#006CD60.209
Deuteranopia (no green cones)#3D75CF0.187
Tritanopia (no blue cones)#A85E850.145
Achromatopsia (no color)#7272720.225

Harmonies

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

Complementary

The opposite hue (180°).

  • #AB40D2

    #AB40D2

    oklch(58.2% 0.223 315.5)

  • #479000

    #479000

    oklch(58.3% 0.172 135.6)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #AB40D2

    #AB40D2

    oklch(58.2% 0.223 315.5)

  • #7659F6

    #7659F6

    oklch(58.3% 0.223 285.6)

  • #CE2797

    #CE2797

    oklch(58.2% 0.223 345.5)

Open the analogous palette in the generator

Split complementary

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

  • #AB40D2

    #AB40D2

    oklch(58.2% 0.223 315.5)

  • #867E00

    #867E00

    oklch(58.2% 0.124 105.2)

  • #009169

    #009169

    oklch(58.2% 0.122 165.3)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #AB40D2

    #AB40D2

    oklch(58.2% 0.223 315.5)

  • #A46F00

    #A46F00

    oklch(58.2% 0.122 75.8)

  • #008D8E

    #008D8E

    oklch(58.3% 0.099 195.7)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #AB40D2

    #AB40D2

    oklch(58.2% 0.223 315.5)

  • #C65200

    #C65200

    oklch(58.1% 0.165 45.4)

  • #479000

    #479000

    oklch(58.3% 0.172 135.6)

  • #0088AC

    #0088AC

    oklch(58.3% 0.11 224.9)

Open the square palette in the generator

Palettes with this color

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

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

Similar named colors

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

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