#AFC978

Closest named color: Light Moss Green (#A6C875). oklch(79.8% 0.11 123.4), rgb(175, 201, 120).

Aa

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

About this color

#AFC978 is a light, moderately saturated yellow. In OKLCH its lightness is 80%, its chroma 0.110 and its hue 123°. Its hue sits between the warm and cool halves of the wheel. The nearest named color is Light Moss Green (#A6C875), ΔE 0.013 away. Black text reads best on it, at 11.44:1.

Hue familyYellows
Lightnesslight (80%)
Chromamoderately saturated (0.110)
Temperaturein between
Nearest nameLight Moss Green (#A6C875)
Black text11.44:1
White text1.83:1

Values

HEX#AFC978
RGBrgb(175, 201, 120)
HSLhsl(79, 43%, 63%)
OKLCHoklch(79.8% 0.11 123.4)

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 #AFC978 1.83:1 Fails Lc -38.5 Non-text elements, placeholder text
Black text on #AFC978 11.44:1 AAA Lc 69.5 Content text, not long reading
#AFC978 text on white 1.83:1 Fails Lc 34.3 Non-text elements, placeholder text
#AFC978 text on black 11.44:1 AAA Lc -68.2 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

    #F3F7ED

    oklch(97% 0.014 124.6)

  2. Step 100

    100

    #E5EED7

    oklch(93.6% 0.032 124.5)

  3. Step 200

    200

    #D1E0B4

    oklch(88.4% 0.061 122.9)

  4. Step 300

    300 (this color)

    #AFC978

    oklch(79.8% 0.11 123.4)

  5. Step 400

    400

    #8CB100

    oklch(70.7% 0.174 123.3)

  6. Step 500

    500

    #779800

    oklch(63.1% 0.156 123.6)

  7. Step 600

    600

    #647F00

    oklch(55.5% 0.136 123.2)

  8. Step 700

    700

    #536B00

    oklch(49% 0.121 123.6)

  9. Step 800

    800

    #445800

    oklch(42.8% 0.106 123.5)

  10. Step 900

    900

    #384900

    oklch(37.7% 0.093 123.4)

  11. Step 950

    950

    #202B00

    oklch(26.9% 0.066 123.3)

Export this scale for Tailwind in the Tailwind colors tool

#AFC978 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)#D2C0720.050
Deuteranopia (no green cones)#CEBF7C0.050
Tritanopia (no blue cones)#B5C2B50.089
Achromatopsia (no color)#BFBFBF0.110

Harmonies

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

Complementary

The opposite hue (180°).

  • #AFC978

    #AFC978

    oklch(79.8% 0.11 123.4)

  • #CCACF7

    #CCACF7

    oklch(79.9% 0.109 303.6)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #AFC978

    #AFC978

    oklch(79.8% 0.11 123.4)

  • #D5BC66

    #D5BC66

    oklch(79.9% 0.11 93.5)

  • #83D29C

    #83D29C

    oklch(79.8% 0.11 153.4)

Open the analogous palette in the generator

Split complementary

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

  • #AFC978

    #AFC978

    oklch(79.8% 0.11 123.4)

  • #A8B9FF

    #A8B9FF

    oklch(79.9% 0.101 273.4)

  • #E8A2DB

    #E8A2DB

    oklch(79.7% 0.11 333.3)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #AFC978

    #AFC978

    oklch(79.8% 0.11 123.4)

  • #7CC5FE

    #7CC5FE

    oklch(79.7% 0.109 243.3)

  • #F99FB5

    #F99FB5

    oklch(79.8% 0.11 4)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #AFC978

    #AFC978

    oklch(79.8% 0.11 123.4)

  • #5ACFE7

    #5ACFE7

    oklch(79.7% 0.11 213.4)

  • #CCACF7

    #CCACF7

    oklch(79.9% 0.109 303.6)

  • #FBA38F

    #FBA38F

    oklch(79.8% 0.109 33.5)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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