#AF5271

Closest named color: Dark Rose (#B5485D). oklch(56.3% 0.125 0.9), rgb(175, 82, 113).

Aa

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

About this color

#AF5271 is a medium-dark, moderately saturated red. In OKLCH its lightness is 56%, its chroma 0.125 and its hue 1°. Its hue sits on the warm side of the wheel. The nearest named color is Dark Rose (#B5485D), ΔE 0.031 away. White text reads best on it, at 4.92:1.

Hue familyReds
Lightnessmedium-dark (56%)
Chromamoderately saturated (0.125)
Temperaturewarm
Nearest nameDark Rose (#B5485D)
Black text4.26:1
White text4.92:1

Values

HEX#AF5271
RGBrgb(175, 82, 113)
HSLhsl(340, 37%, 50%)
OKLCHoklch(56.3% 0.125 0.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 #AF5271 4.92:1 AA Lc -79.0 Fine for body text
Black text on #AF5271 4.26:1 AA large text Lc 30.5 Non-text elements, placeholder text
#AF5271 text on white 4.92:1 AA Lc 73.6 Content text, not long reading
#AF5271 text on black 4.26:1 AA large text Lc -28.1 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 600.

  1. Step 50

    50

    #FAF3F5

    oklch(97% 0.008 357.8)

  2. Step 100

    100

    #F4E6E9

    oklch(93.7% 0.016 2.7)

  3. Step 200

    200

    #ECD1D8

    oklch(88.5% 0.031 0.3)

  4. Step 300

    300

    #E1B2BE

    oklch(80.9% 0.057 1.4)

  5. Step 400

    400

    #D0899D

    oklch(70.8% 0.09 1.3)

  6. Step 500

    500

    #C26A85

    oklch(63.2% 0.115 1.3)

  7. Step 600

    600 (this color)

    #AF5271

    oklch(56.3% 0.125 0.9)

  8. Step 700

    700

    #94405D

    oklch(49.1% 0.117 0.7)

  9. Step 800

    800

    #78354C

    oklch(42.6% 0.097 0.4)

  10. Step 900

    900

    #612F3F

    oklch(37.6% 0.075 1)

  11. Step 950

    950

    #391C25

    oklch(27% 0.047 0.9)

Export this scale for Tailwind in the Tailwind colors tool

#AF5271 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)#6166720.139
Deuteranopia (no green cones)#79776F0.127
Tritanopia (no blue cones)#BC4A5D0.036
Achromatopsia (no color)#7070700.127

Harmonies

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

Complementary

The opposite hue (180°).

  • #AF5271

    #AF5271

    oklch(56.3% 0.125 0.9)

  • #008879

    #008879

    oklch(56.2% 0.101 181.5)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #AF5271

    #AF5271

    oklch(56.3% 0.125 0.9)

  • #9E5797

    #9E5797

    oklch(56.2% 0.126 330.8)

  • #B35546

    #B35546

    oklch(56.3% 0.126 30.7)

Open the analogous palette in the generator

Split complementary

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

  • #AF5271

    #AF5271

    oklch(56.3% 0.125 0.9)

  • #30894D

    #30894D

    oklch(56.2% 0.125 150.9)

  • #008496

    #008496

    oklch(56.3% 0.098 211.4)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #AF5271

    #AF5271

    oklch(56.3% 0.125 0.9)

  • #6B8018

    #6B8018

    oklch(56.4% 0.126 121)

  • #137DB7

    #137DB7

    oklch(56.3% 0.125 240.6)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #AF5271

    #AF5271

    oklch(56.3% 0.125 0.9)

  • #8F7200

    #8F7200

    oklch(56.4% 0.115 91)

  • #008879

    #008879

    oklch(56.2% 0.101 181.5)

  • #5A6FBF

    #5A6FBF

    oklch(56.3% 0.126 270.8)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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