#AF1A51

Closest named color: Raspberry (#B00149). oklch(49.5% 0.183 6.3), rgb(175, 26, 81).

Aa

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

About this color

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

Hue familyReds
Lightnessmedium-dark (49%)
Chromavivid (0.183)
Temperaturewarm
Nearest nameRaspberry (#B00149)
Black text3.08:1
White text6.79:1

Values

HEX#AF1A51
RGBrgb(175, 26, 81)
HSLhsl(338, 74%, 39%)
OKLCHoklch(49.5% 0.183 6.3)

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 #AF1A51 6.79:1 AA Lc -86.8 Fine for body text
Black text on #AF1A51 3.08:1 AA large text Lc 22.3 Dividers and decoration only
#AF1A51 text on white 6.79:1 AA Lc 81.7 Fine for body text
#AF1A51 text on black 3.08:1 AA large text Lc -20.2 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

    #FDF2F4

    oklch(97% 0.012 4.7)

  2. Step 100

    100

    #FAE3E7

    oklch(93.6% 0.026 5.7)

  3. Step 200

    200

    #F7CCD4

    oklch(88.4% 0.05 5.6)

  4. Step 300

    300

    #F3A9B7

    oklch(80.9% 0.089 6.8)

  5. Step 400

    400

    #E97892

    oklch(70.8% 0.141 6.8)

  6. Step 500

    500

    #DE4E78

    oklch(63% 0.181 6.1)

  7. Step 600

    600

    #C92961

    oklch(55.5% 0.197 6.2)

  8. Step 700

    700 (this color)

    #AF1A51

    oklch(49.5% 0.183 6.3)

  9. Step 800

    800

    #8D1942

    oklch(42.7% 0.152 6.1)

  10. Step 900

    900

    #711E37

    oklch(37.6% 0.117 6.7)

  11. Step 950

    950

    #431321

    oklch(27% 0.075 5.7)

Export this scale for Tailwind in the Tailwind colors tool

#AF1A51 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)#4548520.207
Deuteranopia (no green cones)#6B654D0.187
Tritanopia (no blue cones)#BF00340.049
Achromatopsia (no color)#5B5B5B0.185

Harmonies

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

Complementary

The opposite hue (180°).

  • #AF1A51

    #AF1A51

    oklch(49.5% 0.183 6.3)

  • #007169

    #007169

    oklch(49.4% 0.086 186.3)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #AF1A51

    #AF1A51

    oklch(49.5% 0.183 6.3)

  • #9D2888

    #9D2888

    oklch(49.6% 0.184 336.3)

  • #AC2F00

    #AC2F00

    oklch(49.5% 0.168 36.4)

Open the analogous palette in the generator

Split complementary

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

  • #AF1A51

    #AF1A51

    oklch(49.5% 0.183 6.3)

  • #007544

    #007544

    oklch(49.5% 0.119 156.3)

  • #006E82

    #006E82

    oklch(49.6% 0.088 216.1)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #AF1A51

    #AF1A51

    oklch(49.5% 0.183 6.3)

  • #4F6E00

    #4F6E00

    oklch(49.5% 0.127 126.5)

  • #0066A6

    #0066A6

    oklch(49.5% 0.129 246.5)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #AF1A51

    #AF1A51

    oklch(49.5% 0.183 6.3)

  • #736100

    #736100

    oklch(49.5% 0.102 96.4)

  • #007169

    #007169

    oklch(49.4% 0.086 186.3)

  • #4B4EC7

    #4B4EC7

    oklch(49.5% 0.184 276.2)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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