#AFD04E
Closest named color: Yellow Green (#9ACD32). oklch(80.8% 0.16 122.2), rgb(175, 208, 78).
Aa
Black text reads best on this color (11.95:1).
About this color
#AFD04E is a light, vivid yellow. In OKLCH its lightness is 81%, its chroma 0.160 and its hue 122°. Its hue sits between the warm and cool halves of the wheel. The nearest named color is Yellow Green (#9ACD32), ΔE 0.036 away. Black text reads best on it, at 11.95:1.
| Hue family | Yellows |
| Lightness | light (81%) |
| Chroma | vivid (0.160) |
| Temperature | in between |
| Nearest name | Yellow Green (#9ACD32) |
| Black text | 11.95:1 |
| White text | 1.75:1 |
Values
| HEX | #AFD04E |
| RGB | rgb(175, 208, 78) |
| HSL | hsl(75, 58%, 56%) |
| OKLCH | oklch(80.8% 0.16 122.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.
| Pair | WCAG 2 | Result | APCA | APCA guidance |
|---|---|---|---|---|
| White text on #AFD04E | 1.75:1 | Fails | Lc -35.9 | Non-text elements, placeholder text |
| Black text on #AFD04E | 11.95:1 | AAA | Lc 71.8 | Content text, not long reading |
| #AFD04E text on white | 1.75:1 | Fails | Lc 32.0 | Non-text elements, placeholder text |
| #AFD04E text on black | 11.95:1 | AAA | Lc -70.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.
-
Step 50
50
#F3F8E8
oklch(97.1% 0.022 121)
-
Step 100
100
#E4EFCE
oklch(93.5% 0.045 122.3)
-
Step 200
200
#CFE3A1
oklch(88.5% 0.089 121.9)
-
Step 300
300 (this color)
#AFD04E
oklch(80.8% 0.16 122.2)
-
Step 400
400
#8FB000
oklch(70.7% 0.172 122.1)
-
Step 500
500
#7A9700
oklch(63.1% 0.154 122.2)
-
Step 600
600
#667F00
oklch(55.6% 0.135 122.3)
-
Step 700
700
#556A00
oklch(48.9% 0.119 122.2)
-
Step 800
800
#465700
oklch(42.7% 0.103 121.8)
-
Step 900
900
#394900
oklch(37.8% 0.092 122.7)
-
Step 950
950
#212B00
oklch(27% 0.066 122.2)
#AFD04E 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.
| Vision | Seen as | Shift (ΔE) |
|---|---|---|
| Protanopia (no red cones) | #DCC43E | 0.064 |
| Deuteranopia (no green cones) | #D7C357 | 0.065 |
| Tritanopia (no blue cones) | #B7C6B5 | 0.133 |
| Achromatopsia (no color) | #C3C3C3 | 0.160 |
Harmonies
Hue rotations in OKLCH that keep this color's lightness and chroma.
Complementary
The opposite hue (180°).
- #AFD04E
#AFD04E
oklch(80.8% 0.16 122.2)
- #CEAEFF
#CEAEFF
oklch(80.8% 0.117 302)
Analogous
Neighbouring hues, 30° either side.
Split complementary
The two hues beside the complement (150° and 210°).
Triadic
Three hues spaced 120° apart.
Palettes with this color
Curated palettes that contain a color within ΔE 0.04 (OKLab) of #AFD04E, closest first.
Similar named colors
The eight closest entries in our named color list, with their ΔE distance.
- Yellow Green #9ACD32 ΔE 0.036
- Pale Olive Green #B1D27B ΔE 0.043
- Slime Green #99CC04 ΔE 0.048
- Light Moss Green #A6C875 ΔE 0.050
- Pea #A4BF20 ΔE 0.052
- Greenish Tan #BCCB7A ΔE 0.055
- Light Olive Green #A4BE5C ΔE 0.057
- Greenish Beige #C9D179 ΔE 0.059
Use #AFD04E 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.