#AFB500

Closest named color: Mustard Green (#A8B504). oklch(74.3% 0.165 112.2), rgb(175, 181, 0).

Aa

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

About this color

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

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

Values

HEX#AFB500
RGBrgb(175, 181, 0)
HSLhsl(62, 100%, 35%)
OKLCHoklch(74.3% 0.165 112.2)

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 #AFB500 2.22:1 Fails Lc -48.4 Large or bold text, headings
Black text on #AFB500 9.43:1 AAA Lc 60.3 Content text, not long reading
#AFB500 text on white 2.22:1 Fails Lc 43.6 Non-text elements, placeholder text
#AFB500 text on black 9.43:1 AAA Lc -58.5 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

    #F5F7EC

    oklch(97.2% 0.015 115)

  2. Step 100

    100

    #EAECD6

    oklch(93.6% 0.029 111.2)

  3. Step 200

    200

    #D9DEB2

    oklch(88.6% 0.058 112.9)

  4. Step 300

    300

    #C2C878

    oklch(81% 0.103 112.2)

  5. Step 400

    400 (this color)

    #AFB500

    oklch(74.3% 0.165 112.2)

  6. Step 500

    500

    #8C9100

    oklch(63.1% 0.14 112.2)

  7. Step 600

    600

    #757A00

    oklch(55.6% 0.124 112.6)

  8. Step 700

    700

    #636600

    oklch(49.1% 0.109 111.8)

  9. Step 800

    800

    #515400

    oklch(42.9% 0.095 112.1)

  10. Step 900

    900

    #434500

    oklch(37.6% 0.083 111.6)

  11. Step 950

    950

    #272900

    oklch(27% 0.06 112.6)

Export this scale for Tailwind in the Tailwind colors tool

#AFB500 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)#C4AC000.038
Deuteranopia (no green cones)#C4AF200.037
Tritanopia (no blue cones)#BCA99A0.148
Achromatopsia (no color)#AEAEAE0.165

Harmonies

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

Complementary

The opposite hue (180°).

  • #AFB500

    #AFB500

    oklch(74.3% 0.165 112.2)

  • #AF99FF

    #AF99FF

    oklch(74.3% 0.145 292.4)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #AFB500

    #AFB500

    oklch(74.3% 0.165 112.2)

  • #DBA000

    #DBA000

    oklch(74.2% 0.153 82)

  • #68C560

    #68C560

    oklch(74.3% 0.164 142.2)

Open the analogous palette in the generator

Split complementary

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

  • #AFB500

    #AFB500

    oklch(74.3% 0.165 112.2)

  • #7EABFF

    #7EABFF

    oklch(74.4% 0.132 262.2)

  • #DC85E9

    #DC85E9

    oklch(74.3% 0.166 322.2)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #AFB500

    #AFB500

    oklch(74.3% 0.165 112.2)

  • #00BBFB

    #00BBFB

    oklch(74.4% 0.152 232.2)

  • #F87BB6

    #F87BB6

    oklch(74.3% 0.165 352.3)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #AFB500

    #AFB500

    oklch(74.3% 0.165 112.2)

  • #00C3CE

    #00C3CE

    oklch(74.4% 0.127 202)

  • #AF99FF

    #AF99FF

    oklch(74.3% 0.145 292.4)

  • #FF7F7E

    #FF7F7E

    oklch(74.3% 0.156 22)

Open the square palette in the generator

Palettes with this color

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

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

Similar named colors

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

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