#AFB277

Closest named color: Dark Khaki (#BDB76B). oklch(74.7% 0.079 110.6), rgb(175, 178, 119).

Aa

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

About this color

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

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

Values

HEX#AFB277
RGBrgb(175, 178, 119)
HSLhsl(63, 28%, 58%)
OKLCHoklch(74.7% 0.079 110.6)

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 #AFB277 2.22:1 Fails Lc -48.5 Large or bold text, headings
Black text on #AFB277 9.45:1 AAA Lc 60.2 Content text, not long reading
#AFB277 text on white 2.22:1 Fails Lc 43.7 Non-text elements, placeholder text
#AFB277 text on black 9.45:1 AAA Lc -58.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

    #EAEBE0

    oklch(93.6% 0.015 110.9)

  3. Step 200

    200

    #D9DBC7

    oklch(88.4% 0.027 111.6)

  4. Step 300

    300

    #C2C4A0

    oklch(80.9% 0.049 110.1)

  5. Step 400

    400 (this color)

    #AFB277

    oklch(74.7% 0.079 110.6)

  6. Step 500

    500

    #8C8F41

    oklch(63.1% 0.102 111)

  7. Step 600

    600

    #77791D

    oklch(55.7% 0.111 110.8)

  8. Step 700

    700

    #64650E

    oklch(49% 0.102 110.3)

  9. Step 800

    800

    #515311

    oklch(42.7% 0.085 111.3)

  10. Step 900

    900

    #434517

    oklch(37.8% 0.066 111.5)

  11. Step 950

    950

    #27280F

    oklch(26.9% 0.041 110.9)

Export this scale for Tailwind in the Tailwind colors tool

#AFB277 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)#BBAD730.020
Deuteranopia (no green cones)#BBAF790.019
Tritanopia (no blue cones)#B7ABA30.070
Achromatopsia (no color)#AEAEAE0.079

Harmonies

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

Complementary

The opposite hue (180°).

  • #AFB277

    #AFB277

    oklch(74.7% 0.079 110.6)

  • #ACA5DC

    #ACA5DC

    oklch(74.7% 0.079 290.2)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #AFB277

    #AFB277

    oklch(74.7% 0.079 110.6)

  • #C7A873

    #C7A873

    oklch(74.7% 0.079 80.5)

  • #92BA8B

    #92BA8B

    oklch(74.7% 0.079 140.9)

Open the analogous palette in the generator

Split complementary

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

  • #AFB277

    #AFB277

    oklch(74.7% 0.079 110.6)

  • #90AEE0

    #90AEE0

    oklch(74.7% 0.08 260.5)

  • #C49DCC

    #C49DCC

    oklch(74.7% 0.079 320.6)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #AFB277

    #AFB277

    oklch(74.7% 0.079 110.6)

  • #77B7D6

    #77B7D6

    oklch(74.8% 0.079 230.1)

  • #D499B3

    #D499B3

    oklch(74.7% 0.078 351)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #AFB277

    #AFB277

    oklch(74.7% 0.079 110.6)

  • #6CBCC1

    #6CBCC1

    oklch(74.6% 0.079 200.8)

  • #ACA5DC

    #ACA5DC

    oklch(74.7% 0.079 290.2)

  • #DB9998

    #DB9998

    oklch(74.7% 0.08 20.1)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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