#AF0C42

Closest named color: Raspberry (#B00149). oklch(48.5% 0.188 11.9), rgb(175, 12, 66).

Aa

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

About this color

#AF0C42 is a medium-dark, vivid red. In OKLCH its lightness is 48%, its chroma 0.188 and its hue 12°. Its hue sits on the warm side of the wheel. The nearest named color is Raspberry (#B00149), ΔE 0.013 away. White text reads best on it, at 7.10:1.

Hue familyReds
Lightnessmedium-dark (48%)
Chromavivid (0.188)
Temperaturewarm
Nearest nameRaspberry (#B00149)
Black text2.95:1
White text7.10:1

Values

HEX#AF0C42
RGBrgb(175, 12, 66)
HSLhsl(340, 87%, 37%)
OKLCHoklch(48.5% 0.188 11.9)

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 #AF0C42 7.10:1 AAA Lc -87.6 Fine for body text
Black text on #AF0C42 2.95:1 Fails Lc 21.5 Dividers and decoration only
#AF0C42 text on white 7.10:1 AAA Lc 82.5 Fine for body text
#AF0C42 text on black 2.95:1 Fails Lc -19.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 700.

  1. Step 50

    50

    #FEF2F3

    oklch(97.1% 0.013 11.5)

  2. Step 100

    100

    #FBE3E5

    oklch(93.6% 0.026 11.9)

  3. Step 200

    200

    #F9CCD0

    oklch(88.5% 0.051 12.1)

  4. Step 300

    300

    #F5A8B1

    oklch(80.8% 0.091 11.6)

  5. Step 400

    400

    #EC7688

    oklch(70.6% 0.146 12)

  6. Step 500

    500

    #E24C6B

    oklch(63.1% 0.186 12)

  7. Step 600

    600

    #CD2353

    oklch(55.5% 0.202 11.8)

  8. Step 700

    700 (this color)

    #AF0C42

    oklch(48.5% 0.188 11.9)

  9. Step 800

    800

    #901538

    oklch(42.7% 0.156 11.8)

  10. Step 900

    900

    #741C30

    oklch(37.8% 0.122 12.1)

  11. Step 950

    950

    #44121C

    oklch(26.9% 0.077 12)

Export this scale for Tailwind in the Tailwind colors tool

#AF0C42 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)#4444430.213
Deuteranopia (no green cones)#6B633E0.192
Tritanopia (no blue cones)#C000280.048
Achromatopsia (no color)#5858580.190

Harmonies

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

Complementary

The opposite hue (180°).

  • #AF0C42

    #AF0C42

    oklch(48.5% 0.188 11.9)

  • #006E6B

    #006E6B

    oklch(48.6% 0.084 191.5)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #AF0C42

    #AF0C42

    oklch(48.5% 0.188 11.9)

  • #9F1D7C

    #9F1D7C

    oklch(48.5% 0.188 341.9)

  • #9F3900

    #9F3900

    oklch(48.4% 0.147 41.8)

Open the analogous palette in the generator

Split complementary

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

  • #AF0C42

    #AF0C42

    oklch(48.5% 0.188 11.9)

  • #00714C

    #00714C

    oklch(48.5% 0.106 162)

  • #006A83

    #006A83

    oklch(48.6% 0.089 221.5)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #AF0C42

    #AF0C42

    oklch(48.5% 0.188 11.9)

  • #416D00

    #416D00

    oklch(48.4% 0.134 131.7)

  • #0060AD

    #0060AD

    oklch(48.6% 0.144 251.7)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #AF0C42

    #AF0C42

    oklch(48.5% 0.188 11.9)

  • #6B6000

    #6B6000

    oklch(48.4% 0.101 101.6)

  • #006E6B

    #006E6B

    oklch(48.6% 0.084 191.5)

  • #5446C4

    #5446C4

    oklch(48.5% 0.188 281.8)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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