#AFB47F

Closest named color: Dark Khaki (#BDB76B). oklch(75.3% 0.072 112.5), rgb(175, 180, 127).

Aa

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

About this color

#AFB47F is a medium-light, moderately saturated yellow. In OKLCH its lightness is 75%, its chroma 0.072 and its hue 113°. Its hue sits between the warm and cool halves of the wheel. The nearest named color is Dark Khaki (#BDB76B), ΔE 0.032 away. Black text reads best on it, at 9.65:1.

Hue familyYellows
Lightnessmedium-light (75%)
Chromamoderately saturated (0.072)
Temperaturein between
Nearest nameDark Khaki (#BDB76B)
Black text9.65:1
White text2.17:1

Values

HEX#AFB47F
RGBrgb(175, 180, 127)
HSLhsl(66, 26%, 60%)
OKLCHoklch(75.3% 0.072 112.5)

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 #AFB47F 2.17:1 Fails Lc -47.5 Large or bold text, headings
Black text on #AFB47F 9.65:1 AAA Lc 61.2 Content text, not long reading
#AFB47F text on white 2.17:1 Fails Lc 42.7 Non-text elements, placeholder text
#AFB47F text on black 9.65:1 AAA Lc -59.4 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

    #F5F6F1

    oklch(97.1% 0.007 115.7)

  2. Step 100

    100

    #EAEBE1

    oklch(93.7% 0.013 111.3)

  3. Step 200

    200

    #D9DBC9

    oklch(88.5% 0.024 112)

  4. Step 300

    300

    #C0C4A3

    oklch(80.8% 0.045 113)

  5. Step 400

    400 (this color)

    #AFB47F

    oklch(75.3% 0.072 112.5)

  6. Step 500

    500

    #8A8F4B

    oklch(63% 0.091 112.4)

  7. Step 600

    600

    #74792C

    oklch(55.6% 0.1 112.7)

  8. Step 700

    700

    #62661F

    oklch(49.2% 0.093 112.5)

  9. Step 800

    800

    #50531C

    oklch(42.7% 0.076 112.1)

  10. Step 900

    900

    #42451D

    oklch(37.8% 0.06 112.8)

  11. Step 950

    950

    #272812

    oklch(26.9% 0.037 110.9)

Export this scale for Tailwind in the Tailwind colors tool

#AFB47F 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)#BCAF7B0.021
Deuteranopia (no green cones)#BCB1810.020
Tritanopia (no blue cones)#B6AEA60.062
Achromatopsia (no color)#B0B0B00.072

Harmonies

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

Complementary

The opposite hue (180°).

  • #AFB47F

    #AFB47F

    oklch(75.3% 0.072 112.5)

  • #B0A7D9

    #B0A7D9

    oklch(75.3% 0.072 292.8)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #AFB47F

    #AFB47F

    oklch(75.3% 0.072 112.5)

  • #C5AB7A

    #C5AB7A

    oklch(75.2% 0.072 82.9)

  • #95BB91

    #95BB91

    oklch(75.3% 0.072 142.4)

Open the analogous palette in the generator

Split complementary

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

  • #AFB47F

    #AFB47F

    oklch(75.3% 0.072 112.5)

  • #97AFDD

    #97AFDD

    oklch(75.2% 0.072 263.2)

  • #C5A0CA

    #C5A0CA

    oklch(75.3% 0.072 322.3)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #AFB47F

    #AFB47F

    oklch(75.3% 0.072 112.5)

  • #80B7D5

    #80B7D5

    oklch(75.2% 0.072 232.8)

  • #D49CB3

    #D49CB3

    oklch(75.2% 0.073 352.6)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #AFB47F

    #AFB47F

    oklch(75.3% 0.072 112.5)

  • #76BDC3

    #76BDC3

    oklch(75.4% 0.072 202.6)

  • #B0A7D9

    #B0A7D9

    oklch(75.3% 0.072 292.8)

  • #D99D9A

    #D99D9A

    oklch(75.2% 0.072 22.2)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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