#AFD268

Closest named color: Pale Olive Green (#B1D27B). oklch(81.6% 0.139 124.5), rgb(175, 210, 104).

Aa

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

About this color

#AFD268 is a light, moderately saturated yellow. In OKLCH its lightness is 82%, its chroma 0.139 and its hue 125°. Its hue sits between the warm and cool halves of the wheel. The nearest named color is Pale Olive Green (#B1D27B), ΔE 0.021 away. Black text reads best on it, at 12.24:1.

Hue familyYellows
Lightnesslight (82%)
Chromamoderately saturated (0.139)
Temperaturein between
Nearest namePale Olive Green (#B1D27B)
Black text12.24:1
White text1.71:1

Values

HEX#AFD268
RGBrgb(175, 210, 104)
HSLhsl(80, 54%, 62%)
OKLCHoklch(81.6% 0.139 124.5)

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 #AFD268 1.71:1 Fails Lc -34.6 Non-text elements, placeholder text
Black text on #AFD268 12.24:1 AAA Lc 73.1 Content text, not long reading
#AFD268 text on white 1.71:1 Fails Lc 30.8 Non-text elements, placeholder text
#AFD268 text on black 12.24:1 AAA Lc -72.0 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

    #F3F8EA

    oklch(97.2% 0.019 122.8)

  2. Step 100

    100

    #E4EFD2

    oklch(93.6% 0.04 124.1)

  3. Step 200

    200

    #CEE3AA

    oklch(88.6% 0.079 124.4)

  4. Step 300

    300 (this color)

    #AFD268

    oklch(81.6% 0.139 124.5)

  5. Step 400

    400

    #89B200

    oklch(70.8% 0.177 124.5)

  6. Step 500

    500

    #759800

    oklch(63% 0.157 124.4)

  7. Step 600

    600

    #628000

    oklch(55.6% 0.139 124.4)

  8. Step 700

    700

    #526C00

    oklch(49.2% 0.123 124.5)

  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

    #1F2C00

    oklch(27.1% 0.068 125.1)

Export this scale for Tailwind in the Tailwind colors tool

#AFD268 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)#DCC75E0.063
Deuteranopia (no green cones)#D7C56E0.064
Tritanopia (no blue cones)#B5C9BA0.114
Achromatopsia (no color)#C6C6C60.140

Harmonies

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

Complementary

The opposite hue (180°).

  • #AFD268

    #AFD268

    oklch(81.6% 0.139 124.5)

  • #D3B0FF

    #D3B0FF

    oklch(81.6% 0.115 304.3)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #AFD268

    #AFD268

    oklch(81.6% 0.139 124.5)

  • #E0C14A

    #E0C14A

    oklch(81.6% 0.139 94.4)

  • #71DD9A

    #71DD9A

    oklch(81.6% 0.139 154.6)

Open the analogous palette in the generator

Split complementary

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

  • #AFD268

    #AFD268

    oklch(81.6% 0.139 124.5)

  • #B0BFFF

    #B0BFFF

    oklch(81.6% 0.092 274)

  • #F99FE7

    #F99FE7

    oklch(81.5% 0.139 334.4)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #AFD268

    #AFD268

    oklch(81.6% 0.139 124.5)

  • #8ACAFF

    #8ACAFF

    oklch(81.6% 0.1 244.4)

  • #FFA4BA

    #FFA4BA

    oklch(81.5% 0.11 4.1)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #AFD268

    #AFD268

    oklch(81.6% 0.139 124.5)

  • #21D9FA

    #21D9FA

    oklch(81.6% 0.139 214.4)

  • #D3B0FF

    #D3B0FF

    oklch(81.6% 0.115 304.3)

  • #FFAA95

    #FFAA95

    oklch(81.6% 0.105 34.5)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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