#AFC28F

Closest named color: Tan Green (#A9BE70). oklch(78.7% 0.072 124.6), rgb(175, 194, 143).

Aa

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

About this color

#AFC28F is a light, moderately saturated yellow. In OKLCH its lightness is 79%, its chroma 0.072 and its hue 125°. Its hue sits between the warm and cool halves of the wheel. The nearest named color is Tan Green (#A9BE70), ΔE 0.038 away. Black text reads best on it, at 10.93:1.

Hue familyYellows
Lightnesslight (79%)
Chromamoderately saturated (0.072)
Temperaturein between
Nearest nameTan Green (#A9BE70)
Black text10.93:1
White text1.92:1

Values

HEX#AFC28F
RGBrgb(175, 194, 143)
HSLhsl(82, 29%, 66%)
OKLCHoklch(78.7% 0.072 124.6)

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 #AFC28F 1.92:1 Fails Lc -41.0 Non-text elements, placeholder text
Black text on #AFC28F 10.93:1 AAA Lc 67.2 Content text, not long reading
#AFC28F text on white 1.92:1 Fails Lc 36.7 Non-text elements, placeholder text
#AFC28F text on black 10.93:1 AAA Lc -65.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

    #F4F7F0

    oklch(97.2% 0.01 125.7)

  2. Step 100

    100

    #E7EDDE

    oklch(93.7% 0.021 124.7)

  3. Step 200

    200

    #D3DEC2

    oklch(88.5% 0.039 124.7)

  4. Step 300

    300 (this color)

    #AFC28F

    oklch(78.7% 0.072 124.6)

  5. Step 400

    400

    #91AD59

    oklch(70.7% 0.115 124.5)

  6. Step 500

    500

    #76981C

    oklch(63.2% 0.148 124.6)

  7. Step 600

    600

    #618000

    oklch(55.5% 0.139 124.8)

  8. Step 700

    700

    #516C00

    oklch(49.2% 0.123 125)

  9. Step 800

    800

    #425800

    oklch(42.6% 0.107 124.6)

  10. Step 900

    900

    #374900

    oklch(37.6% 0.094 124.1)

  11. Step 950

    950

    #202B05

    oklch(27% 0.06 124.3)

Export this scale for Tailwind in the Tailwind colors tool

#AFC28F 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)#C8BC8C0.036
Deuteranopia (no green cones)#C5BB910.035
Tritanopia (no blue cones)#B2BDB40.057
Achromatopsia (no color)#BBBBBB0.073

Harmonies

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

Complementary

The opposite hue (180°).

  • #AFC28F

    #AFC28F

    oklch(78.7% 0.072 124.6)

  • #C4AEE0

    #C4AEE0

    oklch(78.6% 0.074 304.8)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #AFC28F

    #AFC28F

    oklch(78.7% 0.072 124.6)

  • #C8B984

    #C8B984

    oklch(78.6% 0.072 94.2)

  • #95C8A5

    #95C8A5

    oklch(78.7% 0.073 154.5)

Open the analogous palette in the generator

Split complementary

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

  • #AFC28F

    #AFC28F

    oklch(78.7% 0.072 124.6)

  • #ABB7E9

    #ABB7E9

    oklch(78.8% 0.073 274.1)

  • #D7A8CC

    #D7A8CC

    oklch(78.5% 0.073 334.7)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #AFC28F

    #AFC28F

    oklch(78.7% 0.072 124.6)

  • #92BFE5

    #92BFE5

    oklch(78.6% 0.072 244.4)

  • #E2A7B3

    #E2A7B3

    oklch(78.7% 0.071 5.3)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #AFC28F

    #AFC28F

    oklch(78.7% 0.072 124.6)

  • #82C6D6

    #82C6D6

    oklch(78.7% 0.072 214.2)

  • #C4AEE0

    #C4AEE0

    oklch(78.6% 0.074 304.8)

  • #E4A99B

    #E4A99B

    oklch(78.6% 0.073 33.7)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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