#AFA78B

Closest named color: Bland (#AFA88B). oklch(72.8% 0.04 93.9), rgb(175, 167, 139).

Aa

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

About this color

#AFA78B is a medium-light, muted yellow. In OKLCH its lightness is 73%, its chroma 0.040 and its hue 94°. Its hue sits on the warm side of the wheel. The nearest named color is Bland (#AFA88B), ΔE 0.003 away. Black text reads best on it, at 8.72:1.

Hue familyYellows
Lightnessmedium-light (73%)
Chromamuted (0.040)
Temperaturewarm
Nearest nameBland (#AFA88B)
Black text8.72:1
White text2.40:1

Values

HEX#AFA78B
RGBrgb(175, 167, 139)
HSLhsl(47, 18%, 62%)
OKLCHoklch(72.8% 0.04 93.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 #AFA78B 2.40:1 Fails Lc -52.4 Large or bold text, headings
Black text on #AFA78B 8.72:1 AAA Lc 56.6 Large or bold text, headings
#AFA78B text on white 2.40:1 Fails Lc 47.4 Large or bold text, headings
#AFA78B text on black 8.72:1 AAA Lc -54.6 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

    #F6F5F3

    oklch(97% 0.003 84.6)

  2. Step 100

    100

    #EBEAE4

    oklch(93.6% 0.008 98.9)

  3. Step 200

    200

    #DCD9CF

    oklch(88.5% 0.014 93)

  4. Step 300

    300

    #C6C1AF

    oklch(81% 0.025 94.1)

  5. Step 400

    400 (this color)

    #AFA78B

    oklch(72.8% 0.04 93.9)

  6. Step 500

    500

    #938966

    oklch(63% 0.051 94)

  7. Step 600

    600

    #7E734D

    oklch(55.6% 0.056 93.9)

  8. Step 700

    700

    #6A603E

    oklch(49% 0.051 93.6)

  9. Step 800

    800

    #574F34

    oklch(42.8% 0.043 93.5)

  10. Step 900

    900

    #47412D

    oklch(37.6% 0.033 93.4)

  11. Step 950

    950

    #2A261B

    oklch(26.9% 0.02 90.4)

Export this scale for Tailwind in the Tailwind colors tool

#AFA78B 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)#ADA5890.006
Deuteranopia (no green cones)#AFA88C0.003
Tritanopia (no blue cones)#B5A39F0.035
Achromatopsia (no color)#A7A7A70.040

Harmonies

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

Complementary

The opposite hue (180°).

  • #AFA78B

    #AFA78B

    oklch(72.8% 0.04 93.9)

  • #9FA6C1

    #9FA6C1

    oklch(72.9% 0.04 273.9)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #AFA78B

    #AFA78B

    oklch(72.8% 0.04 93.9)

  • #B9A28D

    #B9A28D

    oklch(72.7% 0.04 64.5)

  • #A2AC90

    #A2AC90

    oklch(72.9% 0.041 123.4)

Open the analogous palette in the generator

Split complementary

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

  • #AFA78B

    #AFA78B

    oklch(72.8% 0.04 93.9)

  • #92AABF

    #92AABF

    oklch(72.7% 0.041 244.8)

  • #ACA1BC

    #ACA1BC

    oklch(72.7% 0.04 303.9)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #AFA78B

    #AFA78B

    oklch(72.8% 0.04 93.9)

  • #8BAEB6

    #8BAEB6

    oklch(72.8% 0.04 213.2)

  • #B79EB1

    #B79EB1

    oklch(72.7% 0.039 334.4)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #AFA78B

    #AFA78B

    oklch(72.8% 0.04 93.9)

  • #8CB0AA

    #8CB0AA

    oklch(72.9% 0.04 183.9)

  • #9FA6C1

    #9FA6C1

    oklch(72.9% 0.04 273.9)

  • #BE9DA4

    #BE9DA4

    oklch(72.8% 0.04 3.8)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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