#AFAB50

Closest named color: Muddy Yellow (#BFAC05). oklch(72.6% 0.114 106.6), rgb(175, 171, 80).

Aa

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

About this color

#AFAB50 is a medium-light, moderately saturated yellow. In OKLCH its lightness is 73%, its chroma 0.114 and its hue 107°. Its hue sits on the warm side of the wheel. The nearest named color is Muddy Yellow (#BFAC05), ΔE 0.043 away. Black text reads best on it, at 8.76:1.

Hue familyYellows
Lightnessmedium-light (73%)
Chromamoderately saturated (0.114)
Temperaturewarm
Nearest nameMuddy Yellow (#BFAC05)
Black text8.76:1
White text2.39:1

Values

HEX#AFAB50
RGBrgb(175, 171, 80)
HSLhsl(57, 37%, 50%)
OKLCHoklch(72.6% 0.114 106.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 #AFAB50 2.39:1 Fails Lc -52.1 Large or bold text, headings
Black text on #AFAB50 8.76:1 AAA Lc 56.8 Large or bold text, headings
#AFAB50 text on white 2.39:1 Fails Lc 47.1 Large or bold text, headings
#AFAB50 text on black 8.76:1 AAA Lc -54.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

    #F6F6EF

    oklch(97.1% 0.009 106.6)

  2. Step 100

    100

    #EBEBDC

    oklch(93.6% 0.02 106.8)

  3. Step 200

    200

    #DCDBBE

    oklch(88.5% 0.039 105.5)

  4. Step 300

    300

    #C6C48F

    oklch(80.9% 0.07 106.1)

  5. Step 400

    400 (this color)

    #AFAB50

    oklch(72.6% 0.114 106.6)

  6. Step 500

    500

    #948E00

    oklch(63.1% 0.135 106.7)

  7. Step 600

    600

    #7C7700

    oklch(55.6% 0.119 106.8)

  8. Step 700

    700

    #686400

    oklch(49.1% 0.105 107)

  9. Step 800

    800

    #555200

    oklch(42.8% 0.092 107.3)

  10. Step 900

    900

    #474400

    oklch(37.7% 0.081 106.8)

  11. Step 950

    950

    #2A2800

    oklch(27% 0.058 106.8)

Export this scale for Tailwind in the Tailwind colors tool

#AFAB50 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)#B8A5470.018
Deuteranopia (no green cones)#BAA9550.019
Tritanopia (no blue cones)#BAA1970.103
Achromatopsia (no color)#A7A7A70.114

Harmonies

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

Complementary

The opposite hue (180°).

  • #AFAB50

    #AFAB50

    oklch(72.6% 0.114 106.6)

  • #A19BEA

    #A19BEA

    oklch(72.5% 0.114 286.7)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #AFAB50

    #AFAB50

    oklch(72.6% 0.114 106.6)

  • #CF9C4D

    #CF9C4D

    oklch(72.6% 0.114 76.2)

  • #84B76E

    #84B76E

    oklch(72.6% 0.114 136.7)

Open the analogous palette in the generator

Split complementary

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

  • #AFAB50

    #AFAB50

    oklch(72.6% 0.114 106.6)

  • #77A8ED

    #77A8ED

    oklch(72.5% 0.114 257)

  • #C390D6

    #C390D6

    oklch(72.7% 0.113 316.6)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #AFAB50

    #AFAB50

    oklch(72.6% 0.114 106.6)

  • #48B4DD

    #48B4DD

    oklch(72.5% 0.114 226.8)

  • #DA88B5

    #DA88B5

    oklch(72.5% 0.114 346.3)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #AFAB50

    #AFAB50

    oklch(72.6% 0.114 106.6)

  • #2FBCBE

    #2FBCBE

    oklch(72.5% 0.114 196.4)

  • #A19BEA

    #A19BEA

    oklch(72.5% 0.114 286.7)

  • #E5888D

    #E5888D

    oklch(72.6% 0.114 16.8)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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