#AF1F4C

Closest named color: Raspberry (#B00149). oklch(49.7% 0.179 9.3), rgb(175, 31, 76).

Aa

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

About this color

#AF1F4C is a medium-dark, vivid red. In OKLCH its lightness is 50%, its chroma 0.179 and its hue 9°. Its hue sits on the warm side of the wheel. The nearest named color is Raspberry (#B00149), ΔE 0.019 away. White text reads best on it, at 6.72:1.

Hue familyReds
Lightnessmedium-dark (50%)
Chromavivid (0.179)
Temperaturewarm
Nearest nameRaspberry (#B00149)
Black text3.12:1
White text6.72:1

Values

HEX#AF1F4C
RGBrgb(175, 31, 76)
HSLhsl(341, 70%, 40%)
OKLCHoklch(49.7% 0.179 9.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 #AF1F4C 6.72:1 AA Lc -86.7 Fine for body text
Black text on #AF1F4C 3.12:1 AA large text Lc 22.5 Dividers and decoration only
#AF1F4C text on white 6.72:1 AA Lc 81.6 Fine for body text
#AF1F4C text on black 3.12:1 AA large text Lc -20.3 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

    #FAE3E6

    oklch(93.5% 0.026 8.6)

  3. Step 200

    200

    #F7CDD2

    oklch(88.6% 0.048 10)

  4. Step 300

    300

    #F2AAB5

    oklch(80.9% 0.086 9.1)

  5. Step 400

    400

    #E8798E

    oklch(70.7% 0.138 9.3)

  6. Step 500

    500

    #DE5172

    oklch(63.2% 0.177 9.5)

  7. Step 600

    600

    #C92D5B

    oklch(55.7% 0.192 9.3)

  8. Step 700

    700 (this color)

    #AF1F4C

    oklch(49.7% 0.179 9.3)

  9. Step 800

    800

    #8D1C3D

    oklch(42.8% 0.148 9.6)

  10. Step 900

    900

    #711F34

    oklch(37.7% 0.115 9.4)

  11. Step 950

    950

    #43141F

    oklch(27.1% 0.073 9.1)

Export this scale for Tailwind in the Tailwind colors tool

#AF1F4C 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)#48494D0.201
Deuteranopia (no green cones)#6D66480.183
Tritanopia (no blue cones)#C000330.045
Achromatopsia (no color)#5C5C5C0.180

Harmonies

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

Complementary

The opposite hue (180°).

  • #AF1F4C

    #AF1F4C

    oklch(49.7% 0.179 9.3)

  • #00726C

    #00726C

    oklch(49.8% 0.086 188.4)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #AF1F4C

    #AF1F4C

    oklch(49.7% 0.179 9.3)

  • #9E2A82

    #9E2A82

    oklch(49.6% 0.178 339.4)

  • #A83600

    #A83600

    oklch(49.6% 0.158 39.2)

Open the analogous palette in the generator

Split complementary

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

  • #AF1F4C

    #AF1F4C

    oklch(49.7% 0.179 9.3)

  • #00754A

    #00754A

    oklch(49.6% 0.114 159.3)

  • #006E85

    #006E85

    oklch(49.7% 0.09 219)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #AF1F4C

    #AF1F4C

    oklch(49.7% 0.179 9.3)

  • #4A7000

    #4A7000

    oklch(49.7% 0.132 129.2)

  • #0065AC

    #0065AC

    oklch(49.7% 0.137 249)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #AF1F4C

    #AF1F4C

    oklch(49.7% 0.179 9.3)

  • #716300

    #716300

    oklch(49.8% 0.103 99.6)

  • #00726C

    #00726C

    oklch(49.8% 0.086 188.4)

  • #524EC4

    #524EC4

    oklch(49.7% 0.179 279.2)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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