#AFC548

Closest named color: Pea (#A4BF20). oklch(78.3% 0.151 118.5), rgb(175, 197, 72).

Aa

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

About this color

#AFC548 is a light, vivid yellow. In OKLCH its lightness is 78%, its chroma 0.151 and its hue 119°. Its hue sits between the warm and cool halves of the wheel. The nearest named color is Pea (#A4BF20), ΔE 0.032 away. Black text reads best on it, at 10.90:1.

Hue familyYellows
Lightnesslight (78%)
Chromavivid (0.151)
Temperaturein between
Nearest namePea (#A4BF20)
Black text10.90:1
White text1.92:1

Values

HEX#AFC548
RGBrgb(175, 197, 72)
HSLhsl(71, 52%, 53%)
OKLCHoklch(78.3% 0.151 118.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 #AFC548 1.92:1 Fails Lc -41.1 Non-text elements, placeholder text
Black text on #AFC548 10.90:1 AAA Lc 67.1 Content text, not long reading
#AFC548 text on white 1.92:1 Fails Lc 36.8 Non-text elements, placeholder text
#AFC548 text on black 10.90:1 AAA Lc -65.7 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

    #F4F8E9

    oklch(97.2% 0.02 118.9)

  2. Step 100

    100

    #E6EECE

    oklch(93.5% 0.043 118.6)

  3. Step 200

    200

    #D3E1A2

    oklch(88.4% 0.084 118.3)

  4. Step 300

    300 (this color)

    #AFC548

    oklch(78.3% 0.151 118.5)

  5. Step 400

    400

    #97AD00

    oklch(70.6% 0.165 118.5)

  6. Step 500

    500

    #819500

    oklch(63.2% 0.148 118.8)

  7. Step 600

    600

    #6C7D00

    oklch(55.6% 0.13 118.8)

  8. Step 700

    700

    #5B6900

    oklch(49.2% 0.115 118.5)

  9. Step 800

    800

    #4A5600

    oklch(42.8% 0.1 118.6)

  10. Step 900

    900

    #3D4700

    oklch(37.6% 0.088 118.5)

  11. Step 950

    950

    #242A00

    oklch(27% 0.063 117.7)

Export this scale for Tailwind in the Tailwind colors tool

#AFC548 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)#D1BB380.050
Deuteranopia (no green cones)#CFBB510.054
Tritanopia (no blue cones)#B9BBAB0.129
Achromatopsia (no color)#BBBBBB0.151

Harmonies

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

Complementary

The opposite hue (180°).

  • #AFC548

    #AFC548

    oklch(78.3% 0.151 118.5)

  • #C3A5FF

    #C3A5FF

    oklch(78.2% 0.129 298.7)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #AFC548

    #AFC548

    oklch(78.3% 0.151 118.5)

  • #E0B226

    #E0B226

    oklch(78.4% 0.151 88.6)

  • #6CD280

    #6CD280

    oklch(78.2% 0.15 148.4)

Open the analogous palette in the generator

Split complementary

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

  • #AFC548

    #AFC548

    oklch(78.3% 0.151 118.5)

  • #9BB5FF

    #9BB5FF

    oklch(78.2% 0.11 268.9)

  • #EC93E8

    #EC93E8

    oklch(78.2% 0.151 328.5)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #AFC548

    #AFC548

    oklch(78.3% 0.151 118.5)

  • #63C3FF

    #63C3FF

    oklch(78.3% 0.125 238.6)

  • #FF90B7

    #FF90B7

    oklch(78.2% 0.14 358.4)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #AFC548

    #AFC548

    oklch(78.3% 0.151 118.5)

  • #00CFE6

    #00CFE6

    oklch(78.2% 0.135 208.9)

  • #C3A5FF

    #C3A5FF

    oklch(78.2% 0.129 298.7)

  • #FF9889

    #FF9889

    oklch(78.3% 0.126 29.1)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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