#AFA2A7

Closest named color: Dark Gray (#A9A9A9). oklch(72.5% 0.017 352.2), rgb(175, 162, 167).

Aa

Black text reads best on this color (8.54:1).

About this color

#AFA2A7 is a medium-light close to neutral grey. In OKLCH its lightness is 72%, its chroma 0.017. It has too little chroma to lean warm or cool. The nearest named color is Dark Gray (#A9A9A9), ΔE 0.019 away. Black text reads best on it, at 8.54:1.

Hue familyNeutrals
Lightnessmedium-light (72%)
Chromaclose to neutral grey (0.017)
Temperatureneutral
Nearest nameDark Gray (#A9A9A9)
Black text8.54:1
White text2.45:1

Values

HEX#AFA2A7
RGBrgb(175, 162, 167)
HSLhsl(337, 8%, 66%)
OKLCHoklch(72.5% 0.017 352.2)

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 #AFA2A7 2.45:1 Fails Lc -53.4 Large or bold text, headings
Black text on #AFA2A7 8.54:1 AAA Lc 55.7 Large or bold text, headings
#AFA2A7 text on white 2.45:1 Fails Lc 48.3 Large or bold text, headings
#AFA2A7 text on black 8.54:1 AAA Lc -53.7 Large or bold text, headings

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 400.

  1. Step 50

    50

    #F6F5F5

    oklch(97.1% 0.001 17.2)

  2. Step 100

    100

    #EBE9EA

    oklch(93.6% 0.003 345.2)

  3. Step 200

    200

    #DCD7D9

    oklch(88.4% 0.006 350.8)

  4. Step 300

    300

    #C6BEC1

    oklch(80.9% 0.01 352.4)

  5. Step 400

    400 (this color)

    #AFA2A7

    oklch(72.5% 0.017 352.2)

  6. Step 500

    500

    #94848B

    oklch(63% 0.022 349.4)

  7. Step 600

    600

    #7F6E75

    oklch(55.6% 0.024 351.1)

  8. Step 700

    700

    #6B5C62

    oklch(49.1% 0.021 351.8)

  9. Step 800

    800

    #574B50

    oklch(42.7% 0.018 350.8)

  10. Step 900

    900

    #483F42

    oklch(37.8% 0.013 355.6)

  11. Step 950

    950

    #2A2527

    oklch(27.1% 0.008 351.5)

Export this scale for Tailwind in the Tailwind colors tool

#AFA2A7 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)#A3A4A70.018
Deuteranopia (no green cones)#A6A6A70.016
Tritanopia (no blue cones)#B1A2A40.005
Achromatopsia (no color)#A5A5A50.017

Harmonies

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

Complementary

The opposite hue (180°).

  • #AFA2A7

    #AFA2A7

    oklch(72.5% 0.017 352.2)

  • #9CAAA5

    #9CAAA5

    oklch(72.5% 0.017 172.4)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #AFA2A7

    #AFA2A7

    oklch(72.5% 0.017 352.2)

  • #ABA3AC

    #ABA3AC

    oklch(72.5% 0.016 322.4)

  • #B0A2A1

    #B0A2A1

    oklch(72.4% 0.016 22.5)

Open the analogous palette in the generator

Split complementary

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

  • #AFA2A7

    #AFA2A7

    oklch(72.5% 0.017 352.2)

  • #A0A99F

    #A0A99F

    oklch(72.5% 0.017 142.5)

  • #9BA9AA

    #9BA9AA

    oklch(72.4% 0.016 202)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #AFA2A7

    #AFA2A7

    oklch(72.5% 0.017 352.2)

  • #A6A79C

    #A6A79C

    oklch(72.4% 0.016 111)

  • #9CA8AF

    #9CA8AF

    oklch(72.4% 0.017 233.1)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #AFA2A7

    #AFA2A7

    oklch(72.5% 0.017 352.2)

  • #ABA59B

    #ABA59B

    oklch(72.4% 0.016 80.7)

  • #9CAAA5

    #9CAAA5

    oklch(72.5% 0.017 172.4)

  • #A0A6B1

    #A0A6B1

    oklch(72.4% 0.017 262.7)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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