#AFB172

Closest named color: Dark Khaki (#BDB76B). oklch(74.4% 0.084 109.8), rgb(175, 177, 114).

Aa

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

About this color

#AFB172 is a medium-light, moderately saturated yellow. In OKLCH its lightness is 74%, its chroma 0.084 and its hue 110°. Its hue sits on the warm side of the wheel. The nearest named color is Dark Khaki (#BDB76B), ΔE 0.029 away. Black text reads best on it, at 9.35:1.

Hue familyYellows
Lightnessmedium-light (74%)
Chromamoderately saturated (0.084)
Temperaturewarm
Nearest nameDark Khaki (#BDB76B)
Black text9.35:1
White text2.24:1

Values

HEX#AFB172
RGBrgb(175, 177, 114)
HSLhsl(62, 29%, 57%)
OKLCHoklch(74.4% 0.084 109.8)

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 #AFB172 2.24:1 Fails Lc -49.0 Large or bold text, headings
Black text on #AFB172 9.35:1 AAA Lc 59.7 Large or bold text, headings
#AFB172 text on white 2.24:1 Fails Lc 44.2 Non-text elements, placeholder text
#AFB172 text on black 9.35:1 AAA Lc -57.9 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

    #EAEBE0

    oklch(93.6% 0.015 110.9)

  3. Step 200

    200

    #DADBC5

    oklch(88.5% 0.03 109.1)

  4. Step 300

    300

    #C2C49D

    oklch(80.9% 0.053 109.9)

  5. Step 400

    400 (this color)

    #AFB172

    oklch(74.4% 0.084 109.8)

  6. Step 500

    500

    #8E8F3B

    oklch(63.2% 0.107 109.7)

  7. Step 600

    600

    #78780F

    oklch(55.5% 0.116 109.7)

  8. Step 700

    700

    #656500

    oklch(49.1% 0.107 109.8)

  9. Step 800

    800

    #525307

    oklch(42.7% 0.09 110.5)

  10. Step 900

    900

    #444512

    oklch(37.8% 0.071 110.4)

  11. Step 950

    950

    #28280C

    oklch(27% 0.044 109)

Export this scale for Tailwind in the Tailwind colors tool

#AFB172 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)#BAAC6D0.019
Deuteranopia (no green cones)#BBAE750.020
Tritanopia (no blue cones)#B7AAA10.074
Achromatopsia (no color)#ADADAD0.084

Harmonies

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

Complementary

The opposite hue (180°).

  • #AFB172

    #AFB172

    oklch(74.4% 0.084 109.8)

  • #ABA3DE

    #ABA3DE

    oklch(74.3% 0.085 290.4)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #AFB172

    #AFB172

    oklch(74.4% 0.084 109.8)

  • #C8A66E

    #C8A66E

    oklch(74.3% 0.083 79.4)

  • #90B987

    #90B987

    oklch(74.3% 0.083 140)

Open the analogous palette in the generator

Split complementary

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

  • #AFB172

    #AFB172

    oklch(74.4% 0.084 109.8)

  • #8DADE1

    #8DADE1

    oklch(74.3% 0.084 260)

  • #C49BCD

    #C49BCD

    oklch(74.4% 0.084 320.2)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #AFB172

    #AFB172

    oklch(74.4% 0.084 109.8)

  • #72B6D7

    #72B6D7

    oklch(74.3% 0.084 230.4)

  • #D596B4

    #D596B4

    oklch(74.3% 0.085 349.3)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #AFB172

    #AFB172

    oklch(74.4% 0.084 109.8)

  • #66BCC1

    #66BCC1

    oklch(74.3% 0.084 200.4)

  • #ABA3DE

    #ABA3DE

    oklch(74.3% 0.085 290.4)

  • #DC9796

    #DC9796

    oklch(74.4% 0.084 20.2)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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