#AB2797

Closest named color: Warm Purple (#952E8F). oklch(52.5% 0.203 335.2), rgb(171, 39, 151).

Aa

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

About this color

#AB2797 is a medium-dark, vivid pink. In OKLCH its lightness is 52%, its chroma 0.203 and its hue 335°. Its hue sits on the warm side of the wheel. The nearest named color is Warm Purple (#952E8F), ΔE 0.045 away. White text reads best on it, at 6.05:1.

Hue familyPinks
Lightnessmedium-dark (52%)
Chromavivid (0.203)
Temperaturewarm
Nearest nameWarm Purple (#952E8F)
Black text3.46:1
White text6.05:1

Values

HEX#AB2797
RGBrgb(171, 39, 151)
HSLhsl(309, 63%, 41%)
OKLCHoklch(52.5% 0.203 335.2)

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 #AB2797 6.05:1 AA Lc -84.2 Fine for body text
Black text on #AB2797 3.46:1 AA large text Lc 25.1 Dividers and decoration only
#AB2797 text on white 6.05:1 AA Lc 78.9 Fine for body text
#AB2797 text on black 3.46:1 AA large text Lc -22.9 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

    #FBF2F9

    oklch(97% 0.013 333)

  2. Step 100

    100

    #F6E4F1

    oklch(93.7% 0.026 335.5)

  3. Step 200

    200

    #EFCDE7

    oklch(88.5% 0.051 334.2)

  4. Step 300

    300

    #E6AAD8

    oklch(80.8% 0.092 335)

  5. Step 400

    400

    #D77BC4

    oklch(70.7% 0.145 335.1)

  6. Step 500

    500

    #CA54B5

    oklch(63% 0.187 335.1)

  7. Step 600

    600 (this color)

    #AB2797

    oklch(52.5% 0.203 335.2)

  8. Step 700

    700

    #9C248A

    oklch(49.2% 0.189 335)

  9. Step 800

    800

    #7F2070

    oklch(42.7% 0.157 335.2)

  10. Step 900

    900

    #66225A

    oklch(37.7% 0.121 335.3)

  11. Step 950

    950

    #3C1535

    oklch(27% 0.077 335)

Export this scale for Tailwind in the Tailwind colors tool

#AB2797 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)#27569A0.223
Deuteranopia (no green cones)#5869940.188
Tritanopia (no blue cones)#B4335D0.103
Achromatopsia (no color)#6262620.205

Harmonies

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

Complementary

The opposite hue (180°).

  • #AB2797

    #AB2797

    oklch(52.5% 0.203 335.2)

  • #007F48

    #007F48

    oklch(52.4% 0.129 155.3)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #AB2797

    #AB2797

    oklch(52.5% 0.203 335.2)

  • #873DC5

    #873DC5

    oklch(52.5% 0.203 305.3)

  • #C0125A

    #C0125A

    oklch(52.5% 0.203 5.2)

Open the analogous palette in the generator

Split complementary

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

  • #AB2797

    #AB2797

    oklch(52.5% 0.203 335.2)

  • #597700

    #597700

    oklch(52.6% 0.133 125.2)

  • #007B71

    #007B71

    oklch(52.4% 0.092 185)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #AB2797

    #AB2797

    oklch(52.5% 0.203 335.2)

  • #7E6900

    #7E6900

    oklch(52.6% 0.108 95.2)

  • #00778C

    #00778C

    oklch(52.4% 0.093 215.7)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #AB2797

    #AB2797

    oklch(52.5% 0.203 335.2)

  • #985A00

    #985A00

    oklch(52.6% 0.118 65.3)

  • #007F48

    #007F48

    oklch(52.4% 0.129 155.3)

  • #006FB1

    #006FB1

    oklch(52.4% 0.133 245.4)

Open the square palette in the generator

Palettes with this color

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

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

Similar named colors

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

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