#AFBB2C

Closest named color: Pea (#A4BF20). oklch(75.8% 0.158 114.5), rgb(175, 187, 44).

Aa

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

About this color

#AFBB2C is a medium-light, vivid yellow. In OKLCH its lightness is 76%, its chroma 0.158 and its hue 114°. Its hue sits between the warm and cool halves of the wheel. The nearest named color is Pea (#A4BF20), ΔE 0.020 away. Black text reads best on it, at 9.96:1.

Hue familyYellows
Lightnessmedium-light (76%)
Chromavivid (0.158)
Temperaturein between
Nearest namePea (#A4BF20)
Black text9.96:1
White text2.10:1

Values

HEX#AFBB2C
RGBrgb(175, 187, 44)
HSLhsl(65, 62%, 45%)
OKLCHoklch(75.8% 0.158 114.5)

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 #AFBB2C 2.10:1 Fails Lc -45.7 Large or bold text, headings
Black text on #AFBB2C 9.96:1 AAA Lc 62.8 Content text, not long reading
#AFBB2C text on white 2.10:1 Fails Lc 41.1 Non-text elements, placeholder text
#AFBB2C text on black 9.96:1 AAA Lc -61.1 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 300.

  1. Step 50

    50

    #F5F7E8

    oklch(97.1% 0.02 112.9)

  2. Step 100

    100

    #E9EECC

    oklch(93.6% 0.045 114.1)

  3. Step 200

    200

    #D7E09D

    oklch(88.4% 0.087 114.4)

  4. Step 300

    300 (this color)

    #AFBB2C

    oklch(75.8% 0.158 114.5)

  5. Step 400

    400

    #9FAB00

    oklch(70.7% 0.16 114.7)

  6. Step 500

    500

    #889200

    oklch(63% 0.142 114.5)

  7. Step 600

    600

    #727B00

    oklch(55.6% 0.126 114.8)

  8. Step 700

    700

    #606700

    oklch(49.1% 0.111 114.3)

  9. Step 800

    800

    #4E5400

    oklch(42.6% 0.096 114.4)

  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

#AFBB2C 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)#C9B1030.041
Deuteranopia (no green cones)#C8B4390.043
Tritanopia (no blue cones)#BBB0A00.138
Achromatopsia (no color)#B3B3B30.158

Harmonies

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

Complementary

The opposite hue (180°).

  • #AFBB2C

    #AFBB2C

    oklch(75.8% 0.158 114.5)

  • #B69EFF

    #B69EFF

    oklch(75.8% 0.138 294.2)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #AFBB2C

    #AFBB2C

    oklch(75.8% 0.158 114.5)

  • #DEA700

    #DEA700

    oklch(75.9% 0.156 84.7)

  • #6ACA6D

    #6ACA6D

    oklch(75.8% 0.158 144.4)

Open the analogous palette in the generator

Split complementary

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

  • #AFBB2C

    #AFBB2C

    oklch(75.8% 0.158 114.5)

  • #89AFFF

    #89AFFF

    oklch(75.8% 0.123 264.3)

  • #E18BE8

    #E18BE8

    oklch(75.8% 0.158 324.3)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #AFBB2C

    #AFBB2C

    oklch(75.8% 0.158 114.5)

  • #32BEFF

    #32BEFF

    oklch(75.8% 0.147 234.5)

  • #FC82B6

    #FC82B6

    oklch(75.8% 0.158 354.6)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #AFBB2C

    #AFBB2C

    oklch(75.8% 0.158 114.5)

  • #00C7D7

    #00C7D7

    oklch(75.7% 0.129 205.1)

  • #B69EFF

    #B69EFF

    oklch(75.8% 0.138 294.2)

  • #FF8982

    #FF8982

    oklch(75.8% 0.144 24.6)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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