#AFB298

Closest named color: Putty (#BEAE8A). oklch(75.4% 0.036 112.6), rgb(175, 178, 152).

Aa

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

About this color

#AFB298 is a medium-light, muted yellow. In OKLCH its lightness is 75%, its chroma 0.036 and its hue 113°. Its hue sits between the warm and cool halves of the wheel. The nearest named color is Putty (#BEAE8A), ΔE 0.025 away. Black text reads best on it, at 9.64:1.

Hue familyYellows
Lightnessmedium-light (75%)
Chromamuted (0.036)
Temperaturein between
Nearest namePutty (#BEAE8A)
Black text9.64:1
White text2.17:1

Values

HEX#AFB298
RGBrgb(175, 178, 152)
HSLhsl(67, 14%, 65%)
OKLCHoklch(75.4% 0.036 112.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 #AFB298 2.17:1 Fails Lc -47.6 Large or bold text, headings
Black text on #AFB298 9.64:1 AAA Lc 61.1 Content text, not long reading
#AFB298 text on white 2.17:1 Fails Lc 42.8 Non-text elements, placeholder text
#AFB298 text on black 9.64: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

    #F5F6F3

    oklch(97.2% 0.004 121.6)

  2. Step 100

    100

    #EAEAE5

    oklch(93.6% 0.007 106.5)

  3. Step 200

    200

    #D9DAD1

    oklch(88.5% 0.012 111.8)

  4. Step 300

    300

    #C0C2B2

    oklch(80.8% 0.022 112.7)

  5. Step 400

    400 (this color)

    #AFB298

    oklch(75.4% 0.036 112.6)

  6. Step 500

    500

    #898D6D

    oklch(63.1% 0.046 113.5)

  7. Step 600

    600

    #737754

    oklch(55.6% 0.051 113.4)

  8. Step 700

    700

    #616445

    oklch(49.2% 0.047 112.6)

  9. Step 800

    800

    #4F5139

    oklch(42.6% 0.038 111.9)

  10. Step 900

    900

    #424331

    oklch(37.6% 0.029 110.4)

  11. Step 950

    950

    #26281D

    oklch(27.1% 0.02 116.1)

Export this scale for Tailwind in the Tailwind colors tool

#AFB298 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)#B6AF970.012
Deuteranopia (no green cones)#B6B0990.011
Tritanopia (no blue cones)#B2AFAB0.031
Achromatopsia (no color)#B0B0B00.036

Harmonies

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

Complementary

The opposite hue (180°).

  • #AFB298

    #AFB298

    oklch(75.4% 0.036 112.6)

  • #AFABC5

    #AFABC5

    oklch(75.3% 0.037 292.5)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #AFB298

    #AFB298

    oklch(75.4% 0.036 112.6)

  • #BBAE96

    #BBAE96

    oklch(75.5% 0.036 82.9)

  • #A2B5A1

    #A2B5A1

    oklch(75.3% 0.035 143.9)

Open the analogous palette in the generator

Split complementary

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

  • #AFB298

    #AFB298

    oklch(75.4% 0.036 112.6)

  • #A3B0C7

    #A3B0C7

    oklch(75.5% 0.036 261.9)

  • #BBA8BD

    #BBA8BD

    oklch(75.4% 0.036 323)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #AFB298

    #AFB298

    oklch(75.4% 0.036 112.6)

  • #99B4C3

    #99B4C3

    oklch(75.5% 0.037 232.2)

  • #C3A6B1

    #C3A6B1

    oklch(75.4% 0.037 353.2)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #AFB298

    #AFB298

    oklch(75.4% 0.036 112.6)

  • #95B6B9

    #95B6B9

    oklch(75.3% 0.036 203.2)

  • #AFABC5

    #AFABC5

    oklch(75.3% 0.037 292.5)

  • #C5A7A5

    #C5A7A5

    oklch(75.4% 0.035 22.5)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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