#AB1F5A

Closest named color: Raspberry (#B00149). oklch(49.3% 0.178 1.7), rgb(171, 31, 90).

Aa

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

About this color

#AB1F5A is a medium-dark, vivid red. In OKLCH its lightness is 49%, its chroma 0.178 and its hue 2°. Its hue sits on the warm side of the wheel. The nearest named color is Raspberry (#B00149), ΔE 0.028 away. White text reads best on it, at 6.82:1.

Hue familyReds
Lightnessmedium-dark (49%)
Chromavivid (0.178)
Temperaturewarm
Nearest nameRaspberry (#B00149)
Black text3.07:1
White text6.82:1

Values

HEX#AB1F5A
RGBrgb(171, 31, 90)
HSLhsl(335, 69%, 40%)
OKLCHoklch(49.3% 0.178 1.7)

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 #AB1F5A 6.82:1 AA Lc -87.1 Fine for body text
Black text on #AB1F5A 3.07:1 AA large text Lc 22.0 Dividers and decoration only
#AB1F5A text on white 6.82:1 AA Lc 82.0 Fine for body text
#AB1F5A text on black 3.07:1 AA large text Lc -19.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 700.

  1. Step 50

    50

    #FDF2F5

    oklch(97.1% 0.012 358.8)

  2. Step 100

    100

    #F9E3E8

    oklch(93.5% 0.025 2.1)

  3. Step 200

    200

    #F6CDD7

    oklch(88.6% 0.048 1.7)

  4. Step 300

    300

    #F0AABC

    oklch(80.9% 0.085 2.3)

  5. Step 400

    400

    #E5799A

    oklch(70.6% 0.138 1.8)

  6. Step 500

    500

    #DA5182

    oklch(63% 0.176 1.4)

  7. Step 600

    600

    #C62E6B

    oklch(55.7% 0.192 1.8)

  8. Step 700

    700 (this color)

    #AB1F5A

    oklch(49.3% 0.178 1.7)

  9. Step 800

    800

    #8A1D49

    oklch(42.7% 0.147 1.7)

  10. Step 900

    900

    #6F1F3D

    oklch(37.6% 0.115 1.5)

  11. Step 950

    950

    #421424

    oklch(27.1% 0.073 1.7)

Export this scale for Tailwind in the Tailwind colors tool

#AB1F5A 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)#43495B0.201
Deuteranopia (no green cones)#6864570.180
Tritanopia (no blue cones)#BA003A0.053
Achromatopsia (no color)#5B5B5B0.180

Harmonies

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

Complementary

The opposite hue (180°).

  • #AB1F5A

    #AB1F5A

    oklch(49.3% 0.178 1.7)

  • #007165

    #007165

    oklch(49.2% 0.088 182.2)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #AB1F5A

    #AB1F5A

    oklch(49.3% 0.178 1.7)

  • #972D8E

    #972D8E

    oklch(49.4% 0.179 331.6)

  • #B0240E

    #B0240E

    oklch(49.3% 0.179 31.6)

Open the analogous palette in the generator

Split complementary

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

  • #AB1F5A

    #AB1F5A

    oklch(49.3% 0.178 1.7)

  • #007539

    #007539

    oklch(49.2% 0.13 151.8)

  • #006E7D

    #006E7D

    oklch(49.4% 0.086 211.1)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #AB1F5A

    #AB1F5A

    oklch(49.3% 0.178 1.7)

  • #576B00

    #576B00

    oklch(49.4% 0.119 121.6)

  • #00679D

    #00679D

    oklch(49.2% 0.117 242)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #AB1F5A

    #AB1F5A

    oklch(49.3% 0.178 1.7)

  • #765F00

    #765F00

    oklch(49.4% 0.101 92.3)

  • #007165

    #007165

    oklch(49.2% 0.088 182.2)

  • #4152C5

    #4152C5

    oklch(49.4% 0.179 271.8)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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