#AFBC38

Closest named color: Pea (#A4BF20). oklch(76.1% 0.152 115), rgb(175, 188, 56).

Aa

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

About this color

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

Hue familyYellows
Lightnessmedium-light (76%)
Chromavivid (0.152)
Temperaturein between
Nearest namePea (#A4BF20)
Black text10.07:1
White text2.08:1

Values

HEX#AFBC38
RGBrgb(175, 188, 56)
HSLhsl(66, 54%, 48%)
OKLCHoklch(76.1% 0.152 115)

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 #AFBC38 2.08:1 Fails Lc -45.2 Large or bold text, headings
Black text on #AFBC38 10.07:1 AAA Lc 63.3 Content text, not long reading
#AFBC38 text on white 2.08:1 Fails Lc 40.6 Non-text elements, placeholder text
#AFBC38 text on black 10.07:1 AAA Lc -61.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 300.

  1. Step 50

    50

    #F5F7E8

    oklch(97.1% 0.02 112.9)

  2. Step 100

    100

    #E8EECD

    oklch(93.6% 0.044 115.6)

  3. Step 200

    200

    #D7E0A0

    oklch(88.4% 0.084 114.6)

  4. Step 300

    300 (this color)

    #AFBC38

    oklch(76.1% 0.152 115)

  5. Step 400

    400

    #9EAB00

    oklch(70.7% 0.16 115.1)

  6. Step 500

    500

    #889300

    oklch(63.3% 0.143 115)

  7. Step 600

    600

    #727B00

    oklch(55.6% 0.126 114.8)

  8. Step 700

    700

    #5F6700

    oklch(49% 0.111 115)

  9. Step 800

    800

    #4E5500

    oklch(42.8% 0.097 115.1)

  10. Step 900

    900

    #414600

    oklch(37.7% 0.085 114.3)

  11. Step 950

    950

    #262A00

    oklch(27.2% 0.062 115.2)

Export this scale for Tailwind in the Tailwind colors tool

#AFBC38 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)#C9B3220.040
Deuteranopia (no green cones)#C9B5420.043
Tritanopia (no blue cones)#BAB1A20.133
Achromatopsia (no color)#B4B4B40.152

Harmonies

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

Complementary

The opposite hue (180°).

  • #AFBC38

    #AFBC38

    oklch(76.1% 0.152 115)

  • #B89FFF

    #B89FFF

    oklch(76.2% 0.137 294.9)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #AFBC38

    #AFBC38

    oklch(76.1% 0.152 115)

  • #DDA817

    #DDA817

    oklch(76% 0.152 85)

  • #6DCA72

    #6DCA72

    oklch(76% 0.152 145)

Open the analogous palette in the generator

Split complementary

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

  • #AFBC38

    #AFBC38

    oklch(76.1% 0.152 115)

  • #8BB0FF

    #8BB0FF

    oklch(76.2% 0.121 264.5)

  • #E18EE6

    #E18EE6

    oklch(76.1% 0.151 324.9)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #AFBC38

    #AFBC38

    oklch(76.1% 0.152 115)

  • #3ABFFF

    #3ABFFF

    oklch(76.2% 0.144 234.7)

  • #FB85B6

    #FB85B6

    oklch(76.1% 0.153 355.1)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #AFBC38

    #AFBC38

    oklch(76.1% 0.152 115)

  • #00C8D8

    #00C8D8

    oklch(76% 0.13 205)

  • #B89FFF

    #B89FFF

    oklch(76.2% 0.137 294.9)

  • #FF8B83

    #FF8B83

    oklch(76.2% 0.142 25.1)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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