#AFBF18

Closest named color: Pea (#A4BF20). oklch(76.6% 0.17 115.8), rgb(175, 191, 24).

Aa

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

About this color

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

Hue familyYellows
Lightnessmedium-light (77%)
Chromavivid (0.170)
Temperaturein between
Nearest namePea (#A4BF20)
Black text10.28:1
White text2.04:1

Values

HEX#AFBF18
RGBrgb(175, 191, 24)
HSLhsl(66, 78%, 42%)
OKLCHoklch(76.6% 0.17 115.8)

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 #AFBF18 2.04:1 Fails Lc -44.1 Non-text elements, placeholder text
Black text on #AFBF18 10.28:1 AAA Lc 64.4 Content text, not long reading
#AFBF18 text on white 2.04:1 Fails Lc 39.6 Non-text elements, placeholder text
#AFBF18 text on black 10.28:1 AAA Lc -62.8 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

    #F4F8E7

    oklch(97.2% 0.023 117.6)

  2. Step 100

    100

    #E8EFCA

    oklch(93.7% 0.049 116.1)

  3. Step 200

    200

    #D6E199

    oklch(88.4% 0.094 115.4)

  4. Step 300

    300 (this color)

    #AFBF18

    oklch(76.6% 0.17 115.8)

  5. Step 400

    400

    #9DAC00

    oklch(70.8% 0.162 115.9)

  6. Step 500

    500

    #869300

    oklch(63.1% 0.144 115.9)

  7. Step 600

    600

    #717B00

    oklch(55.5% 0.126 115.3)

  8. Step 700

    700

    #5E6800

    oklch(49.2% 0.113 116.2)

  9. Step 800

    800

    #4D5500

    oklch(42.8% 0.098 115.9)

  10. Step 900

    900

    #404700

    oklch(37.8% 0.086 116)

  11. Step 950

    950

    #252A00

    oklch(27.1% 0.062 116.5)

Export this scale for Tailwind in the Tailwind colors tool

#AFBF18 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)#CDB5000.047
Deuteranopia (no green cones)#CCB72D0.049
Tritanopia (no blue cones)#BBB3A30.150
Achromatopsia (no color)#B5B5B50.170

Harmonies

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

Complementary

The opposite hue (180°).

  • #AFBF18

    #AFBF18

    oklch(76.6% 0.17 115.8)

  • #BBA0FF

    #BBA0FF

    oklch(76.6% 0.135 296.1)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #AFBF18

    #AFBF18

    oklch(76.6% 0.17 115.8)

  • #DFAA00

    #DFAA00

    oklch(76.6% 0.157 86)

  • #61CF6D

    #61CF6D

    oklch(76.7% 0.17 145.8)

Open the analogous palette in the generator

Split complementary

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

  • #AFBF18

    #AFBF18

    oklch(76.6% 0.17 115.8)

  • #8FB1FF

    #8FB1FF

    oklch(76.6% 0.119 265.7)

  • #E989ED

    #E989ED

    oklch(76.6% 0.171 325.6)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #AFBF18

    #AFBF18

    oklch(76.6% 0.17 115.8)

  • #46C0FF

    #46C0FF

    oklch(76.7% 0.139 235.6)

  • #FF85B7

    #FF85B7

    oklch(76.6% 0.157 355.5)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #AFBF18

    #AFBF18

    oklch(76.6% 0.17 115.8)

  • #00CADB

    #00CADB

    oklch(76.6% 0.131 205.5)

  • #BBA0FF

    #BBA0FF

    oklch(76.6% 0.135 296.1)

  • #FF8E85

    #FF8E85

    oklch(76.7% 0.138 25.6)

Open the square palette in the generator

Palettes with this color

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

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

Similar named colors

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

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