#AF0242

Closest named color: Raspberry (#B00149). oklch(48.2% 0.192 11.3), rgb(175, 2, 66).

Aa

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

About this color

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

Hue familyReds
Lightnessmedium-dark (48%)
Chromavivid (0.192)
Temperaturewarm
Nearest nameRaspberry (#B00149)
Black text2.91:1
White text7.21:1

Values

HEX#AF0242
RGBrgb(175, 2, 66)
HSLhsl(338, 98%, 35%)
OKLCHoklch(48.2% 0.192 11.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 #AF0242 7.21:1 AAA Lc -87.6 Fine for body text
Black text on #AF0242 2.91:1 Fails Lc 21.5 Dividers and decoration only
#AF0242 text on white 7.21:1 AAA Lc 82.6 Fine for body text
#AF0242 text on black 2.91:1 Fails Lc -19.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

    #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

    #F6A8B1

    oklch(80.9% 0.093 11.7)

  5. Step 400

    400

    #ED7589

    oklch(70.6% 0.149 11.2)

  6. Step 500

    500

    #E34A6C

    oklch(63.1% 0.189 11.3)

  7. Step 600

    600

    #CF1F54

    oklch(55.7% 0.207 11.3)

  8. Step 700

    700 (this color)

    #AF0242

    oklch(48.2% 0.192 11.3)

  9. Step 800

    800

    #911238

    oklch(42.7% 0.159 11.5)

  10. Step 900

    900

    #741A31

    oklch(37.6% 0.124 10.8)

  11. Step 950

    950

    #45121D

    oklch(27.1% 0.078 11.1)

Export this scale for Tailwind in the Tailwind colors tool

#AF0242 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)#4242430.217
Deuteranopia (no green cones)#6A623E0.196
Tritanopia (no blue cones)#C000260.051
Achromatopsia (no color)#5757570.193

Harmonies

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

Complementary

The opposite hue (180°).

  • #AF0242

    #AF0242

    oklch(48.2% 0.192 11.3)

  • #006D6A

    #006D6A

    oklch(48.3% 0.083 191.4)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #AF0242

    #AF0242

    oklch(48.2% 0.192 11.3)

  • #9F197D

    #9F197D

    oklch(48.3% 0.192 341.3)

  • #9F3800

    #9F3800

    oklch(48.3% 0.147 41.4)

Open the analogous palette in the generator

Split complementary

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

  • #AF0242

    #AF0242

    oklch(48.2% 0.192 11.3)

  • #00704A

    #00704A

    oklch(48.2% 0.107 161.2)

  • #006981

    #006981

    oklch(48.2% 0.088 220.8)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #AF0242

    #AF0242

    oklch(48.2% 0.192 11.3)

  • #426C00

    #426C00

    oklch(48.2% 0.132 131.1)

  • #005FAA

    #005FAA

    oklch(48.1% 0.141 251.4)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #AF0242

    #AF0242

    oklch(48.2% 0.192 11.3)

  • #6A5F00

    #6A5F00

    oklch(48.1% 0.101 101.5)

  • #006D6A

    #006D6A

    oklch(48.3% 0.083 191.4)

  • #5244C5

    #5244C5

    oklch(48.1% 0.192 281.3)

Open the square palette in the generator

Palettes with this color

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

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

Similar named colors

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

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