#AFAA57

Closest named color: Dark Khaki (#BDB76B). oklch(72.4% 0.106 105.7), rgb(175, 170, 87).

Aa

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

About this color

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

Hue familyYellows
Lightnessmedium-light (72%)
Chromamoderately saturated (0.106)
Temperaturewarm
Nearest nameDark Khaki (#BDB76B)
Black text8.71:1
White text2.41:1

Values

HEX#AFAA57
RGBrgb(175, 170, 87)
HSLhsl(57, 35%, 51%)
OKLCHoklch(72.4% 0.106 105.7)

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 #AFAA57 2.41:1 Fails Lc -52.4 Large or bold text, headings
Black text on #AFAA57 8.71:1 AAA Lc 56.6 Large or bold text, headings
#AFAA57 text on white 2.41:1 Fails Lc 47.4 Large or bold text, headings
#AFAA57 text on black 8.71: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

    #F6F6EF

    oklch(97.1% 0.009 106.6)

  2. Step 100

    100

    #EBEBDC

    oklch(93.6% 0.02 106.8)

  3. Step 200

    200

    #DCDBC0

    oklch(88.5% 0.036 105.4)

  4. Step 300

    300

    #C6C492

    oklch(81% 0.067 105.9)

  5. Step 400

    400 (this color)

    #AFAA57

    oklch(72.4% 0.106 105.7)

  6. Step 500

    500

    #958D00

    oklch(63% 0.134 105.6)

  7. Step 600

    600

    #7D7700

    oklch(55.7% 0.119 106.2)

  8. Step 700

    700

    #696300

    oklch(49% 0.104 105.5)

  9. Step 800

    800

    #565100

    oklch(42.6% 0.091 105.5)

  10. Step 900

    900

    #484400

    oklch(37.8% 0.081 105.9)

  11. Step 950

    950

    #2A2801

    oklch(27% 0.057 106.7)

Export this scale for Tailwind in the Tailwind colors tool

#AFAA57 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)#B6A5500.015
Deuteranopia (no green cones)#B8A95B0.015
Tritanopia (no blue cones)#BAA1970.095
Achromatopsia (no color)#A7A7A70.106

Harmonies

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

Complementary

The opposite hue (180°).

  • #AFAA57

    #AFAA57

    oklch(72.4% 0.106 105.7)

  • #A09CE6

    #A09CE6

    oklch(72.5% 0.106 285.9)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #AFAA57

    #AFAA57

    oklch(72.4% 0.106 105.7)

  • #CC9C55

    #CC9C55

    oklch(72.3% 0.106 75.5)

  • #88B571

    #88B571

    oklch(72.4% 0.106 135.5)

Open the analogous palette in the generator

Split complementary

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

  • #AFAA57

    #AFAA57

    oklch(72.4% 0.106 105.7)

  • #79A9E8

    #79A9E8

    oklch(72.6% 0.106 255.5)

  • #C091D3

    #C091D3

    oklch(72.4% 0.106 316)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #AFAA57

    #AFAA57

    oklch(72.4% 0.106 105.7)

  • #51B4D8

    #51B4D8

    oklch(72.5% 0.105 225.1)

  • #D68AB4

    #D68AB4

    oklch(72.4% 0.106 345.8)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #AFAA57

    #AFAA57

    oklch(72.4% 0.106 105.7)

  • #40BABB

    #40BABB

    oklch(72.3% 0.106 195.9)

  • #A09CE6

    #A09CE6

    oklch(72.5% 0.106 285.9)

  • #E08A90

    #E08A90

    oklch(72.4% 0.105 15.5)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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