#AFBA16

Closest named color: Mustard Green (#A8B504). oklch(75.5% 0.165 114), rgb(175, 186, 22).

Aa

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

About this color

#AFBA16 is a medium-light, vivid yellow. In OKLCH its lightness is 75%, its chroma 0.165 and its hue 114°. Its hue sits between the warm and cool halves of the wheel. The nearest named color is Mustard Green (#A8B504), ΔE 0.018 away. Black text reads best on it, at 9.85:1.

Hue familyYellows
Lightnessmedium-light (75%)
Chromavivid (0.165)
Temperaturein between
Nearest nameMustard Green (#A8B504)
Black text9.85:1
White text2.13:1

Values

HEX#AFBA16
RGBrgb(175, 186, 22)
HSLhsl(64, 79%, 41%)
OKLCHoklch(75.5% 0.165 114)

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 #AFBA16 2.13:1 Fails Lc -46.3 Large or bold text, headings
Black text on #AFBA16 9.85:1 AAA Lc 62.3 Content text, not long reading
#AFBA16 text on white 2.13:1 Fails Lc 41.6 Non-text elements, placeholder text
#AFBA16 text on black 9.85:1 AAA Lc -60.6 Content text, not long reading

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

    #F5F7EC

    oklch(97.2% 0.015 115)

  2. Step 100

    100

    #E9ECD6

    oklch(93.5% 0.029 113.3)

  3. Step 200

    200

    #D8DEB3

    oklch(88.5% 0.057 114)

  4. Step 300

    300

    #BFC879

    oklch(80.8% 0.103 114)

  5. Step 400

    400 (this color)

    #AFBA16

    oklch(75.5% 0.165 114)

  6. Step 500

    500

    #899200

    oklch(63.1% 0.142 114.1)

  7. Step 600

    600

    #737B00

    oklch(55.7% 0.125 114.2)

  8. Step 700

    700

    #606700

    oklch(49.1% 0.111 114.3)

  9. Step 800

    800

    #4F5400

    oklch(42.7% 0.096 113.7)

  10. Step 900

    900

    #414600

    oklch(37.7% 0.085 114.3)

  11. Step 950

    950

    #262900

    oklch(26.9% 0.06 113.9)

Export this scale for Tailwind in the Tailwind colors tool

#AFBA16 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)#C8B0000.042
Deuteranopia (no green cones)#C8B32B0.043
Tritanopia (no blue cones)#BBAE9E0.146
Achromatopsia (no color)#B2B2B20.166

Harmonies

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

Complementary

The opposite hue (180°).

  • #AFBA16

    #AFBA16

    oklch(75.5% 0.165 114)

  • #B59DFF

    #B59DFF

    oklch(75.5% 0.14 294.1)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #AFBA16

    #AFBA16

    oklch(75.5% 0.165 114)

  • #DDA500

    #DDA500

    oklch(75.4% 0.155 84)

  • #66CA67

    #66CA67

    oklch(75.5% 0.166 143.9)

Open the analogous palette in the generator

Split complementary

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

  • #AFBA16

    #AFBA16

    oklch(75.5% 0.165 114)

  • #87AEFF

    #87AEFF

    oklch(75.5% 0.125 264)

  • #E288EA

    #E288EA

    oklch(75.5% 0.165 324.1)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #AFBA16

    #AFBA16

    oklch(75.5% 0.165 114)

  • #28BDFF

    #28BDFF

    oklch(75.4% 0.15 234.3)

  • #FE7EB7

    #FE7EB7

    oklch(75.5% 0.167 353.8)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #AFBA16

    #AFBA16

    oklch(75.5% 0.165 114)

  • #00C6D5

    #00C6D5

    oklch(75.4% 0.129 204.5)

  • #B59DFF

    #B59DFF

    oklch(75.5% 0.14 294.1)

  • #FF8781

    #FF8781

    oklch(75.5% 0.147 24.1)

Open the square palette in the generator

Palettes with this color

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

No curated palette has a color within ΔE 0.04 of #AFBA16.

Similar named colors

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

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